Commit ad5049bf authored by wangzb's avatar wangzb

feature-wzb :员工合同模块修复功能

parent 21caa1f6
......@@ -251,6 +251,11 @@ public class EmployeeContractExportVO implements Serializable {
@ExcelProperty("创建人")
private String createName;
@ExcelAttribute(name = "审核人")
@ExcelProperty("审核人")
@Schema(description = "审核人")
private String auditUserName;
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("创建时间")
......
......@@ -1439,17 +1439,28 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
contractInfo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
list = baseMapper.getTEmployeeContractExport(contractInfo);
if (Common.isNotNull(list)) {
for(EmployeeContractExportVO ll:list){
if(ll.getAuditStatus().contains("审核不通过")) {
if (null != ll.getRemark()) {
String[] a = ll.getRemark().split(":");
for(int t=CommonConstants.ZERO_INT;t<a.length;t++){
if(t==CommonConstants.ONE_INT) {
ll.setNoPassReason(a[CommonConstants.ZERO_INT]);
ll.setRemark(a[CommonConstants.ONE_INT]);
for (EmployeeContractExportVO ll : list) {
if (ll.getRemark() != null) {
if (!ll.getRemark().contains("派增审核")) {
if (ll.getAuditStatus().contains("审核不通过") && null != ll.getRemark()) {
if (ll.getRemark().contains(":")) {
String a = ll.getRemark().substring(0, ll.getRemark().indexOf(":", 1));
String b = ll.getRemark().substring(ll.getRemark().indexOf(":", 1) + 1);
ll.setNoPassReason(a);
ll.setRemark(b);
}
}
}
if (ll.getRemark().contains("派增审核")) {
if (ll.getRemark().contains("-")) {
String c = ll.getRemark().substring(0, ll.getRemark().indexOf("-", 1));
String d = ll.getRemark().substring(ll.getRemark().indexOf("-", 1) + 1);
ll.setNoPassReason(c);
ll.setRemark(d);
}
}
}
}
writeSheet = EasyExcel.writerSheet("员工合同" + index).build();
......
......@@ -213,6 +213,7 @@
a.EMP_NO,
a.EMP_NAME,
a.EMP_IDCARD,
a.AUDIT_USER_NAME,
a.CONTRACT_START,
a.CONTRACT_END,
a.FILE_PROVINCE,
......@@ -476,6 +477,7 @@
a.EMP_IDCARD,
a.CONTRACT_START,
a.CONTRACT_END,
a.AUDIT_USER_NAME,
a1.AREA_NAME as "FILE_PROVINCE",
a2.AREA_NAME as "FILE_CITY",
a3.AREA_NAME as "FILE_TOWN",
......
......@@ -8,7 +8,6 @@ spring:
redis:
host: 127.0.0.1
port: 6379
password: '@yf_2017'
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
......
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