Commit 7ff00904 authored by KeYong's avatar KeYong

修改bug

parent 4874f462
...@@ -142,8 +142,8 @@ public class OrgUsrFireExcelDto extends BaseDto { ...@@ -142,8 +142,8 @@ public class OrgUsrFireExcelDto extends BaseDto {
@ExcelProperty(value = "出生日期", index = 17) @ExcelProperty(value = "出生日期", index = 17)
@ApiModelProperty(value = "出生日期") @ApiModelProperty(value = "出生日期")
@DateTimeFormat(pattern = "yyyy-MM-dd") // @DateTimeFormat(pattern = "yyyy-MM-dd") 此注解用于此处不起任何作用 --ky20220918
@JsonFormat(pattern = "yyyy-MM-dd") // @JsonFormat(pattern = "yyyy-MM-dd")
private String birthdayTime; private String birthdayTime;
@ExplicitConstraint(indexNum = 18, sourceClass = CommonExplicitConstraint.class, method = "getMaritalStatus") //固定下拉内容 @ExplicitConstraint(indexNum = 18, sourceClass = CommonExplicitConstraint.class, method = "getMaritalStatus") //固定下拉内容
......
...@@ -407,9 +407,9 @@ LEFT JOIN cb_fire_team cft ON cff.fire_team_id = cft.sequence_nbr ...@@ -407,9 +407,9 @@ LEFT JOIN cb_fire_team cft ON cff.fire_team_id = cft.sequence_nbr
AND type = 'RYZT' AND type = 'RYZT'
) AS stateCode, ) AS stateCode,
fp.employee_hierarchy, fp.employee_hierarchy,
cast(b.birthdayTime as datetime) as birthdayTime,
b.*, b.*,
fw.* fw.*,
DATE_FORMAT(b.birthdayTime,'%Y-%m-%d') AS birthdaryTime
from cb_org_usr a LEFT JOIN from cb_org_usr a LEFT JOIN
(SELECT (SELECT
instance_id, instance_id,
...@@ -427,7 +427,7 @@ LEFT JOIN cb_fire_team cft ON cff.fire_team_id = cft.sequence_nbr ...@@ -427,7 +427,7 @@ LEFT JOIN cb_fire_team cft ON cff.fire_team_id = cft.sequence_nbr
max(case field_code when 'telephone' then field_value end) telephone, max(case field_code when 'telephone' then field_value end) telephone,
max(case field_code when 'peopleType' then field_value end) peopleType, max(case field_code when 'peopleType' then field_value end) peopleType,
max(case field_code when 'nation' then field_value end) nation, max(case field_code when 'nation' then field_value end) nation,
max(case field_code when 'birthdayTime' then field_value end) birthdayTime, max( CASE field_code WHEN 'birthdayTime' THEN DATE_FORMAT(field_value, '%Y-%m-%d') END ) birthdayTime,
max(case field_code when 'maritalStatus' then field_value end) maritalStatus, max(case field_code when 'maritalStatus' then field_value end) maritalStatus,
max(case field_code when 'nativePlace' then field_value end) nativePlace, max(case field_code when 'nativePlace' then field_value end) nativePlace,
max(case field_code when 'nativePlaceVal' then field_value end) nativePlaceVal, max(case field_code when 'nativePlaceVal' then field_value end) nativePlaceVal,
......
...@@ -208,7 +208,7 @@ public class ExcelServiceImpl { ...@@ -208,7 +208,7 @@ public class ExcelServiceImpl {
// authFalg=true; // authFalg=true;
// } // }
//效验参数 //效验参数
boolean authFalg=getFlag(par); boolean authFlag = true;
switch (excelDto.getType()) { switch (excelDto.getType()) {
...@@ -248,7 +248,7 @@ public class ExcelServiceImpl { ...@@ -248,7 +248,7 @@ public class ExcelServiceImpl {
break; break;
case "SYXX": case "SYXX":
// 暂时先还原代码不加 “非” ,为修改bug http://36.46.149.14:5080/zentao/task-view-6974.html 水源导出没有数据问题 // 暂时先还原代码不加 “非” ,为修改bug http://36.46.149.14:5080/zentao/task-view-6974.html 水源导出没有数据问题
if(!authFalg) { if(!authFlag) {
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null, ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null,
WaterResourceDto.class, dataSourcesImpl, false); WaterResourceDto.class, dataSourcesImpl, false);
break; break;
...@@ -275,7 +275,7 @@ public class ExcelServiceImpl { ...@@ -275,7 +275,7 @@ public class ExcelServiceImpl {
AircraftDto.class, dataSourcesImpl, false); AircraftDto.class, dataSourcesImpl, false);
break; break;
case "XFDW": case "XFDW":
if(!authFalg) { if(!authFlag) {
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null, ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null,
FireTeamDto.class, dataSourcesImpl, false); FireTeamDto.class, dataSourcesImpl, false);
break; break;
...@@ -285,7 +285,7 @@ public class ExcelServiceImpl { ...@@ -285,7 +285,7 @@ public class ExcelServiceImpl {
FireTeamDto.class, dataSourcesImpl, false); FireTeamDto.class, dataSourcesImpl, false);
break; break;
case "WXXFZ": case "WXXFZ":
if(!authFalg) { if(!authFlag) {
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null, ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null,
FireStationDto.class, null, false); FireStationDto.class, null, false);
break; break;
...@@ -301,7 +301,7 @@ public class ExcelServiceImpl { ...@@ -301,7 +301,7 @@ public class ExcelServiceImpl {
FireStationDto.class, null, false); FireStationDto.class, null, false);
break; break;
case "XFRY": case "XFRY":
if(!authFalg) { if(!authFlag) {
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(),
null, FirefightersExcelDto.class, null, false); null, FirefightersExcelDto.class, null, false);
break; break;
...@@ -310,8 +310,8 @@ public class ExcelServiceImpl { ...@@ -310,8 +310,8 @@ public class ExcelServiceImpl {
List<OrgUsrFireExcelDto> firefightersExcelDtoList = firefightersService.exportToExcelNew(false, par); List<OrgUsrFireExcelDto> firefightersExcelDtoList = firefightersService.exportToExcelNew(false, par);
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(),
firefightersExcelDtoList, OrgUsrFireExcelDto.class, null, false); firefightersExcelDtoList, OrgUsrFireExcelDto.class, null, false);
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), // ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(),
firefightersExcelDtoList, FirefightersExcelDto.class, null, false); // firefightersExcelDtoList, FirefightersExcelDto.class, null, false);
break; break;
case "WBRY": case "WBRY":
List<MaintenancePersonExcleDto> maintenancePersonExcelDtoList = maintenanceCompanyService List<MaintenancePersonExcleDto> maintenancePersonExcelDtoList = maintenanceCompanyService
...@@ -350,7 +350,7 @@ public class ExcelServiceImpl { ...@@ -350,7 +350,7 @@ public class ExcelServiceImpl {
signDtos.getRecords(), SignDto.class, null, false); signDtos.getRecords(), SignDto.class, null, false);
break; break;
case "KEYSITE": case "KEYSITE":
if(!authFalg) { if(!authFlag) {
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null, ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null,
KeySiteExcleDto.class, null, false); KeySiteExcleDto.class, null, false);
break; break;
...@@ -370,7 +370,7 @@ public class ExcelServiceImpl { ...@@ -370,7 +370,7 @@ public class ExcelServiceImpl {
KeySiteExcleDto.class, null, false); KeySiteExcleDto.class, null, false);
break; break;
case "JCDWRY": case "JCDWRY":
if(!authFalg) { if(!authFlag) {
ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null, ExcelUtil.createTemplate(response, excelDto.getFileName(), excelDto.getSheetName(), null,
OrgUsrExcelDto.class, null, false); OrgUsrExcelDto.class, null, false);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment