bug修复

This commit is contained in:
18792927508
2024-02-18 09:31:50 +08:00
parent 3add880d2f
commit 11d33b80af
2 changed files with 8 additions and 10 deletions
@@ -425,18 +425,18 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
@Override
public AjaxResult updateTemplate(TemplateManage templateManage) {
Long id = templateManage.getId();
templateManage.setUpdateBy(getUsername());
int i = templateManageMapper.updateTemplateManage(templateManage);
// 先删除附件
if(CollectionUtil.isNotEmpty(templateManage.getAnnexIds())) {
templateManage.setUpdateBy(getUsername());
int i = templateManageMapper.updateTemplateManage(templateManage);
// 先删除附件
if (CollectionUtil.isNotEmpty(templateManage.getAnnexIds())) {
templateManageMapper.deleteTemplateManageFileById(id, templateManage.getAnnexIds());
// 修改附件表
templateManageMapper.updateFileByIds(templateManage);
}
if (i > 0) {
return AjaxResult.success("修改成功");
}
if (i > 0) {
return AjaxResult.success("修改成功");
}
return AjaxResult.error();
}
@@ -308,9 +308,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
req.setTemplateType(TemplateTypeEnum.MEDIATION_APPLICATION.getCode());
// todo 部署放开
caseApplicationService.generateApplication(req);
// 保存案件附件
if (CollectionUtil.isNotEmpty(caseAttachList)) {
for (MsCaseAttach caseAttach : caseAttachList) {
caseAttach.setCaseAppliId(caseApplication.getId());
@@ -1015,7 +1013,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
// 被申请人预约
// 新增日志
CaseLogUtils.insertCaseLog(vo.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "被申请人选择调解员");
if (StrUtil.isEmpty(msCaseAffiliate.getContactTelphoneAgent())) {
if (StrUtil.isEmpty(msCaseAffiliate.getContactTelphoneAgent())|| StrUtil.isEmpty(msCaseAffiliate.getApplicationPhone())) {
return AjaxResult.error("申请代理人手机号为空");
}
// 判断申请人是否预约