修改签收功能

This commit is contained in:
qitz
2024-02-26 10:24:00 +08:00
parent 5ad63c8905
commit 9fe2684b33
@@ -723,6 +723,11 @@ public class MsSignSealServiceImpl implements MsSignSealService {
Long caseId = dto.getCaseId(); Long caseId = dto.getCaseId();
MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(caseId); MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(caseId);
MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(caseId); MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(caseId);
// 查询当前节点
MsCaseFlow currentFlow = caseFlowMapper.selectByPrimaryKey(caseApplicationselect.getCaseFlowId());
if (currentFlow == null) {
return AjaxResult.error("当前流程不存在");
}
// if (dto.getIsSignApply() != null && dto.getIsSignApply().intValue() == 1) { // if (dto.getIsSignApply() != null && dto.getIsSignApply().intValue() == 1) {
// caseAffiliate.setIsSignApply(1); // caseAffiliate.setIsSignApply(1);
// msCaseAffiliateMapper.updateByPrimaryKeySelective(caseAffiliate); // msCaseAffiliateMapper.updateByPrimaryKeySelective(caseAffiliate);
@@ -744,7 +749,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
caseApplicationselect.setCaseFlowId(nextFlow.getId()); caseApplicationselect.setCaseFlowId(nextFlow.getId());
caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName()); caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect); caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), nextFlow.getNodeId(), nextFlow.getCaseStatusName(),"签收"); CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"签收");
} }
// if (dto.getIsSignRespon() != null && dto.getIsSignRespon().intValue() == 1) { // if (dto.getIsSignRespon() != null && dto.getIsSignRespon().intValue() == 1) {
// caseAffiliate.setIsSignRespon(1); // caseAffiliate.setIsSignRespon(1);
@@ -768,7 +773,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
caseApplicationselect.setCaseFlowId(nextFlow.getId()); caseApplicationselect.setCaseFlowId(nextFlow.getId());
caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName()); caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect); caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), nextFlow.getNodeId(), nextFlow.getCaseStatusName(),"签收"); CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"签收");
} }
return AjaxResult.success("签收成功"); return AjaxResult.success("签收成功");