Commit 6f1b7281 authored by hongguangwu's avatar hongguangwu

MVP1.7.0 优化

parent a654e4a3
...@@ -275,6 +275,12 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap ...@@ -275,6 +275,12 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
exportLimit.setCreateBy(user.getId()); exportLimit.setCreateBy(user.getId());
exportLimit.setType(CommonConstants.TWO_INT); exportLimit.setType(CommonConstants.TWO_INT);
List<TArchivesExportLimit> limitList = tArchivesExportLimitMapper.getLimitList(exportLimit); List<TArchivesExportLimit> limitList = tArchivesExportLimitMapper.getLimitList(exportLimit);
boolean myExport = false;
for (TArchivesExportLimit limit1 : limitList) {
if (limit1.getCreateBy().equals(user.getId())) {
myExport = true;
}
}
String name = "档案完整度监控详情"; String name = "档案完整度监控详情";
String fileName = name + DateUtil.getThisTime() + ".xlsx"; String fileName = name + DateUtil.getThisTime() + ".xlsx";
//获取要导出的列表 //获取要导出的列表
...@@ -293,12 +299,18 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap ...@@ -293,12 +299,18 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
List<List<String>> headList = Lists.newArrayList(); List<List<String>> headList = Lists.newArrayList();
headList.add(this.getNewArrayList(new String[]{"提示"})); headList.add(this.getNewArrayList(new String[]{"提示"}));
EasyExcelFactory.write(out).head(headList).sheet("数据超限").doWrite(strList); EasyExcelFactory.write(out).head(headList).sheet("数据超限").doWrite(strList);
} else if (myExport) {
List<List<String>> strList = new ArrayList<>();
strList.add(this.getNewArrayList(new String[]{"您正在导出,请耐心等待10分钟后再导出!"}));
List<List<String>> headList = Lists.newArrayList();
headList.add(this.getNewArrayList(new String[]{"提示"}));
EasyExcelFactory.write(out).head(headList).sheet("您正在导出完整度").doWrite(strList);
} else if (limitList != null && limitList.size() > 2) { } else if (limitList != null && limitList.size() > 2) {
List<List<String>> strList = new ArrayList<>(); List<List<String>> strList = new ArrayList<>();
strList.add(this.getNewArrayList(new String[]{"多人正在导出,请耐心等待10分钟后再导出!"})); strList.add(this.getNewArrayList(new String[]{"多人正在导出,请耐心等待10分钟后再导出!"}));
List<List<String>> headList = Lists.newArrayList(); List<List<String>> headList = Lists.newArrayList();
headList.add(this.getNewArrayList(new String[]{"提示"})); headList.add(this.getNewArrayList(new String[]{"提示"}));
EasyExcelFactory.write(out).head(headList).sheet("多人正在导出").doWrite(strList); EasyExcelFactory.write(out).head(headList).sheet("多人正在导出完整度").doWrite(strList);
} else { } else {
exportLimit.setDeleteFlag(CommonConstants.ZERO_INT); exportLimit.setDeleteFlag(CommonConstants.ZERO_INT);
exportLimit.setCreateName(user.getNickname()); exportLimit.setCreateName(user.getNickname());
......
...@@ -2398,6 +2398,12 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -2398,6 +2398,12 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
exportLimit.setCreateBy(user.getId()); exportLimit.setCreateBy(user.getId());
exportLimit.setType(CommonConstants.ONE_INT); exportLimit.setType(CommonConstants.ONE_INT);
List<TArchivesExportLimit> limitList = tArchivesExportLimitMapper.getLimitList(exportLimit); List<TArchivesExportLimit> limitList = tArchivesExportLimitMapper.getLimitList(exportLimit);
boolean myExport = false;
for (TArchivesExportLimit limit1 : limitList) {
if (limit1.getCreateBy().equals(user.getId())) {
myExport = true;
}
}
String name = "预入职导出全量"; String name = "预入职导出全量";
String fileName = name + DateUtil.getThisTime() + ".xlsx"; String fileName = name + DateUtil.getThisTime() + ".xlsx";
//获取要导出的列表 //获取要导出的列表
...@@ -2416,12 +2422,18 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -2416,12 +2422,18 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
List<List<String>> headList = Lists.newArrayList(); List<List<String>> headList = Lists.newArrayList();
headList.add(this.getNewArrayList(new String[]{"提示"})); headList.add(this.getNewArrayList(new String[]{"提示"}));
EasyExcelFactory.write(out).head(headList).sheet("数据超限").doWrite(strList); EasyExcelFactory.write(out).head(headList).sheet("数据超限").doWrite(strList);
} else if (myExport) {
List<List<String>> strList = new ArrayList<>();
strList.add(this.getNewArrayList(new String[]{"您正在导出,请耐心等待10分钟后再导出!"}));
List<List<String>> headList = Lists.newArrayList();
headList.add(this.getNewArrayList(new String[]{"提示"}));
EasyExcelFactory.write(out).head(headList).sheet("您正在导出预入职").doWrite(strList);
} else if (limitList != null && limitList.size() > 2) { } else if (limitList != null && limitList.size() > 2) {
List<List<String>> strList = new ArrayList<>(); List<List<String>> strList = new ArrayList<>();
strList.add(this.getNewArrayList(new String[]{"多人正在导出,请耐心等待10分钟后再导出!"})); strList.add(this.getNewArrayList(new String[]{"多人正在导出,请耐心等待10分钟后再导出!"}));
List<List<String>> headList = Lists.newArrayList(); List<List<String>> headList = Lists.newArrayList();
headList.add(this.getNewArrayList(new String[]{"提示"})); headList.add(this.getNewArrayList(new String[]{"提示"}));
EasyExcelFactory.write(out).head(headList).sheet("多人正在导出").doWrite(strList); EasyExcelFactory.write(out).head(headList).sheet("多人正在导出预入职").doWrite(strList);
} else { } else {
exportLimit.setDeleteFlag(CommonConstants.ZERO_INT); exportLimit.setDeleteFlag(CommonConstants.ZERO_INT);
exportLimit.setCreateName(user.getNickname()); exportLimit.setCreateName(user.getNickname());
...@@ -2984,6 +2996,14 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE ...@@ -2984,6 +2996,14 @@ public class TPreEmpMainServiceImpl extends ServiceImpl<TPreEmpMainMapper, TPreE
if (Common.isNotNull(detail.getEmpPhone())) { if (Common.isNotNull(detail.getEmpPhone())) {
mobileList.add(detail.getEmpPhone()); mobileList.add(detail.getEmpPhone());
} }
// 手机号码(紧急联系人)
if (Common.isNotNull(detail.getTel())) {
mobileList.add(detail.getTel());
}
// 手机号码(家庭成员)
if (Common.isNotNull(detail.getContractTel())) {
mobileList.add(detail.getContractTel());
}
} }
StringBuilder errorInfo = new StringBuilder(); StringBuilder errorInfo = new StringBuilder();
if (errorMust.length() > 0) { if (errorMust.length() > 0) {
......
...@@ -201,6 +201,7 @@ public class DiyExcelImportUtil implements Serializable { ...@@ -201,6 +201,7 @@ public class DiyExcelImportUtil implements Serializable {
if (Common.isEmpty(idCardValue)) { if (Common.isEmpty(idCardValue)) {
idCardNullNum++; idCardNullNum++;
} else { } else {
idCardNullNum = 0;
contentList.add(contentMap); contentList.add(contentMap);
} }
/*if (Common.isNotNull(idCardValue) && (regIdCard(idCardValue) /*if (Common.isNotNull(idCardValue) && (regIdCard(idCardValue)
......
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