Commit e48e84d1 authored by huyuchen's avatar huyuchen

Merge remote-tracking branch 'origin/develop' into develop

parents 4dee272f 4c0e4303
...@@ -150,35 +150,35 @@ public class EmployeeExportVO extends BaseEntity { ...@@ -150,35 +150,35 @@ public class EmployeeExportVO extends BaseEntity {
*/ */
@ExcelAttribute(name = "合同状态", isDataId = true,dataType = ExcelAttributeConstants.PERSONNEL_STATE) @ExcelAttribute(name = "合同状态", isDataId = true,dataType = ExcelAttributeConstants.PERSONNEL_STATE)
@ExcelProperty(value = "合同状态") @ExcelProperty(value = "合同状态")
private Integer contractStatus; private String contractStatus;
/** /**
* 商险状态(字典) * 商险状态(字典)
*/ */
@ExcelAttribute(name = "商险状态", isDataId = true,dataType = ExcelAttributeConstants.COMMERCIAL_SATTE) @ExcelAttribute(name = "商险状态", isDataId = true,dataType = ExcelAttributeConstants.COMMERCIAL_SATTE)
@ExcelProperty(value = "商险状态") @ExcelProperty(value = "商险状态")
private Integer insuranceStatus; private String insuranceStatus;
/** /**
* 社保状态(字典) * 社保状态(字典)
*/ */
@ExcelAttribute(name = "社保状态", isDataId = true,dataType = ExcelAttributeConstants.SOCIAL_ECURITY_STATE) @ExcelAttribute(name = "社保状态", isDataId = true,dataType = ExcelAttributeConstants.SOCIAL_ECURITY_STATE)
@ExcelProperty(value = "社保状态") @ExcelProperty(value = "社保状态")
private Integer socialStatus; private String socialStatus;
/** /**
* 公积金状态(字典) * 公积金状态(字典)
*/ */
@ExcelAttribute(name = "公积金状态", isDataId = true,dataType = ExcelAttributeConstants.FUND_STATUS) @ExcelAttribute(name = "公积金状态", isDataId = true,dataType = ExcelAttributeConstants.FUND_STATUS)
@ExcelProperty(value = "公积金状态") @ExcelProperty(value = "公积金状态")
private Integer fundStatus; private String fundStatus;
/** /**
* 近3个月发薪(0否;1是) * 近3个月发薪(0否;1是)
*/ */
@ExcelAttribute(name = "近3个月发薪", readConverterExp = "0=无,1=是,2=否") @ExcelAttribute(name = "近3个月发薪", readConverterExp = "0=无,1=是,2=否")
@ExcelProperty(value = "近3个月发薪") @ExcelProperty(value = "近3个月发薪")
private Integer salaryStatus; private String salaryStatus;
@ExcelProperty(value = "创建人") @ExcelProperty(value = "创建人")
private String createName; private String createName;
......
...@@ -78,8 +78,6 @@ public class FddContractInfoServiceImpl extends ServiceImpl<FddContractInfoMappe ...@@ -78,8 +78,6 @@ public class FddContractInfoServiceImpl extends ServiceImpl<FddContractInfoMappe
@Autowired @Autowired
private FddContractTemplateFileService fddContractTemplateFileService; private FddContractTemplateFileService fddContractTemplateFileService;
@Autowired @Autowired
private FddContractInfoService fddContractInfoService;
@Autowired
private FddCompanyInfoService fddCompanyInfoService; private FddCompanyInfoService fddCompanyInfoService;
@Autowired @Autowired
private FddSealPersonAuthService fddSealPersonAuthService; private FddSealPersonAuthService fddSealPersonAuthService;
......
...@@ -362,11 +362,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -362,11 +362,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
isTrue = false; isTrue = false;
errorMessageVO = this.getErrorMessageVO(i, CommonConstants.ZERO_INT, excel.getEmpName() errorMessageVO = this.getErrorMessageVO(i, CommonConstants.ZERO_INT, excel.getEmpName()
, idCard, errorMsg); , idCard, errorMsg);
} else { errorMessageList.add(errorMessageVO);
errorMessageVO = this.getErrorMessageVO(i, CommonConstants.ONE_INT, excel.getEmpName()
, idCard, errorMsg);
} }
errorMessageList.add(errorMessageVO);
} }
// 查找档案库 // 查找档案库
Map<String, TEmployeeInfo> existEmpMap = new HashMap<>(); Map<String, TEmployeeInfo> existEmpMap = new HashMap<>();
...@@ -1375,7 +1372,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -1375,7 +1372,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
out = response.getOutputStream(); out = response.getOutputStream();
response.setContentType("multipart/form-data"); response.setContentType("multipart/form-data");
response.setCharacterEncoding("utf-8"); response.setCharacterEncoding("utf-8");
response.setHeader("Content-Disposition", "attachment;filename*=utf-8'zh_cn'" + URLEncoder.encode(fileName, "UTF-8")); response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CommonConstants.UTF8));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭 // 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
EasyExcel.write(out, EmployeeExportVO.class).includeColumnFiledNames(employeeInfo.getExportFields()) EasyExcel.write(out, EmployeeExportVO.class).includeColumnFiledNames(employeeInfo.getExportFields())
.sheet("人员档案").doWrite(list); .sheet("人员档案").doWrite(list);
......
...@@ -534,6 +534,7 @@ ...@@ -534,6 +534,7 @@
a.DELETE_FLAG = '0' a.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
</where> </where>
GROUP BY a.id
</select> </select>
<!--tEmployeeInfo离职档案导出查询--> <!--tEmployeeInfo离职档案导出查询-->
...@@ -551,6 +552,7 @@ ...@@ -551,6 +552,7 @@
a.DELETE_FLAG = '0' a.DELETE_FLAG = '0'
<include refid="employeeInfo_where"/> <include refid="employeeInfo_where"/>
</where> </where>
GROUP BY a.id
</select> </select>
</mapper> </mapper>
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