调解书签收
This commit is contained in:
+2
@@ -24,4 +24,6 @@ public interface MsSignSealService {
|
||||
List<MsCaseLogRecordVO> selectCaseLogRecordList(MsSignSealDTO dto);
|
||||
|
||||
AjaxResult msCaseFile(List<Long> ids);
|
||||
|
||||
AjaxResult msCaseSign(MsSignSealDTO dto);
|
||||
}
|
||||
|
||||
+35
@@ -601,6 +601,41 @@ public class MsSignSealServiceImpl implements MsSignSealService {
|
||||
return AjaxResult.success("归档成功");
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public AjaxResult msCaseSign(MsSignSealDTO dto) {
|
||||
Long caseId = dto.getCaseId();
|
||||
MsCaseAffiliate caseAffiliate = msCaseAffiliateMapper.selectByPrimaryKey(caseId);
|
||||
MsCaseApplication caseApplicationselect = msCaseApplicationMapper.selectByPrimaryKey(caseId);
|
||||
if (dto.getIsSignApply() != null && dto.getIsSignApply().intValue() == 1) {
|
||||
caseAffiliate.setIsSignApply(1);
|
||||
msCaseAffiliateMapper.updateByPrimaryKeySelective(caseAffiliate);
|
||||
if (caseAffiliate.getIsSignRespon() != null && caseAffiliate.getIsSignRespon().intValue() == 1) {
|
||||
// 根据流程id查找下一个流程节点
|
||||
MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId());
|
||||
caseApplicationselect.setCaseFlowId(nextFlow.getId());
|
||||
caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
|
||||
caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
|
||||
CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), nextFlow.getNodeId(), nextFlow.getCaseStatusName(),"签收");
|
||||
}
|
||||
}
|
||||
if (dto.getIsSignRespon() != null && dto.getIsSignRespon().intValue() == 1) {
|
||||
caseAffiliate.setIsSignRespon(1);
|
||||
msCaseAffiliateMapper.updateByPrimaryKeySelective(caseAffiliate);
|
||||
if (caseAffiliate.getIsSignApply() != null && caseAffiliate.getIsSignApply().intValue() == 1) {
|
||||
// 根据流程id查找下一个流程节点
|
||||
MsCaseFlow nextFlow = caseFlowMapper.nextFlow(caseApplicationselect.getCaseFlowId());
|
||||
caseApplicationselect.setCaseFlowId(nextFlow.getId());
|
||||
caseApplicationselect.setCaseStatusName(nextFlow.getCaseStatusName());
|
||||
caseApplicationMapper.updateByPrimaryKeySelective(caseApplicationselect);
|
||||
CaseLogUtils.insertCaseLog(caseApplicationselect.getId(), nextFlow.getNodeId(), nextFlow.getCaseStatusName(),"签收");
|
||||
}
|
||||
}
|
||||
|
||||
return AjaxResult.success("签收成功");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过邮件发送裁决书文件
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user