|
|
|
@ -292,6 +292,12 @@ public class DgMessageInvestigationServiceImpl extends ServiceImpl<DgMessageInve |
|
|
|
|
|
|
|
|
|
//如果是信息部经理驳回情况
|
|
|
|
|
if(messageInvestigation.getOperatingStatus().equals(StatusCode.CZ_ON_HAND) && messageInvestigation.getStatus().equals(StatusCode.SP_REJECT)){ |
|
|
|
|
//修改所有审批状态为审核中
|
|
|
|
|
DgMessageInvestigation investigation1 = new DgMessageInvestigation(); |
|
|
|
|
investigation1.setStatus(StatusCode.SP_IN_REVIEW);//审核中
|
|
|
|
|
this.baseMapper.update(investigation1,new QueryWrapper<DgMessageInvestigation>() |
|
|
|
|
.eq("business_id",messageInvestigation.getBusinessId())); |
|
|
|
|
|
|
|
|
|
//修改信息部调查员的审批状态为审核中,操作状态为已处理
|
|
|
|
|
DgMessageInvestigation investigation = new DgMessageInvestigation(); |
|
|
|
|
investigation.setOperatingStatus(StatusCode.CZ_PROCESSED);//已处理
|
|
|
|
@ -349,7 +355,7 @@ public class DgMessageInvestigationServiceImpl extends ServiceImpl<DgMessageInve |
|
|
|
|
null, |
|
|
|
|
Wrappers.<DgMessageInvestigation>lambdaUpdate() |
|
|
|
|
.set(DgMessageInvestigation::getEmpId, Integer.parseInt(dgApplyAmountInfoController.getUserId())) |
|
|
|
|
.set(DgMessageInvestigation::getStatus, approvalMessageRequest.getStatus()) |
|
|
|
|
.set(DgMessageInvestigation::getStatus, dgMessageInvestigation.getStatus())//approvalMessageRequest.getStatus()
|
|
|
|
|
.set(DgMessageInvestigation::getOperatingStatus, StatusCode.CZ_PROCESSED) |
|
|
|
|
.set(DgMessageInvestigation::getRemark, approvalMessageRequest.getRemark()) |
|
|
|
|
.eq(DgMessageInvestigation::getId, approvalMessageRequest.getId()) |
|
|
|
@ -408,6 +414,12 @@ public class DgMessageInvestigationServiceImpl extends ServiceImpl<DgMessageInve |
|
|
|
|
Integer count = this.baseMapper.selectCount(new QueryWrapper<DgMessageInvestigation>() |
|
|
|
|
.eq("business_id", messageInvestigation2.getBusinessId()).eq("type", 3)); |
|
|
|
|
|
|
|
|
|
DgMessageInvestigation assign = new DgMessageInvestigation(); |
|
|
|
|
assign.setStatus(StatusCode.SP_IN_REVIEW);//审批状态为审核中
|
|
|
|
|
//修改该业务下所有审批状态为审核中
|
|
|
|
|
this.baseMapper.update(assign,new QueryWrapper<DgMessageInvestigation>() |
|
|
|
|
.eq("business_id",messageInvestigation.getBusinessId())); |
|
|
|
|
|
|
|
|
|
if(count>0){//资产领导有数据,则直接修改领导状态
|
|
|
|
|
DgMessageInvestigation assignUser = new DgMessageInvestigation(); |
|
|
|
|
assignUser.setStatus(StatusCode.SP_IN_REVIEW);//审批状态为审核中
|
|
|
|
|