Procházet zdrojové kódy

Merge branch 'wq1' of SH-Arbitrate/Mediation-Backend into dev

wangqiong123 před 2 roky
rodič
revize
584ddbe43d

+ 7
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/dept/impl/DeptIdentifyServiceImpl.java Zobrazit soubor

@@ -425,18 +425,18 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
425 425
     @Override
426 426
     public AjaxResult updateTemplate(TemplateManage templateManage) {
427 427
         Long id = templateManage.getId();
428
-            templateManage.setUpdateBy(getUsername());
429
-            int i = templateManageMapper.updateTemplateManage(templateManage);
430
-            // 先删除附件
431
-        if(CollectionUtil.isNotEmpty(templateManage.getAnnexIds())) {
428
+        templateManage.setUpdateBy(getUsername());
429
+        int i = templateManageMapper.updateTemplateManage(templateManage);
430
+        // 先删除附件
431
+        if (CollectionUtil.isNotEmpty(templateManage.getAnnexIds())) {
432 432
             templateManageMapper.deleteTemplateManageFileById(id, templateManage.getAnnexIds());
433 433
             // 修改附件表
434 434
             templateManageMapper.updateFileByIds(templateManage);
435 435
         }
436 436
 
437
-            if (i > 0) {
438
-                return AjaxResult.success("修改成功");
439
-            }
437
+        if (i > 0) {
438
+            return AjaxResult.success("修改成功");
439
+        }
440 440
 
441 441
         return AjaxResult.error();
442 442
     }

+ 1
- 3
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java Zobrazit soubor

@@ -308,9 +308,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
308 308
                        req.setTemplateType(TemplateTypeEnum.MEDIATION_APPLICATION.getCode());
309 309
                     // todo 部署放开
310 310
                     caseApplicationService.generateApplication(req);
311
-
312 311
             // 保存案件附件
313
-
314 312
             if (CollectionUtil.isNotEmpty(caseAttachList)) {
315 313
                 for (MsCaseAttach caseAttach : caseAttachList) {
316 314
                     caseAttach.setCaseAppliId(caseApplication.getId());
@@ -1015,7 +1013,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1015 1013
             // 被申请人预约
1016 1014
             // 新增日志
1017 1015
             CaseLogUtils.insertCaseLog(vo.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(), "被申请人选择调解员");
1018
-            if (StrUtil.isEmpty(msCaseAffiliate.getContactTelphoneAgent())) {
1016
+            if (StrUtil.isEmpty(msCaseAffiliate.getContactTelphoneAgent())|| StrUtil.isEmpty(msCaseAffiliate.getApplicationPhone())) {
1019 1017
                 return AjaxResult.error("申请代理人手机号为空");
1020 1018
             }
1021 1019
             // 判断申请人是否预约