|
|
|
@ -160,7 +160,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM |
|
|
|
|
} |
|
|
|
|
EntrustAlterApply oldInfo = super.getById(dto.getId()); |
|
|
|
|
DLPUser user = SecurityUtils.getUser(); |
|
|
|
|
if (oldInfo.getApplicant().equals(user.getId())) { |
|
|
|
|
if (!oldInfo.getApplicant().equals(user.getId())) { |
|
|
|
|
throw new ValidateCodeException("请勿修改其他人的申请信息!"); |
|
|
|
|
} |
|
|
|
|
if (dto.getOpCode() == 1 && oldInfo.getStatus().equals(EntrustAlterApplyStatus.SUBMITTED_WAIT_APPROVE.getStatus())) { |
|
|
|
@ -183,7 +183,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM |
|
|
|
|
List<EntrustAlterApplyVO> entrustAlterAppliesVOS = baseMapper.getEntrustAlterApplyVOList(Wrappers.<EntrustAlterApply>query().in("eaa.id",ids)); |
|
|
|
|
DLPUser user = SecurityUtils.getUser(); |
|
|
|
|
entrustAlterAppliesVOS.forEach(e -> { |
|
|
|
|
if (e.getApplicant().equals(user.getId())) { |
|
|
|
|
if (!e.getApplicant().equals(user.getId())) { |
|
|
|
|
throw new ValidateCodeException("请勿修改其他人的申请信息!"); |
|
|
|
|
} |
|
|
|
|
if (e.getStatus().equals(EntrustAlterApplyStatus.WAIT_SUBMIT_APPLY.getStatus())) { |
|
|
|
@ -207,8 +207,8 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM |
|
|
|
|
String entrustmentId = entrustment.getId(); |
|
|
|
|
CaseEvent oldCaseInfo = caseEventService.getById(entrustment.getCaseId()); |
|
|
|
|
caseEventService.update(Wrappers.<CaseEvent>lambdaUpdate().eq(CaseEvent::getId, entrustment.getCaseId()).set(CaseEvent::getCaseBrief, dto.getCaseBrief())); |
|
|
|
|
// 添加更新记录 | - 代表换行
|
|
|
|
|
updateRecordBuilder.append("操作记录:").append("-该委托案件的案件简要由 [").append(oldCaseInfo.getCaseBrief()).append("] 更改为 [").append(dto.getCaseBrief()).append("] 。"); |
|
|
|
|
// 添加更新记录 | <br> 代表换行
|
|
|
|
|
updateRecordBuilder.append("操作记录:").append("<br>该委托案件的案件简要由 [").append(oldCaseInfo.getCaseBrief()).append("] 更改为 [").append(dto.getCaseBrief()).append("] 。"); |
|
|
|
|
// 2.修改检材 信息
|
|
|
|
|
// 这里之所以要取未更新前的信息是为了留痕
|
|
|
|
|
Map<String, EntrustmentIdentificationMaterial> oldInfoMap = entrustmentIdentificationMaterialService.list(Wrappers.<EntrustmentIdentificationMaterial>lambdaQuery() |
|
|
|
@ -236,10 +236,10 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
if (index == 1) { |
|
|
|
|
updateRecordBuilder.append("-检材信息的更新记录:"); |
|
|
|
|
updateRecordBuilder.append("<br>检材信息的更新记录:"); |
|
|
|
|
} |
|
|
|
|
updateRecordBuilder |
|
|
|
|
.append("-") |
|
|
|
|
.append("<br>") |
|
|
|
|
.append(index++) |
|
|
|
|
.append(".原检材编号为 [") |
|
|
|
|
.append(oldMaterial.getImNo()) |
|
|
|
@ -352,7 +352,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM |
|
|
|
|
throw new ValidateCodeException("申请记录不存在!"); |
|
|
|
|
} |
|
|
|
|
DLPUser user = SecurityUtils.getUser(); |
|
|
|
|
if (entrustAlterApply.getApplicant().equals(user.getId())) { |
|
|
|
|
if (!entrustAlterApply.getApplicant().equals(user.getId())) { |
|
|
|
|
throw new ValidateCodeException("请勿修改其他人的申请信息!"); |
|
|
|
|
} |
|
|
|
|
if (!entrustAlterApply.getStatus().equals(EntrustAlterApplyStatus.APPLY_SUCCESS.getStatus())) { |
|
|
|
|