进程完成后自动抄送

master
chen 4 years ago
parent 8cf2e6b645
commit a8d712be94
  1. 35
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgCopyForController.java
  2. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgPaymentConfirmationConsiderController.java
  3. 16
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeLetterAssignUserServiceImpl.java
  4. 10
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgLoanNoticeServiceImpl.java
  5. 16
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java

@ -33,22 +33,25 @@ public class DgCopyForController {
@Autowired @Autowired
private IDgCopyForService copyForService; private IDgCopyForService copyForService;
@Log(detail = "抄送",level = 4,operationUnit = OperationUnit.COPYFOR,operationType = OperationType.INSERT) /**
@ApiOperation("抄送任务") * 后端自动处理抄送该接口暂时无用
@PostMapping("/copySend") * */
public R copySend(@RequestBody CopySendRequest copySendRequest){ // @Log(detail = "抄送",level = 4,operationUnit = OperationUnit.COPYFOR,operationType = OperationType.INSERT)
Integer businessId = copySendRequest.getBusinessId(); // @ApiOperation("抄送任务")
Integer processId = copySendRequest.getProcessId(); // @PostMapping("/copySend")
//String imgData = copySendRequest.getImgData(); // public R copySend(@RequestBody CopySendRequest copySendRequest){
Integer detailId = copySendRequest.getDetailId(); // Integer businessId = copySendRequest.getBusinessId();
try { // Integer processId = copySendRequest.getProcessId();
boolean ok = copyForService.copySendUser(businessId,processId,detailId); // //String imgData = copySendRequest.getImgData();
return ok ? R.ok() : R.error(); // Integer detailId = copySendRequest.getDetailId();
} catch (IOException e) { // try {
e.printStackTrace(); // boolean ok = copyForService.copySendUser(businessId,processId,detailId);
return R.error().message(e.getMessage()); // return ok ? R.ok() : R.error();
} // } catch (IOException e) {
} // e.printStackTrace();
// return R.error().message(e.getMessage());
// }
// }
@Log(detail = "抄送",level = 4,operationUnit = OperationUnit.COPYFOR,operationType = OperationType.SELECT) @Log(detail = "抄送",level = 4,operationUnit = OperationUnit.COPYFOR,operationType = OperationType.SELECT)
@ApiOperation("查询抄送详情") @ApiOperation("查询抄送详情")

@ -28,7 +28,7 @@ import java.io.IOException;
* @author Qyq * @author Qyq
* @since 2020-11-05 * @since 2020-11-05
*/ */
@Api(tags = {"回款确认"}) @Api(tags = {"财务确认"})
@RestController @RestController
@RequestMapping("/dg-payment-confirmation-consider") @RequestMapping("/dg-payment-confirmation-consider")
public class DgPaymentConfirmationConsiderController { public class DgPaymentConfirmationConsiderController {

@ -13,6 +13,7 @@ import com.daqing.financial.guarantee.mapper.DgPaymentConfirmationConsiderMapper
import com.daqing.financial.guarantee.model.request.GuaranteeLetterQueryRequest; import com.daqing.financial.guarantee.model.request.GuaranteeLetterQueryRequest;
import com.daqing.financial.guarantee.model.request.GuaranteeLetterUpdateStatusRequest; import com.daqing.financial.guarantee.model.request.GuaranteeLetterUpdateStatusRequest;
import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse; import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse;
import com.daqing.financial.guarantee.service.IDgCopyForService;
import com.daqing.financial.guarantee.service.IDgGuaranteeLetterAssignUserService; import com.daqing.financial.guarantee.service.IDgGuaranteeLetterAssignUserService;
import com.daqing.financial.guarantee.util.AuditProcessUtil; import com.daqing.financial.guarantee.util.AuditProcessUtil;
import com.daqing.financial.guarantee.util.OrdinaryUtil; import com.daqing.financial.guarantee.util.OrdinaryUtil;
@ -60,6 +61,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran
@Autowired @Autowired
private DgGuaranteeAssignUserMapper guaranteeAssignUserMapper; private DgGuaranteeAssignUserMapper guaranteeAssignUserMapper;
@Autowired
private IDgCopyForService copyForService;
@Override @Override
public GuaranteeLetterListResponse selectGuaranteeLetter(String businessId,String roleId) { public GuaranteeLetterListResponse selectGuaranteeLetter(String businessId,String roleId) {
GuaranteeLetterListResponse response = baseMapper.selectGuaranteeLetter(businessId,roleId); GuaranteeLetterListResponse response = baseMapper.selectGuaranteeLetter(businessId,roleId);
@ -388,6 +392,12 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran
paymentConfirmationConsiderFg.setImgFile(""); paymentConfirmationConsiderFg.setImgFile("");
paymentConfirmationConsiderMapper.updateById(paymentConfirmationConsiderFg); paymentConfirmationConsiderMapper.updateById(paymentConfirmationConsiderFg);
} }
//添加抄送数据
try {
copyForService.copySendUser(businessId,8,null);
} catch (IOException e) {
e.printStackTrace();
}
//更新成功,返回操作结果 //更新成功,返回操作结果
log.info(insert > 0 ? "资产部经理成功添加回款数据" : "资产部经理添加回款数据失败"); log.info(insert > 0 ? "资产部经理成功添加回款数据" : "资产部经理添加回款数据失败");
return insert > 0; return insert > 0;
@ -463,6 +473,12 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran
paymentConfirmationConsider.setAuditOpinion(""); paymentConfirmationConsider.setAuditOpinion("");
paymentConfirmationConsider.setImgFile(""); paymentConfirmationConsider.setImgFile("");
int update = paymentConfirmationConsiderMapper.updateById(paymentConfirmationConsider); int update = paymentConfirmationConsiderMapper.updateById(paymentConfirmationConsider);
//添加抄送数据
try {
copyForService.copySendUser(businessId,8,null);
} catch (IOException e) {
e.printStackTrace();
}
//更新成功,返回操作结果 //更新成功,返回操作结果
log.info(update > 0 ? "资产部经理成功添加回款数据" : "资产部经理添加回款数据失败"); log.info(update > 0 ? "资产部经理成功添加回款数据" : "资产部经理添加回款数据失败");
return update > 0; return update > 0;

@ -12,6 +12,7 @@ import com.daqing.financial.guarantee.model.request.LoanNoticeQueryRequest;
import com.daqing.financial.guarantee.model.request.LoanNoticeUpdateRequest; import com.daqing.financial.guarantee.model.request.LoanNoticeUpdateRequest;
import com.daqing.financial.guarantee.model.response.BusinessApplicationListResponse; import com.daqing.financial.guarantee.model.response.BusinessApplicationListResponse;
import com.daqing.financial.guarantee.model.response.LoanNoticeListResponse; import com.daqing.financial.guarantee.model.response.LoanNoticeListResponse;
import com.daqing.financial.guarantee.service.IDgCopyForService;
import com.daqing.financial.guarantee.service.IDgLoanNoticeService; import com.daqing.financial.guarantee.service.IDgLoanNoticeService;
import com.daqing.financial.guarantee.util.AuditProcessUtil; import com.daqing.financial.guarantee.util.AuditProcessUtil;
import com.daqing.financial.guarantee.util.OrdinaryUtil; import com.daqing.financial.guarantee.util.OrdinaryUtil;
@ -65,6 +66,9 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL
@Autowired @Autowired
private AlInsuranceListMapper alInsuranceListMapper; private AlInsuranceListMapper alInsuranceListMapper;
@Autowired
private IDgCopyForService copyForService;
@Autowired @Autowired
private HrmsFeignService hrmsFeignService; private HrmsFeignService hrmsFeignService;
/** /**
@ -182,6 +186,12 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL
} }
} }
} }
//添加抄送数据
try {
copyForService.copySendUser(businessId,10,null);
} catch (IOException e) {
e.printStackTrace();
}
int insert = alInsuranceListMapper.insert(alInsuranceList); int insert = alInsuranceListMapper.insert(alInsuranceList);
//添加成功,返回操作结果 //添加成功,返回操作结果
log.info(insert > 0 ? "业务流程已完成,进入保后管理" : "业务流程更新失败"); log.info(insert > 0 ? "业务流程已完成,进入保后管理" : "业务流程更新失败");

@ -12,6 +12,7 @@ import com.daqing.financial.guarantee.mapper.DgPaymentConfirmationConsiderMapper
import com.daqing.financial.guarantee.model.request.PaymentConfirmationQueryRequest; import com.daqing.financial.guarantee.model.request.PaymentConfirmationQueryRequest;
import com.daqing.financial.guarantee.model.request.PaymentConfirmationUpdateRequest; import com.daqing.financial.guarantee.model.request.PaymentConfirmationUpdateRequest;
import com.daqing.financial.guarantee.model.response.PaymentConfirmationListResponse; import com.daqing.financial.guarantee.model.response.PaymentConfirmationListResponse;
import com.daqing.financial.guarantee.service.IDgCopyForService;
import com.daqing.financial.guarantee.service.IDgPaymentConfirmationConsiderService; import com.daqing.financial.guarantee.service.IDgPaymentConfirmationConsiderService;
import com.daqing.financial.guarantee.util.AuditProcessUtil; import com.daqing.financial.guarantee.util.AuditProcessUtil;
import com.daqing.financial.guarantee.util.OrdinaryUtil; import com.daqing.financial.guarantee.util.OrdinaryUtil;
@ -53,6 +54,9 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl<DgPaym
@Autowired @Autowired
private DgGuaranteeLetterAssignUserMapper guaranteeLetterAssignUserMapper; private DgGuaranteeLetterAssignUserMapper guaranteeLetterAssignUserMapper;
@Autowired
private IDgCopyForService copyForService;
/** /**
* 获取当前登录用户信息 * 获取当前登录用户信息
*/ */
@ -311,6 +315,12 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl<DgPaym
loanNoticeFG.setAuditOpinion(""); loanNoticeFG.setAuditOpinion("");
insert = dgLoanNoticeMapper.updateById(loanNoticeFG); insert = dgLoanNoticeMapper.updateById(loanNoticeFG);
} }
//添加抄送数据
try {
copyForService.copySendUser(businessId,9,null);
} catch (IOException e) {
e.printStackTrace();
}
//更新成功,返回操作结果 //更新成功,返回操作结果
log.info(insert > 0 ? "法规部经理确认成功" : "法规部经理确认失败"); log.info(insert > 0 ? "法规部经理确认成功" : "法规部经理确认失败");
return insert > 0; return insert > 0;
@ -349,6 +359,12 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl<DgPaym
loanNotice.setStatus(StatusCode.SP_IN_REVIEW); loanNotice.setStatus(StatusCode.SP_IN_REVIEW);
loanNotice.setOperatingStatus(StatusCode.CZ_ON_HAND); loanNotice.setOperatingStatus(StatusCode.CZ_ON_HAND);
int updateById = dgLoanNoticeMapper.updateById(loanNotice); int updateById = dgLoanNoticeMapper.updateById(loanNotice);
//添加抄送数据
try {
copyForService.copySendUser(businessId,9,null);
} catch (IOException e) {
e.printStackTrace();
}
//更新成功,返回操作结果 //更新成功,返回操作结果
log.info(updateById > 0 ? "驳回后再次财务部经理确认成功" : "驳回后再次财务部经理确认失败"); log.info(updateById > 0 ? "驳回后再次财务部经理确认成功" : "驳回后再次财务部经理确认失败");
return updateById > 0; return updateById > 0;

Loading…
Cancel
Save