瀏覽代碼

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

wangqiong123 2 年之前
父節點
當前提交
54dea94f6a

+ 4
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java 查看文件

@@ -1043,6 +1043,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1043 1043
             // 申请人预约,需要查询被申请人是否预约,identity_type不为空
1044 1044
             criteria.andEqualTo("type", MediatorTypeEnum.MI_NI_PROGRESS.getCode());
1045 1045
         }else {
1046
+            // todo PC端被申请人选择调解员时,未存到预约表,导致节点状态未改变
1046 1047
             // 被申请人预约,需要查询申请人是否预约,identity_type为空
1047 1048
             criteria.andEqualTo("type", MediatorTypeEnum.PC.getCode());
1048 1049
         }
@@ -1280,6 +1281,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
1280 1281
                     req.setTemplateType(TemplateTypeEnum.MEDIATE_BOOK.getCode());
1281 1282
                     AjaxResult result = generateApplication(req);
1282 1283
                     if (result != null && result.isSuccess()) {
1284
+                        // todo 生成完调解书需要记录日志
1283 1285
                         List<MsCaseAttach> caseAttachList = msCaseAttachMapper.queryAnnexPathByCaseId(req.getId());
1284 1286
                         if (caseAttachList != null && caseAttachList.size() > 0) {
1285 1287
                             for (MsCaseAttach caseAttach : caseAttachList) {
@@ -2525,7 +2527,7 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2525 2527
         String saveFolderPath = RuoYiConfig.getUploadPath()+"/"+ year + "/" + month + "/" + day;
2526 2528
         Integer annexType = AnnexTypeEnum.MEDIATION_APPLICATION.getCode();
2527 2529
         String orgFileName = "调解申请书";
2528
-        if(templateType!=null&&templateType==1) {
2530
+        if(templateType!=null&&templateType==3) {
2529 2531
             orgFileName = "调解书";
2530 2532
             annexType=AnnexTypeEnum.MEDIATE_BOOK.getCode();
2531 2533
         }
@@ -2542,15 +2544,10 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
2542 2544
                 .build();
2543 2545
         //保存到附件表里,先删除之前的在保存
2544 2546
         msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseAttach.getCaseAppliId(), AnnexTypeEnum.MEDIATION_APPLICATION.getCode());
2545
-        if (templateType!=null&&templateType==1) {
2547
+        if (templateType!=null&&templateType==3) {
2546 2548
             msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseAttach.getCaseAppliId(), AnnexTypeEnum.MEDIATE_BOOK.getCode());
2547 2549
         }
2548 2550
         msCaseAttachMapper.save(caseAttach);
2549
-        // 生成调解书成功,需要更新流程节点
2550
-        //if (templateType!=null&&templateType==1) {
2551
-        //    caseApplicationService.nextFlow(application.getId(), application.getCaseFlowId(), application.getLockStatus());
2552
-            // todo 发送短信
2553
-        //}
2554 2551
     }
2555 2552
 
2556 2553
     /**

+ 4
- 5
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsSignSealServiceImpl.java 查看文件

@@ -27,7 +27,6 @@ import com.ruoyi.common.utils.file.SaaSAPIFileUtils;
27 27
 import com.ruoyi.system.domain.entity.flow.MsCaseFlow;
28 28
 import com.ruoyi.system.mapper.SysUserMapper;
29 29
 import com.ruoyi.system.mapper.flow.MsCaseFlowMapper;
30
-import com.ruoyi.system.service.ISysUserService;
31 30
 import com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify;
32 31
 import com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage;
33 32
 import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
@@ -652,13 +651,13 @@ public class MsSignSealServiceImpl implements MsSignSealService {
652 651
 //                }
653 652
 //                sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
654 653
                 if(!appEmailFlag&&!resEmailFlag){
655
-                    throw new ServiceException("裁决书发送失败");
654
+                    throw new ServiceException("调解书发送失败");
656 655
                 }
657 656
                 if(!appEmailFlag){
658
-                    throw new ServiceException("申请人裁决书发送失败");
657
+                    throw new ServiceException("申请人调解书发送失败");
659 658
                 }
660 659
                 if(!resEmailFlag){
661
-                    throw new ServiceException("被申请人裁决书发送失败");
660
+                    throw new ServiceException("被申请人调解书送失败");
662 661
                 }
663 662
 
664 663
                 CaseLogUtils.insertCaseLog(caseApplication1.getId(), nextFlow.getNodeId(), nextFlow.getCaseStatusName(),"归档");
@@ -926,7 +925,7 @@ public class MsSignSealServiceImpl implements MsSignSealService {
926 925
 
927 926
         if (file != null && file.exists()) {
928 927
             try {
929
-                Boolean aBoolean = emailOutUtil.sendEmil(email, "您好,审核后的裁决书在附件中请查阅", "签署后的裁决书", fileList, null);
928
+                Boolean aBoolean = emailOutUtil.sendEmil(email, "您好,审核后的裁决书在附件中请查阅", "签署后的调解书", fileList, null);
930 929
 
931 930
                 if (aBoolean) {
932 931
                     return Boolean.TRUE;

+ 1
- 1
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/template/TemplateManageMapper.xml 查看文件

@@ -138,7 +138,7 @@
138 138
 
139 139
     <select id="selectByIdAndType" resultMap="TemplateManageResult">
140 140
         select f.* from ms_template_manage m join ms_template_manage_file f on m.id=f.template_manage_id
141
-        where f.template_manage_id=#{templateId} and f.tem_type=#{type} oeder by f.file_id desc limit 1
141
+        where f.template_manage_id=#{templateId} and f.tem_type=#{type} order by f.file_id desc limit 1
142 142
     </select>
143 143
 
144 144
     <select id="selectFileById" resultMap="TemplateManageResult">