Просмотр исходного кода

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

wangqiong123 2 лет назад
Родитель
Сommit
54dea94f6a

+ 4
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/mscase/impl/MsCaseApplicationServiceImpl.java Просмотреть файл

1043
             // 申请人预约,需要查询被申请人是否预约,identity_type不为空
1043
             // 申请人预约,需要查询被申请人是否预约,identity_type不为空
1044
             criteria.andEqualTo("type", MediatorTypeEnum.MI_NI_PROGRESS.getCode());
1044
             criteria.andEqualTo("type", MediatorTypeEnum.MI_NI_PROGRESS.getCode());
1045
         }else {
1045
         }else {
1046
+            // todo PC端被申请人选择调解员时,未存到预约表,导致节点状态未改变
1046
             // 被申请人预约,需要查询申请人是否预约,identity_type为空
1047
             // 被申请人预约,需要查询申请人是否预约,identity_type为空
1047
             criteria.andEqualTo("type", MediatorTypeEnum.PC.getCode());
1048
             criteria.andEqualTo("type", MediatorTypeEnum.PC.getCode());
1048
         }
1049
         }
1280
                     req.setTemplateType(TemplateTypeEnum.MEDIATE_BOOK.getCode());
1281
                     req.setTemplateType(TemplateTypeEnum.MEDIATE_BOOK.getCode());
1281
                     AjaxResult result = generateApplication(req);
1282
                     AjaxResult result = generateApplication(req);
1282
                     if (result != null && result.isSuccess()) {
1283
                     if (result != null && result.isSuccess()) {
1284
+                        // todo 生成完调解书需要记录日志
1283
                         List<MsCaseAttach> caseAttachList = msCaseAttachMapper.queryAnnexPathByCaseId(req.getId());
1285
                         List<MsCaseAttach> caseAttachList = msCaseAttachMapper.queryAnnexPathByCaseId(req.getId());
1284
                         if (caseAttachList != null && caseAttachList.size() > 0) {
1286
                         if (caseAttachList != null && caseAttachList.size() > 0) {
1285
                             for (MsCaseAttach caseAttach : caseAttachList) {
1287
                             for (MsCaseAttach caseAttach : caseAttachList) {
2525
         String saveFolderPath = RuoYiConfig.getUploadPath()+"/"+ year + "/" + month + "/" + day;
2527
         String saveFolderPath = RuoYiConfig.getUploadPath()+"/"+ year + "/" + month + "/" + day;
2526
         Integer annexType = AnnexTypeEnum.MEDIATION_APPLICATION.getCode();
2528
         Integer annexType = AnnexTypeEnum.MEDIATION_APPLICATION.getCode();
2527
         String orgFileName = "调解申请书";
2529
         String orgFileName = "调解申请书";
2528
-        if(templateType!=null&&templateType==1) {
2530
+        if(templateType!=null&&templateType==3) {
2529
             orgFileName = "调解书";
2531
             orgFileName = "调解书";
2530
             annexType=AnnexTypeEnum.MEDIATE_BOOK.getCode();
2532
             annexType=AnnexTypeEnum.MEDIATE_BOOK.getCode();
2531
         }
2533
         }
2542
                 .build();
2544
                 .build();
2543
         //保存到附件表里,先删除之前的在保存
2545
         //保存到附件表里,先删除之前的在保存
2544
         msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseAttach.getCaseAppliId(), AnnexTypeEnum.MEDIATION_APPLICATION.getCode());
2546
         msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseAttach.getCaseAppliId(), AnnexTypeEnum.MEDIATION_APPLICATION.getCode());
2545
-        if (templateType!=null&&templateType==1) {
2547
+        if (templateType!=null&&templateType==3) {
2546
             msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseAttach.getCaseAppliId(), AnnexTypeEnum.MEDIATE_BOOK.getCode());
2548
             msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(caseAttach.getCaseAppliId(), AnnexTypeEnum.MEDIATE_BOOK.getCode());
2547
         }
2549
         }
2548
         msCaseAttachMapper.save(caseAttach);
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
 import com.ruoyi.system.domain.entity.flow.MsCaseFlow;
27
 import com.ruoyi.system.domain.entity.flow.MsCaseFlow;
28
 import com.ruoyi.system.mapper.SysUserMapper;
28
 import com.ruoyi.system.mapper.SysUserMapper;
29
 import com.ruoyi.system.mapper.flow.MsCaseFlowMapper;
29
 import com.ruoyi.system.mapper.flow.MsCaseFlowMapper;
30
-import com.ruoyi.system.service.ISysUserService;
31
 import com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify;
30
 import com.ruoyi.wisdomarbitrate.domain.dto.dept.DeptIdentify;
32
 import com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage;
31
 import com.ruoyi.wisdomarbitrate.domain.dto.dept.SealManage;
33
 import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
32
 import com.ruoyi.wisdomarbitrate.domain.dto.mscase.CaseLogRecord;
652
 //                }
651
 //                }
653
 //                sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
652
 //                sendMailRecordMapper.saveSendMailRecord(sendMailRecord1);
654
                 if(!appEmailFlag&&!resEmailFlag){
653
                 if(!appEmailFlag&&!resEmailFlag){
655
-                    throw new ServiceException("裁决书发送失败");
654
+                    throw new ServiceException("调解书发送失败");
656
                 }
655
                 }
657
                 if(!appEmailFlag){
656
                 if(!appEmailFlag){
658
-                    throw new ServiceException("申请人裁决书发送失败");
657
+                    throw new ServiceException("申请人调解书发送失败");
659
                 }
658
                 }
660
                 if(!resEmailFlag){
659
                 if(!resEmailFlag){
661
-                    throw new ServiceException("被申请人裁决书发送失败");
660
+                    throw new ServiceException("被申请人调解书送失败");
662
                 }
661
                 }
663
 
662
 
664
                 CaseLogUtils.insertCaseLog(caseApplication1.getId(), nextFlow.getNodeId(), nextFlow.getCaseStatusName(),"归档");
663
                 CaseLogUtils.insertCaseLog(caseApplication1.getId(), nextFlow.getNodeId(), nextFlow.getCaseStatusName(),"归档");
926
 
925
 
927
         if (file != null && file.exists()) {
926
         if (file != null && file.exists()) {
928
             try {
927
             try {
929
-                Boolean aBoolean = emailOutUtil.sendEmil(email, "您好,审核后的裁决书在附件中请查阅", "签署后的裁决书", fileList, null);
928
+                Boolean aBoolean = emailOutUtil.sendEmil(email, "您好,审核后的裁决书在附件中请查阅", "签署后的调解书", fileList, null);
930
 
929
 
931
                 if (aBoolean) {
930
                 if (aBoolean) {
932
                     return Boolean.TRUE;
931
                     return Boolean.TRUE;

+ 1
- 1
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/template/TemplateManageMapper.xml Просмотреть файл

138
 
138
 
139
     <select id="selectByIdAndType" resultMap="TemplateManageResult">
139
     <select id="selectByIdAndType" resultMap="TemplateManageResult">
140
         select f.* from ms_template_manage m join ms_template_manage_file f on m.id=f.template_manage_id
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
     </select>
142
     </select>
143
 
143
 
144
     <select id="selectFileById" resultMap="TemplateManageResult">
144
     <select id="selectFileById" resultMap="TemplateManageResult">