|
@@ -1,4 +1,5 @@
|
|
|
package org.jeecg.modules.smscheck.controller;
|
|
package org.jeecg.modules.smscheck.controller;
|
|
|
|
|
+
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.lang.Dict;
|
|
import cn.hutool.core.lang.Dict;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
@@ -7,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
+import com.google.common.base.Joiner;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -16,7 +18,6 @@ import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.aspect.annotation.PermissionData;
|
|
import org.jeecg.common.aspect.annotation.PermissionData;
|
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
|
-import org.jeecg.common.system.api.ISysBaseAPI;
|
|
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
@@ -26,7 +27,9 @@ import org.jeecg.modules.smscheck.configs.CheckStateCode;
|
|
|
import org.jeecg.modules.smscheck.configs.CheckTypeCode;
|
|
import org.jeecg.modules.smscheck.configs.CheckTypeCode;
|
|
|
import org.jeecg.modules.smscheck.entity.*;
|
|
import org.jeecg.modules.smscheck.entity.*;
|
|
|
import org.jeecg.modules.smscheck.entity.excel.SpecialExaminationExport;
|
|
import org.jeecg.modules.smscheck.entity.excel.SpecialExaminationExport;
|
|
|
|
|
+import org.jeecg.modules.smscheck.enums.SpecialExaminationReopen;
|
|
|
import org.jeecg.modules.smscheck.service.*;
|
|
import org.jeecg.modules.smscheck.service.*;
|
|
|
|
|
+import org.jeecg.modules.smscheck.service.impl.SmsCheckTaskServiceImpl;
|
|
|
import org.jeecg.modules.smscheck.vo.SpecialExaminationCustomerVo;
|
|
import org.jeecg.modules.smscheck.vo.SpecialExaminationCustomerVo;
|
|
|
import org.jeecg.modules.smscheck.vo.SpecialExaminationVo;
|
|
import org.jeecg.modules.smscheck.vo.SpecialExaminationVo;
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
@@ -60,22 +63,23 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ISmsCheckCustomerInfoService customerInfoService;
|
|
private ISmsCheckCustomerInfoService customerInfoService;
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private ISmsCheckTaskService taskService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 特审复开审批稽核业务
|
|
* 特审复开审批稽核业务
|
|
|
*/
|
|
*/
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private SmcSpecialCheckLogService smcSpecialCheckLogService;
|
|
private SmcSpecialCheckLogService smcSpecialCheckLogService;
|
|
|
|
|
+ /**特审复开稽核历史表*/
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ SmcSpecialCheckLogHistoryService smcSpecialCheckLogHistoryService;
|
|
|
/**
|
|
/**
|
|
|
* 客户信息业务
|
|
* 客户信息业务
|
|
|
*/
|
|
*/
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ISmsCheckCustomerInfoService infoService;
|
|
private ISmsCheckCustomerInfoService infoService;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ ISmsCheckTaskService iSmsCheckTaskService;
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "客户资料-信息查询查询", notes = "客户资料-个人列表查询")
|
|
@ApiOperation(value = "客户资料-信息查询查询", notes = "客户资料-个人列表查询")
|
|
@@ -202,7 +206,6 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
@AutoLog(value = "特审复开审批-资料批量上传")
|
|
@AutoLog(value = "特审复开审批-资料批量上传")
|
|
|
@ApiOperation(value = "特审复开审批-资料批量上传", notes = "特审复开审批-资料批量上传")
|
|
@ApiOperation(value = "特审复开审批-资料批量上传", notes = "特审复开审批-资料批量上传")
|
|
|
@PostMapping(value = "/batch/edit/info")
|
|
@PostMapping(value = "/batch/edit/info")
|
|
@@ -261,6 +264,7 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
specialExaminationService.save(specialExamination);
|
|
specialExaminationService.save(specialExamination);
|
|
|
return Result.OK("添加成功!");
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@AutoLog(value = "暂存特审复开审批数据")
|
|
@AutoLog(value = "暂存特审复开审批数据")
|
|
|
@ApiOperation(value = "暂存特审复开审批数据", notes = "暂存特审复开审批数据")
|
|
@ApiOperation(value = "暂存特审复开审批数据", notes = "暂存特审复开审批数据")
|
|
|
@PostMapping(value = "/staging")
|
|
@PostMapping(value = "/staging")
|
|
@@ -272,16 +276,16 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
// 互获取客户信息
|
|
// 互获取客户信息
|
|
|
SmsCheckCustomerInfo customerInfo = infoService.getById(infoId);
|
|
SmsCheckCustomerInfo customerInfo = infoService.getById(infoId);
|
|
|
Integer checkState = customerInfo.getCheckState();
|
|
Integer checkState = customerInfo.getCheckState();
|
|
|
- if (!CheckStateCode.CHECK_STSTE_0.equals(checkState) && !CheckStateCode.CHECK_STSTE_1.equals(checkState)){
|
|
|
|
|
|
|
+ if (!CheckStateCode.CHECK_STSTE_0.equals(checkState) && !CheckStateCode.CHECK_STSTE_1.equals(checkState)) {
|
|
|
return Result.error("暂存失败,该客户状态不允许暂存");
|
|
return Result.error("暂存失败,该客户状态不允许暂存");
|
|
|
}
|
|
}
|
|
|
SpecialExamination specialExamination = new SpecialExamination();
|
|
SpecialExamination specialExamination = new SpecialExamination();
|
|
|
- BeanUtil.copyProperties(specialExaminationVo,specialExamination);
|
|
|
|
|
|
|
+ BeanUtil.copyProperties(specialExaminationVo, specialExamination);
|
|
|
// 暂存特审复开数据
|
|
// 暂存特审复开数据
|
|
|
SpecialExamination specialByInfoId = specialExaminationService.getSpecialByInfoId(infoId);
|
|
SpecialExamination specialByInfoId = specialExaminationService.getSpecialByInfoId(infoId);
|
|
|
- if (null == specialByInfoId){
|
|
|
|
|
|
|
+ if (null == specialByInfoId) {
|
|
|
specialExaminationService.save(specialExamination);
|
|
specialExaminationService.save(specialExamination);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
specialExamination.setId(specialByInfoId.getId());
|
|
specialExamination.setId(specialByInfoId.getId());
|
|
|
specialExaminationService.updateById(specialExamination);
|
|
specialExaminationService.updateById(specialExamination);
|
|
|
}
|
|
}
|
|
@@ -299,7 +303,7 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
@PostMapping(value = "/staging/list")
|
|
@PostMapping(value = "/staging/list")
|
|
|
public Result<String> stagingList(@RequestBody SpecialExaminationVo specialExaminationVo) {
|
|
public Result<String> stagingList(@RequestBody SpecialExaminationVo specialExaminationVo) {
|
|
|
List<String> infoIds = specialExaminationVo.getInfoIds();
|
|
List<String> infoIds = specialExaminationVo.getInfoIds();
|
|
|
- if (infoIds == null || infoIds.size() == 0){
|
|
|
|
|
|
|
+ if (infoIds == null || infoIds.size() == 0) {
|
|
|
return Result.error("客户未选择");
|
|
return Result.error("客户未选择");
|
|
|
}
|
|
}
|
|
|
infoIds.forEach(infoId -> {
|
|
infoIds.forEach(infoId -> {
|
|
@@ -307,15 +311,15 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
// 查看当前客户信息
|
|
// 查看当前客户信息
|
|
|
SmsCheckCustomerInfo customerInfo = infoService.getById(infoId);
|
|
SmsCheckCustomerInfo customerInfo = infoService.getById(infoId);
|
|
|
Integer checkState = customerInfo.getCheckState();
|
|
Integer checkState = customerInfo.getCheckState();
|
|
|
- if (CheckStateCode.CHECK_STSTE_0.equals(checkState) || CheckStateCode.CHECK_STSTE_1.equals(checkState)){
|
|
|
|
|
|
|
+ if (CheckStateCode.CHECK_STSTE_0.equals(checkState) || CheckStateCode.CHECK_STSTE_1.equals(checkState)) {
|
|
|
SpecialExamination specialExamination = new SpecialExamination();
|
|
SpecialExamination specialExamination = new SpecialExamination();
|
|
|
- BeanUtil.copyProperties(specialExaminationVo,specialExamination);
|
|
|
|
|
|
|
+ BeanUtil.copyProperties(specialExaminationVo, specialExamination);
|
|
|
// 暂存特审复开数据
|
|
// 暂存特审复开数据
|
|
|
SpecialExamination specialByInfoId = specialExaminationService.getSpecialByInfoId(infoId);
|
|
SpecialExamination specialByInfoId = specialExaminationService.getSpecialByInfoId(infoId);
|
|
|
- if (null == specialByInfoId){
|
|
|
|
|
|
|
+ if (null == specialByInfoId) {
|
|
|
specialExamination.setInfoId(infoId);
|
|
specialExamination.setInfoId(infoId);
|
|
|
specialExaminationService.save(specialExamination);
|
|
specialExaminationService.save(specialExamination);
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
specialExamination.setInfoId(infoId);
|
|
specialExamination.setInfoId(infoId);
|
|
|
specialExamination.setId(specialByInfoId.getId());
|
|
specialExamination.setId(specialByInfoId.getId());
|
|
|
specialExaminationService.updateById(specialExamination);
|
|
specialExaminationService.updateById(specialExamination);
|
|
@@ -333,7 +337,6 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
@PostMapping(value = "/status/adopt")
|
|
@PostMapping(value = "/status/adopt")
|
|
|
public Result<?> adopt(@RequestBody SpecialExamination specialExamination) {
|
|
public Result<?> adopt(@RequestBody SpecialExamination specialExamination) {
|
|
|
String infoId = specialExamination.getInfoId();
|
|
String infoId = specialExamination.getInfoId();
|
|
@@ -432,7 +435,7 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
// 0:未处理;1:未完善;2:待稽核;3:待整改;4:已整改;5:稽核通过;
|
|
// 0:未处理;1:未完善;2:待稽核;3:待整改;4:已整改;5:稽核通过;
|
|
|
info.setCheckState(CheckStateCode.CHECK_STSTE_0);
|
|
info.setCheckState(CheckStateCode.CHECK_STSTE_0);
|
|
|
info.setType(CheckTypeCode.CHECK_TYPE_3);
|
|
info.setType(CheckTypeCode.CHECK_TYPE_3);
|
|
|
- if (saveLogMap.get(info.getSmsNumber()) != null){
|
|
|
|
|
|
|
+ if (saveLogMap.get(info.getSmsNumber()) != null) {
|
|
|
infoVo.setResult("0");
|
|
infoVo.setResult("0");
|
|
|
infoVo.setErrorMsg("本次已导入过此号码");
|
|
infoVo.setErrorMsg("本次已导入过此号码");
|
|
|
|
|
|
|
@@ -441,6 +444,18 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
&& StringUtils.isNotEmpty(info.getMaterialLabel())
|
|
&& StringUtils.isNotEmpty(info.getMaterialLabel())
|
|
|
&& StringUtils.isNotEmpty(info.getNameFindCompliance())
|
|
&& StringUtils.isNotEmpty(info.getNameFindCompliance())
|
|
|
) {
|
|
) {
|
|
|
|
|
+ List<String> deptName2 = iSmsCheckTaskService.getDeptNameByWorkNo("1", sysUser.getWorkNo());
|
|
|
|
|
+ List<String> deptName3 = iSmsCheckTaskService.getDeptNameByWorkNo("2", sysUser.getWorkNo());
|
|
|
|
|
+ List<String> deptName4 = iSmsCheckTaskService.getDeptNameByWorkNo("3", sysUser.getWorkNo());
|
|
|
|
|
+ if (deptName2 != null){
|
|
|
|
|
+ info.setStaffDeptLevel2Name( Joiner.on(",").join(deptName2));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (deptName3 != null){
|
|
|
|
|
+ info.setStaffDeptLevel3Name( Joiner.on(",").join(deptName3));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (deptName4 != null){
|
|
|
|
|
+ info.setStaffDeptLevel4Name( Joiner.on(",").join(deptName4));
|
|
|
|
|
+ }
|
|
|
infoVo.setResult("1");
|
|
infoVo.setResult("1");
|
|
|
customerCount++;
|
|
customerCount++;
|
|
|
// 存入客户信息表
|
|
// 存入客户信息表
|
|
@@ -452,7 +467,7 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
String materialLabel = info.getMaterialLabel();
|
|
String materialLabel = info.getMaterialLabel();
|
|
|
specialExamination.setMaterialLabel("有".equals(materialLabel) ? 0 : 1);
|
|
specialExamination.setMaterialLabel("有".equals(materialLabel) ? 0 : 1);
|
|
|
specialExaminationService.save(specialExamination);
|
|
specialExaminationService.save(specialExamination);
|
|
|
- saveLogMap.put(info.getSmsNumber(),infoVo);
|
|
|
|
|
|
|
+ saveLogMap.put(info.getSmsNumber(), infoVo);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
infoVo.setResult("0");
|
|
infoVo.setResult("0");
|
|
@@ -486,6 +501,10 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
LambdaQueryWrapper<SmcSpecialCheckLog> queryWrapperData = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<SmcSpecialCheckLog> queryWrapperData = new LambdaQueryWrapper<>();
|
|
|
queryWrapperData.eq(SmcSpecialCheckLog::getDataId, smcSpecialCheckLog.getDataId());
|
|
queryWrapperData.eq(SmcSpecialCheckLog::getDataId, smcSpecialCheckLog.getDataId());
|
|
|
List<SmcSpecialCheckLog> lotList = smcSpecialCheckLogService.list(queryWrapperData);
|
|
List<SmcSpecialCheckLog> lotList = smcSpecialCheckLogService.list(queryWrapperData);
|
|
|
|
|
+ SmcSpecialCheckLogHistory smcSpecialCheckLogHistory = new SmcSpecialCheckLogHistory();
|
|
|
|
|
+ BeanUtil.copyProperties(smcSpecialCheckLog,smcSpecialCheckLogHistory);
|
|
|
|
|
+ smcSpecialCheckLogHistory.setId(null);
|
|
|
|
|
+ smcSpecialCheckLogHistoryService.save(smcSpecialCheckLogHistory);
|
|
|
if (lotList.size() == 0) {
|
|
if (lotList.size() == 0) {
|
|
|
smcSpecialCheckLogService.save(smcSpecialCheckLog);
|
|
smcSpecialCheckLogService.save(smcSpecialCheckLog);
|
|
|
} else {
|
|
} else {
|
|
@@ -499,8 +518,8 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
int lotStatus = stateBoolean ? 5 : 4;
|
|
int lotStatus = stateBoolean ? 5 : 4;
|
|
|
//修改客户信息稽核结果
|
|
//修改客户信息稽核结果
|
|
|
info.setCheckState(lotStatus);
|
|
info.setCheckState(lotStatus);
|
|
|
- if (5 == lotStatus){
|
|
|
|
|
- info.setReopenTime( new Date());
|
|
|
|
|
|
|
+ if (5 == lotStatus) {
|
|
|
|
|
+ info.setReopenTime(new Date());
|
|
|
}
|
|
}
|
|
|
infoService.updateById(info);
|
|
infoService.updateById(info);
|
|
|
return Result.OK("稽核成功!");
|
|
return Result.OK("稽核成功!");
|
|
@@ -595,7 +614,7 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
@RequestMapping(value = "/exportXls")
|
|
@RequestMapping(value = "/exportXls")
|
|
|
public ModelAndView exportXls(HttpServletRequest request, SmsCheckCustomerInfo smsCheckCustomerInfo) {
|
|
public ModelAndView exportXls(HttpServletRequest request, SmsCheckCustomerInfo smsCheckCustomerInfo) {
|
|
|
smsCheckCustomerInfo.setType(3);
|
|
smsCheckCustomerInfo.setType(3);
|
|
|
- return exportXls(request, smsCheckCustomerInfo, SpecialExaminationExport.class, "特审复开信息");
|
|
|
|
|
|
|
+ return exportXls(request, smsCheckCustomerInfo, SpecialExaminationExport.class, "特审复开信息");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
protected ModelAndView exportXls(HttpServletRequest request, SmsCheckCustomerInfo object, Class<SpecialExaminationExport> clazz, String title) {
|
|
protected ModelAndView exportXls(HttpServletRequest request, SmsCheckCustomerInfo object, Class<SpecialExaminationExport> clazz, String title) {
|
|
@@ -608,63 +627,74 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
// 获取上传资料数据
|
|
// 获取上传资料数据
|
|
|
List<SpecialExamination> logList = specialExaminationService.list();
|
|
List<SpecialExamination> logList = specialExaminationService.list();
|
|
|
Map<String, SpecialExamination> logMap
|
|
Map<String, SpecialExamination> logMap
|
|
|
- = logList.stream().collect(Collectors.toMap(v->v.getInfoId(), Function.identity(), (o, n) -> o));
|
|
|
|
|
|
|
+ = logList.stream().collect(Collectors.toMap(v -> v.getInfoId(), Function.identity(), (o, n) -> o));
|
|
|
|
|
|
|
|
// 获取稽核资料数据
|
|
// 获取稽核资料数据
|
|
|
List<SmcSpecialCheckLog> dataList = smcSpecialCheckLogService.list();
|
|
List<SmcSpecialCheckLog> dataList = smcSpecialCheckLogService.list();
|
|
|
Map<String, SmcSpecialCheckLog> dataMap
|
|
Map<String, SmcSpecialCheckLog> dataMap
|
|
|
- = dataList.stream().collect(Collectors.toMap(v->v.getInfoId(), Function.identity(), (o, n) -> o));
|
|
|
|
|
|
|
+ = dataList.stream().collect(Collectors.toMap(v -> v.getInfoId(), Function.identity(), (o, n) -> o));
|
|
|
|
|
|
|
|
List<SpecialExaminationExport> pageList = new ArrayList<>();
|
|
List<SpecialExaminationExport> pageList = new ArrayList<>();
|
|
|
- SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
|
+ // 组装复开数据
|
|
|
for (SmsCheckCustomerInfo smsCheckCustomerInfo : infoList) {
|
|
for (SmsCheckCustomerInfo smsCheckCustomerInfo : infoList) {
|
|
|
SpecialExamination specialExamination = logMap.get(smsCheckCustomerInfo.getId());
|
|
SpecialExamination specialExamination = logMap.get(smsCheckCustomerInfo.getId());
|
|
|
SmcSpecialCheckLog smcSpecialCheckLog = dataMap.get(smsCheckCustomerInfo.getId());
|
|
SmcSpecialCheckLog smcSpecialCheckLog = dataMap.get(smsCheckCustomerInfo.getId());
|
|
|
SpecialExaminationExport specialExaminationExport = new SpecialExaminationExport();
|
|
SpecialExaminationExport specialExaminationExport = new SpecialExaminationExport();
|
|
|
- BeanUtil.copyProperties(specialExamination,specialExaminationExport);
|
|
|
|
|
- BeanUtil.copyProperties(smcSpecialCheckLog,specialExaminationExport);
|
|
|
|
|
- BeanUtil.copyProperties(smsCheckCustomerInfo,specialExaminationExport);
|
|
|
|
|
|
|
+ BeanUtil.copyProperties(specialExamination, specialExaminationExport);
|
|
|
|
|
+ BeanUtil.copyProperties(smcSpecialCheckLog, specialExaminationExport);
|
|
|
|
|
+ BeanUtil.copyProperties(smsCheckCustomerInfo, specialExaminationExport);
|
|
|
String shutdownLabel = specialExaminationExport.getShutdownLabel();
|
|
String shutdownLabel = specialExaminationExport.getShutdownLabel();
|
|
|
- if (StringUtils.isNotEmpty(shutdownLabel)){
|
|
|
|
|
- String name = "";
|
|
|
|
|
|
|
+ if (StringUtils.isNotEmpty(shutdownLabel)) {
|
|
|
|
|
+ StringBuilder name = new StringBuilder();
|
|
|
String[] split = shutdownLabel.split(",");
|
|
String[] split = shutdownLabel.split(",");
|
|
|
- for (String lable:split){
|
|
|
|
|
- if (lable.equals("0")){
|
|
|
|
|
- name = name + " " + "安防停机(高危漫游地)";
|
|
|
|
|
|
|
+ for (String lable : split) {
|
|
|
|
|
+ String nameByValue = SpecialExaminationReopen.findNameByValue(lable);
|
|
|
|
|
+ name.append(" ").append(nameByValue);
|
|
|
|
|
+ }
|
|
|
|
|
+ specialExaminationExport.setShutdownLabel(name.toString());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ List<SmcSpecialCheckLogHistory> historyList = smcSpecialCheckLogHistoryService.list(new LambdaQueryWrapper<SmcSpecialCheckLogHistory>().eq(SmcSpecialCheckLogHistory::getInfoId, specialExamination.getInfoId()));
|
|
|
|
|
+ if (historyList != null){
|
|
|
|
|
+ for (SmcSpecialCheckLogHistory smcSpecialCheckLogHistory : historyList){
|
|
|
|
|
+ if (smcSpecialCheckLog.getNameFindComplianceState() != null && !smcSpecialCheckLog.getNameFindComplianceState().equals(smcSpecialCheckLogHistory.getNameFindComplianceState())){
|
|
|
|
|
+ specialExaminationExport.setNameFindComplianceStateIs(1);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (smcSpecialCheckLog.getSpecialReviewFormState() != null && !smcSpecialCheckLog.getSpecialReviewFormState().equals(smcSpecialCheckLogHistory.getSpecialReviewFormState())){
|
|
|
|
|
+ specialExaminationExport.setSpecialReviewFormStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals( "1")){
|
|
|
|
|
- name = name + " " + "安防关停(紫名单)";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getIdCardState() != null && !smcSpecialCheckLog.getIdCardState().equals(smcSpecialCheckLogHistory.getIdCardState())){
|
|
|
|
|
+ specialExaminationExport.setIdCardStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals("2")){
|
|
|
|
|
- name = name + " " + "安防停机(专班研判)";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getHandCertificateState() != null && !smcSpecialCheckLog.getHandCertificateState().equals(smcSpecialCheckLogHistory.getHandCertificateState())){
|
|
|
|
|
+ specialExaminationExport.setHandCertificateStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals("3")){
|
|
|
|
|
- name = name + " " + "安防停机(可复开)";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getNumberCardState() != null && !smcSpecialCheckLog.getNumberCardState().equals(smcSpecialCheckLogHistory.getNumberCardState())){
|
|
|
|
|
+ specialExaminationExport.setNumberCardStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals("4")){
|
|
|
|
|
- name = name + " " + "沉默移动卡保护性单停";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getLetterCommitmentState() != null && !smcSpecialCheckLog.getLetterCommitmentState().equals(smcSpecialCheckLogHistory.getLetterCommitmentState())){
|
|
|
|
|
+ specialExaminationExport.setLetterCommitmentStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals("5")){
|
|
|
|
|
- name = name + " " + "集团一点停复机(单停)";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getNumberCardState() != null && !smcSpecialCheckLog.getNumberCardState().equals(smcSpecialCheckLogHistory.getNumberCardState())){
|
|
|
|
|
+ specialExaminationExport.setBusinessLicenseStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals("6")){
|
|
|
|
|
- name = name + " " + "大数据保护停机单停 ";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getLetterIntroductionState() != null && !smcSpecialCheckLog.getLetterIntroductionState().equals(smcSpecialCheckLogHistory.getLetterIntroductionState())){
|
|
|
|
|
+ specialExaminationExport.setLetterIntroductionStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals("7")){
|
|
|
|
|
- name = name + " " + "工信部断卡单停 ";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getUserCertificateState() != null && !smcSpecialCheckLog.getUserCertificateState().equals(smcSpecialCheckLogHistory.getUserCertificateState())){
|
|
|
|
|
+ specialExaminationExport.setUserCertificateStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals("8")){
|
|
|
|
|
- name = name + " " + "实人核验未通过关停(单停)";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getFraudPreventionState() != null && !smcSpecialCheckLog.getFraudPreventionState().equals(smcSpecialCheckLogHistory.getFraudPreventionState())){
|
|
|
|
|
+ specialExaminationExport.setFraudPreventionStateIs(1);
|
|
|
}
|
|
}
|
|
|
- if (lable.equals("999")){
|
|
|
|
|
- name = name + " " + "其它 ";
|
|
|
|
|
|
|
+ if (smcSpecialCheckLog.getConsumptionVoucherState() != null && !smcSpecialCheckLog.getConsumptionVoucherState().equals(smcSpecialCheckLogHistory.getConsumptionVoucherState())){
|
|
|
|
|
+ specialExaminationExport.setConsumptionVoucherStateIs(1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- specialExaminationExport.setShutdownLabel(name);
|
|
|
|
|
}
|
|
}
|
|
|
- specialExaminationExport.setDataId(smsCheckCustomerInfo.getDataId());
|
|
|
|
|
- //以dataid代替id
|
|
|
|
|
- //smsCheckCustomerDataAndLog.setDataId(smsCheckCustomerInfo.getId());
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
pageList.add(specialExaminationExport);
|
|
pageList.add(specialExaminationExport);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -685,10 +715,10 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
mv.addObject(NormalExcelConstants.FILE_NAME, title);
|
|
mv.addObject(NormalExcelConstants.FILE_NAME, title);
|
|
|
mv.addObject(NormalExcelConstants.CLASS, clazz);
|
|
mv.addObject(NormalExcelConstants.CLASS, clazz);
|
|
|
//update-begin--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置--------------------
|
|
//update-begin--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置--------------------
|
|
|
- ExportParams exportParams=new ExportParams(title + "报表", "导出人:" + sysUser.getRealname(), title);
|
|
|
|
|
|
|
+ ExportParams exportParams = new ExportParams(title + "报表", "导出人:" + sysUser.getRealname(), title);
|
|
|
exportParams.setImageBasePath(upLoadPath);
|
|
exportParams.setImageBasePath(upLoadPath);
|
|
|
//update-end--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置----------------------
|
|
//update-end--Author:liusq Date:20210126 for:图片导出报错,ImageBasePath未设置----------------------
|
|
|
- mv.addObject(NormalExcelConstants.PARAMS,exportParams);
|
|
|
|
|
|
|
+ mv.addObject(NormalExcelConstants.PARAMS, exportParams);
|
|
|
mv.addObject(NormalExcelConstants.DATA_LIST, exportList);
|
|
mv.addObject(NormalExcelConstants.DATA_LIST, exportList);
|
|
|
return mv;
|
|
return mv;
|
|
|
}
|
|
}
|