|
|
@@ -28,6 +28,7 @@ import org.jeecg.modules.smscheck.configs.CheckTypeCode;
|
|
|
import org.jeecg.modules.smscheck.entity.*;
|
|
|
import org.jeecg.modules.smscheck.entity.excel.SpecialExaminationExport;
|
|
|
import org.jeecg.modules.smscheck.enums.SpecialExaminationReopen;
|
|
|
+import org.jeecg.modules.smscheck.handle.impl.EmailSendMsgHandle;
|
|
|
import org.jeecg.modules.smscheck.service.*;
|
|
|
import org.jeecg.modules.smscheck.vo.SpecialExaminationCustomerVo;
|
|
|
import org.jeecg.modules.smscheck.vo.SpecialExaminationVo;
|
|
|
@@ -67,7 +68,9 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
*/
|
|
|
@Autowired
|
|
|
private SmcSpecialCheckLogService smcSpecialCheckLogService;
|
|
|
- /**特审复开稽核历史表*/
|
|
|
+ /**
|
|
|
+ * 特审复开稽核历史表
|
|
|
+ */
|
|
|
@Autowired
|
|
|
SmcSpecialCheckLogHistoryService smcSpecialCheckLogHistoryService;
|
|
|
/**
|
|
|
@@ -195,11 +198,17 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
//客户信息状态
|
|
|
customerInfo.setCheckState(CheckStateCode.CHECK_STSTE_2);
|
|
|
//获取关停标签
|
|
|
- //String shutdownLabel = ShutdownLabelByCode.msg(specialExamination.getShutdownLabel().toString());
|
|
|
- //customerInfo.setShutdownLabel(shutdownLabel);
|
|
|
customerInfo.setShutdownLabel(specialExamination.getShutdownLabel().toString());
|
|
|
customerInfo.setShutdownLabelDate(specialExamination.getShutdownTime());
|
|
|
- infoService.updateById(customerInfo);
|
|
|
+ boolean updateById = infoService.updateById(customerInfo);
|
|
|
+ if (updateById) {
|
|
|
+ // 发送邮件
|
|
|
+ EmailSendMsgHandle emailSendMsgHandle = new EmailSendMsgHandle();
|
|
|
+ emailSendMsgHandle.SendMsg("liutt3.bj@chinatelecom.cn",
|
|
|
+ customerInfo.getCreateBy() + "提交复开申请",
|
|
|
+ "工号:" + customerInfo.getStaffNo() + " 工单创建人:" + customerInfo.getCreateBy() + " 提交了复开号码为" + customerInfo.getCustomerNo() + "的复开申请,请及时进行稽核。"
|
|
|
+ );
|
|
|
+ }
|
|
|
return Result.OK("已成功提交申请");
|
|
|
}
|
|
|
|
|
|
@@ -447,14 +456,14 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
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 (deptName2 != null) {
|
|
|
+ info.setStaffDeptLevel2Name(Joiner.on(",").join(deptName2));
|
|
|
}
|
|
|
- if (deptName3 != null){
|
|
|
- info.setStaffDeptLevel3Name( Joiner.on(",").join(deptName3));
|
|
|
+ if (deptName3 != null) {
|
|
|
+ info.setStaffDeptLevel3Name(Joiner.on(",").join(deptName3));
|
|
|
}
|
|
|
- if (deptName4 != null){
|
|
|
- info.setStaffDeptLevel4Name( Joiner.on(",").join(deptName4));
|
|
|
+ if (deptName4 != null) {
|
|
|
+ info.setStaffDeptLevel4Name(Joiner.on(",").join(deptName4));
|
|
|
}
|
|
|
infoVo.setResult("1");
|
|
|
customerCount++;
|
|
|
@@ -502,7 +511,7 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
queryWrapperData.eq(SmcSpecialCheckLog::getDataId, smcSpecialCheckLog.getDataId());
|
|
|
List<SmcSpecialCheckLog> lotList = smcSpecialCheckLogService.list(queryWrapperData);
|
|
|
SmcSpecialCheckLogHistory smcSpecialCheckLogHistory = new SmcSpecialCheckLogHistory();
|
|
|
- BeanUtil.copyProperties(smcSpecialCheckLog,smcSpecialCheckLogHistory);
|
|
|
+ BeanUtil.copyProperties(smcSpecialCheckLog, smcSpecialCheckLogHistory);
|
|
|
smcSpecialCheckLogHistory.setId(null);
|
|
|
smcSpecialCheckLogHistoryService.save(smcSpecialCheckLogHistory);
|
|
|
if (lotList.size() == 0) {
|
|
|
@@ -656,50 +665,49 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
|
|
|
}
|
|
|
|
|
|
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())){
|
|
|
+ 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())){
|
|
|
+ if (smcSpecialCheckLog.getSpecialReviewFormState() != null && !smcSpecialCheckLog.getSpecialReviewFormState().equals(smcSpecialCheckLogHistory.getSpecialReviewFormState())) {
|
|
|
specialExaminationExport.setSpecialReviewFormStateIs(1);
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getIdCardState() != null && !smcSpecialCheckLog.getIdCardState().equals(smcSpecialCheckLogHistory.getIdCardState())){
|
|
|
+ if (smcSpecialCheckLog.getIdCardState() != null && !smcSpecialCheckLog.getIdCardState().equals(smcSpecialCheckLogHistory.getIdCardState())) {
|
|
|
specialExaminationExport.setIdCardStateIs(1);
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getHandCertificateState() != null && !smcSpecialCheckLog.getHandCertificateState().equals(smcSpecialCheckLogHistory.getHandCertificateState())){
|
|
|
+ if (smcSpecialCheckLog.getHandCertificateState() != null && !smcSpecialCheckLog.getHandCertificateState().equals(smcSpecialCheckLogHistory.getHandCertificateState())) {
|
|
|
specialExaminationExport.setHandCertificateStateIs(1);
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getNumberCardState() != null && !smcSpecialCheckLog.getNumberCardState().equals(smcSpecialCheckLogHistory.getNumberCardState())){
|
|
|
+ if (smcSpecialCheckLog.getNumberCardState() != null && !smcSpecialCheckLog.getNumberCardState().equals(smcSpecialCheckLogHistory.getNumberCardState())) {
|
|
|
specialExaminationExport.setNumberCardStateIs(1);
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getHandNumberCardState() != null && !smcSpecialCheckLog.getHandNumberCardState().equals(smcSpecialCheckLogHistory.getHandNumberCardState())){
|
|
|
+ if (smcSpecialCheckLog.getHandNumberCardState() != null && !smcSpecialCheckLog.getHandNumberCardState().equals(smcSpecialCheckLogHistory.getHandNumberCardState())) {
|
|
|
specialExaminationExport.setHandNumberCardStateIs(1);
|
|
|
|
|
|
- if (smcSpecialCheckLog.getLetterCommitmentState() != null && !smcSpecialCheckLog.getLetterCommitmentState().equals(smcSpecialCheckLogHistory.getLetterCommitmentState())){
|
|
|
- specialExaminationExport.setLetterCommitmentStateIs(1);
|
|
|
- }
|
|
|
+ if (smcSpecialCheckLog.getLetterCommitmentState() != null && !smcSpecialCheckLog.getLetterCommitmentState().equals(smcSpecialCheckLogHistory.getLetterCommitmentState())) {
|
|
|
+ specialExaminationExport.setLetterCommitmentStateIs(1);
|
|
|
+ }
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getBusinessLicenseState() != null && !smcSpecialCheckLog.getBusinessLicenseState().equals(smcSpecialCheckLogHistory.getBusinessLicenseState())){
|
|
|
+ if (smcSpecialCheckLog.getBusinessLicenseState() != null && !smcSpecialCheckLog.getBusinessLicenseState().equals(smcSpecialCheckLogHistory.getBusinessLicenseState())) {
|
|
|
specialExaminationExport.setBusinessLicenseStateIs(1);
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getLetterIntroductionState() != null && !smcSpecialCheckLog.getLetterIntroductionState().equals(smcSpecialCheckLogHistory.getLetterIntroductionState())){
|
|
|
+ if (smcSpecialCheckLog.getLetterIntroductionState() != null && !smcSpecialCheckLog.getLetterIntroductionState().equals(smcSpecialCheckLogHistory.getLetterIntroductionState())) {
|
|
|
specialExaminationExport.setLetterIntroductionStateIs(1);
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getUserCertificateState() != null && !smcSpecialCheckLog.getUserCertificateState().equals(smcSpecialCheckLogHistory.getUserCertificateState())){
|
|
|
+ if (smcSpecialCheckLog.getUserCertificateState() != null && !smcSpecialCheckLog.getUserCertificateState().equals(smcSpecialCheckLogHistory.getUserCertificateState())) {
|
|
|
specialExaminationExport.setUserCertificateStateIs(1);
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getFraudPreventionState() != null && !smcSpecialCheckLog.getFraudPreventionState().equals(smcSpecialCheckLogHistory.getFraudPreventionState())){
|
|
|
+ if (smcSpecialCheckLog.getFraudPreventionState() != null && !smcSpecialCheckLog.getFraudPreventionState().equals(smcSpecialCheckLogHistory.getFraudPreventionState())) {
|
|
|
specialExaminationExport.setFraudPreventionStateIs(1);
|
|
|
}
|
|
|
- if (smcSpecialCheckLog.getConsumptionVoucherState() != null && !smcSpecialCheckLog.getConsumptionVoucherState().equals(smcSpecialCheckLogHistory.getConsumptionVoucherState())){
|
|
|
+ if (smcSpecialCheckLog.getConsumptionVoucherState() != null && !smcSpecialCheckLog.getConsumptionVoucherState().equals(smcSpecialCheckLogHistory.getConsumptionVoucherState())) {
|
|
|
specialExaminationExport.setConsumptionVoucherStateIs(1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
pageList.add(specialExaminationExport);
|
|
|
}
|
|
|
|