hejinbo пре 2 година
родитељ
комит
a23b662332

+ 23
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/AdjudicationController.java Прегледај датотеку

@@ -0,0 +1,23 @@
1
+package com.ruoyi.web.controller.wisdomarbitrate;
2
+
3
+import com.ruoyi.common.core.controller.BaseController;
4
+import com.ruoyi.common.core.domain.AjaxResult;
5
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
+import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.validation.annotation.Validated;
9
+import org.springframework.web.bind.annotation.PostMapping;
10
+import org.springframework.web.bind.annotation.RequestBody;
11
+import org.springframework.web.bind.annotation.RequestMapping;
12
+import org.springframework.web.bind.annotation.RestController;
13
+
14
+@RestController
15
+@RequestMapping("/adjudication")
16
+public class AdjudicationController extends BaseController {
17
+    @Autowired
18
+    private IAdjudicationService adjudicationService;
19
+    @PostMapping("/document")
20
+    public AjaxResult createDocument(@Validated @RequestBody CaseApplication caseApplication){
21
+        return adjudicationService.createDocument(caseApplication);
22
+    }
23
+}

+ 6
- 8
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseArbitrateController.java Прегледај датотеку

@@ -16,22 +16,20 @@ public class CaseArbitrateController extends BaseController {
16 16
     private ICaseArbitrateService caseArbitrateService;
17 17
 
18 18
     /**
19
-     * 确定仲裁方式
19
+     * 审核仲裁方式
20 20
      * @param caseApplication
21
-     * @param arbitratMethod
21
+     * @param opinion   1同意,0拒绝
22 22
      * @return
23 23
      */
24 24
     @PutMapping("/method")
25
-    public AjaxResult chooseArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
26
-            ,Integer arbitratMethod){
27
-        return caseArbitrateService.chooseArbitrateMethod(caseApplication,arbitratMethod);
25
+    public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
26
+            ,Integer opinion){
27
+        return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion);
28 28
     }
29 29
 
30 30
     /**
31 31
      * 书面审理
32
-     * @param caseApplication
33
-     * @param accidentDescription
34
-     * @param arbitrationResult
32
+     * @param arbitrateRecord
35 33
      * @return
36 34
      */
37 35
     @PostMapping("/writtenHear")

+ 5
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseEvidenceController.java Прегледај датотеку

@@ -80,7 +80,11 @@ public class CaseEvidenceController extends BaseController {
80 80
         return caseEvidenceService.evidenceConfirmation(caseApplication);
81 81
     }
82 82
 
83
-
83
+    /**
84
+     * 案件质证
85
+     * @param caseEvidenceDTO
86
+     * @return
87
+     */
84 88
     @PostMapping("/crossexami")
85 89
     public AjaxResult caseCrossexamination(@Validated @RequestBody CaseEvidenceDTO caseEvidenceDTO){
86 90
         return caseEvidenceService.caseCrossexamination(caseEvidenceDTO);

+ 6
- 0
ruoyi-common/pom.xml Прегледај датотеку

@@ -145,6 +145,12 @@
145 145
             <version>3.1.701</version>
146 146
         </dependency>
147 147
 
148
+        <!-- poi-tl-->
149
+        <dependency>
150
+            <groupId>com.deepoove</groupId>
151
+            <artifactId>poi-tl</artifactId>
152
+            <version>1.9.1</version>
153
+        </dependency>
148 154
 
149 155
     </dependencies>
150 156
 

+ 157
- 0
ruoyi-common/src/main/java/com/ruoyi/common/utils/WordUtil.java Прегледај датотеку

@@ -0,0 +1,157 @@
1
+package com.ruoyi.common.utils;
2
+
3
+
4
+import com.deepoove.poi.XWPFTemplate;
5
+import com.deepoove.poi.config.Configure;
6
+import com.deepoove.poi.data.*;
7
+import com.deepoove.poi.data.style.ParagraphStyle;
8
+import com.deepoove.poi.data.style.Style;
9
+import com.deepoove.poi.util.PoitlIOUtils;
10
+import org.apache.poi.xwpf.usermodel.ParagraphAlignment;
11
+
12
+import javax.servlet.http.HttpServletResponse;
13
+import java.io.BufferedOutputStream;
14
+import java.io.FileOutputStream;
15
+import java.io.IOException;
16
+import java.io.OutputStream;
17
+import java.util.ArrayList;
18
+import java.util.List;
19
+import java.util.Map;
20
+
21
+/**
22
+ * @Author: ymbgy
23
+ * @Date: 2022-09-21 13:26
24
+ */
25
+public class WordUtil {
26
+
27
+    private CellRenderData cell;
28
+
29
+    /**
30
+     * 查询生成的word文件流
31
+     *
32
+     * @param response
33
+     * @param datas
34
+     * @param modalFilePath
35
+     * @param resultFilePath
36
+     * @throws IOException
37
+     */
38
+    public static void getDocStreamFile(HttpServletResponse response, Map<String, Object> datas, String modalFilePath, String resultFilePath, String fileName) throws IOException {
39
+        //获取word模板和填充数据
40
+        XWPFTemplate template = XWPFTemplate.compile(modalFilePath).render(datas);
41
+        //设置返回类型及文件名
42
+        response.setContentType("application/octet-stream");
43
+        response.setHeader("Content-disposition", "attachment;filename=\"" + fileName + "\"");
44
+        //获取返回输出流
45
+        OutputStream out = response.getOutputStream();
46
+        BufferedOutputStream bos = new BufferedOutputStream(out);
47
+        template.write(bos);
48
+        bos.flush();
49
+        out.flush();
50
+        PoitlIOUtils.closeQuietlyMulti(template, bos, out);
51
+    }
52
+
53
+    /**
54
+     * 查询生成的word文件路径
55
+     *
56
+     * @param datas
57
+     * @param modalFilePath
58
+     * @param resultFilePath
59
+     * @return
60
+     * @throws IOException
61
+     */
62
+    public static String getDocFilePath(Map<String, Object> datas, String modalFilePath, String resultFilePath) throws IOException {
63
+        //获取word模板和填充数据
64
+        XWPFTemplate template = XWPFTemplate.compile(modalFilePath).render(datas);
65
+        template.writeAndClose(new FileOutputStream(resultFilePath));
66
+        return resultFilePath;
67
+    }
68
+
69
+    /**
70
+     * 构造绘制表格的方法
71
+     */
72
+    public static TableRenderData rebuildWordTableData(List<String> headerList, String headerBackgroundColor, String textColor, List<List<String>> tableContentList) {
73
+        RowRenderData header = rebuildWordTableHead(headerList, headerBackgroundColor, textColor);
74
+        List<RowRenderData> content = rebuildWordTableContent(tableContentList);
75
+        TableRenderData tableRenderData = Tables.create().addRow(header);
76
+        for (int i = 0; content != null && i < content.size(); i++) {
77
+            tableRenderData.addRow(content.get(i));
78
+        }
79
+        return tableRenderData;
80
+    }
81
+
82
+    /**
83
+     * 构造表格表头
84
+     *
85
+     * @return
86
+     */
87
+    public static RowRenderData rebuildWordTableHead(List<String> headerList, String headerBackgroundColor, String textColor) {
88
+        RowRenderData header = new RowRenderData();
89
+        for (int i = 0; headerList != null && i < headerList.size(); i++) {
90
+            CellRenderData cellRenderData = new CellRenderData();
91
+            ParagraphRenderData paragraphRenderData = new ParagraphRenderData();
92
+            Style style = new Style();
93
+            style.setColor(textColor);
94
+            style.setFontSize(12.0);
95
+            ParagraphStyle paragraphStyle = ParagraphStyle.builder()
96
+                    .withAlign(ParagraphAlignment.CENTER)
97
+                  //  .withBackgroundColor(headerBackgroundColor)
98
+                    .withDefaultTextStyle(style)
99
+                    .build();
100
+            paragraphRenderData.addText(headerList.get(i));
101
+            paragraphRenderData.setParagraphStyle(paragraphStyle);
102
+            cellRenderData.addParagraph(paragraphRenderData);
103
+            header.addCell(cellRenderData);
104
+        }
105
+        return header;
106
+    }
107
+
108
+    /**
109
+     * 构造表格内容
110
+     *
111
+     * @return
112
+     */
113
+    public static List<RowRenderData> rebuildWordTableContent(List<List<String>> tableContentList) {
114
+        List<RowRenderData> rowContentList = new ArrayList<>();
115
+        for (int i = 0; tableContentList != null && i < tableContentList.size(); i++) {
116
+            List<String> rowdataList = tableContentList.get(i);
117
+            RowRenderData rowcontent = new RowRenderData();
118
+            for (int j = 0; rowdataList != null && j < rowdataList.size(); j++) {
119
+                CellRenderData cellRenderData = new CellRenderData();
120
+                ParagraphRenderData paragraphRenderData = new ParagraphRenderData();
121
+                Style style = new Style();
122
+                style.setFontSize(12.0);
123
+                ParagraphStyle paragraphStyle = ParagraphStyle.builder()
124
+                        .withAlign(ParagraphAlignment.CENTER)
125
+                        .withDefaultTextStyle(style)
126
+                        .build();
127
+                paragraphRenderData.addText(rowdataList.get(j));
128
+                paragraphRenderData.setParagraphStyle(paragraphStyle);
129
+                cellRenderData.addParagraph(paragraphRenderData);
130
+                rowcontent.addCell(cellRenderData);
131
+            }
132
+            rowContentList.add(rowcontent);
133
+        }
134
+        return rowContentList;
135
+    }
136
+
137
+    /**
138
+     * 构建图片内容
139
+     */
140
+    public static PictureRenderData rebuildImageContent(Integer with, Integer height, String imageUrl, String relatedPath, Byte[] imageBytes) {
141
+        PictureRenderData pictureRenderData = null;
142
+        if (!StringUtils.isBlank(imageUrl)) {
143
+           // pictureRenderData = Pictures.of(imageUrl).size(with, height).create();
144
+            //Pictures.PictureBuilder pictureBuilder = Pictures.of("https://res.wx.qq.com/a/wx_fed/weixin_portal/res/static/img/1EtCRvm.png");
145
+        }else  if (!StringUtils.isBlank(relatedPath)) {
146
+            pictureRenderData = Pictures.ofLocal(relatedPath).size(with,height).create();
147
+//            Pictures.PictureBuilder pictureBuilder = Pictures.of("https://res.wx.qq.com/a/wx_fed/weixin_portal/res/static/img/1EtCRvm.png");
148
+        }
149
+        return pictureRenderData;
150
+    }
151
+    public static String getResultFilePath(Map<String, Object> datas, Configure config, String modalFilePath, String resultFilePath) throws IOException {
152
+        //获取word模板和填充数据
153
+        XWPFTemplate template = XWPFTemplate.compile(modalFilePath,config).render(datas);
154
+        template.writeAndClose(new FileOutputStream(resultFilePath));
155
+        return resultFilePath;
156
+    }
157
+}

+ 165
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/Adjudication.java Прегледај датотеку

@@ -0,0 +1,165 @@
1
+package com.ruoyi.wisdomarbitrate.domain;
2
+
3
+import lombok.Data;
4
+
5
+@Data
6
+public class Adjudication {
7
+    /**
8
+     * 申请人姓名
9
+     */
10
+    private String applicantName;
11
+    /**
12
+     * 申请人性别
13
+     */
14
+    private String applicantSex;
15
+    /**
16
+     * 申请人身份证号码
17
+     */
18
+    private String applicantIDNo;
19
+    /**
20
+     * 申请人住所
21
+     */
22
+    private String appAddress;
23
+    /**
24
+     * 申请人邮编
25
+     */
26
+    private String appZipCode;
27
+    /**
28
+     * 申请人组织名称
29
+     */
30
+    private String appOrgName;
31
+    /**
32
+     * 申请人组织地址
33
+     */
34
+    private String appOrgAddress;
35
+    /**
36
+     * 申请人法人姓名
37
+     */
38
+    private String appLegalPerName;
39
+    /**
40
+     * 申请人法人职务
41
+     */
42
+    private String appLegalPerJob;
43
+    /**
44
+     * 申请人代理人姓名
45
+     */
46
+    private String appAgentName;
47
+    /**
48
+     * 申请人代理人性别
49
+     */
50
+    private String appAgentSex;
51
+    /**
52
+     * 被申请人姓名
53
+     */
54
+    private String resName;
55
+    /**
56
+     * 被申请人性别
57
+     */
58
+    private String resSex;
59
+    /**
60
+     * 被申请人身份证号码
61
+     */
62
+    private String resIDNo;
63
+    /**
64
+     * 被申请人住所
65
+     */
66
+    private String resAddress;
67
+    /**
68
+     * 被申请人邮编
69
+     */
70
+    private String resZipCode;
71
+    /**
72
+     * 被申请人组织名称
73
+     */
74
+    private String resOrgName;
75
+    /**
76
+     * 被申请人组织地址
77
+     */
78
+    private String resOrgAddress;
79
+    /**
80
+     * 被申请人法人姓名
81
+     */
82
+    private String resLegalPerName;
83
+    /**
84
+     * 被申请人法人职务
85
+     */
86
+    private String resLegalPerJob;
87
+    /**
88
+     * 被申请人代理人姓名
89
+     */
90
+    private String resAgentName;
91
+    /**
92
+     * 被申请人代理人性别
93
+     */
94
+    private String resAgentSex;
95
+    /**
96
+     * 第三人姓名
97
+     */
98
+    private String thirdName;
99
+    /**
100
+     * 第三人性别
101
+     */
102
+    private String thirdSex;
103
+
104
+    /**
105
+     * 第三人身份证
106
+     */
107
+    private String thirdDNo;
108
+    /**
109
+     * 第三人住所
110
+     */
111
+    private String thirdAddress;
112
+    /**
113
+     * 第三人邮编
114
+     */
115
+    private String thirdZipCode;
116
+    /**
117
+     * 第三人组织名称
118
+     */
119
+    private String thirdOrgName;
120
+    /**
121
+     * 第三人组织地址
122
+     */
123
+    private String thirdOrgAddress;
124
+    /**
125
+     * 第三人法人姓名
126
+     */
127
+    private String thirdLegalPerName;
128
+    /**
129
+     * 第三人法人职务
130
+     */
131
+    private String thirdLegalPerJob;
132
+    /**
133
+     * 第三人代理人姓名
134
+     */
135
+    private String thirdAgentName;
136
+    /**
137
+     * 第三人代理人性别
138
+     */
139
+    private String thirdAgentSex;
140
+    /**
141
+     * 案件描述
142
+     */
143
+    private String caseDescribe;
144
+
145
+    /**
146
+     * 仲裁员名称
147
+     */
148
+    private String arbitratorName;
149
+    /**
150
+     * 开庭年
151
+     */
152
+    private String hearYear;
153
+    /**
154
+     * 开庭月
155
+     */
156
+    private String hearMonths;
157
+    /**
158
+     * 开庭日
159
+     */
160
+    private String hearDay;
161
+
162
+
163
+
164
+
165
+}

+ 8
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/IAdjudicationService.java Прегледај датотеку

@@ -0,0 +1,8 @@
1
+package com.ruoyi.wisdomarbitrate.service;
2
+
3
+import com.ruoyi.common.core.domain.AjaxResult;
4
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
+
6
+public interface IAdjudicationService {
7
+    AjaxResult createDocument(CaseApplication caseApplication);
8
+}

+ 3
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseArbitrateService.java Прегледај датотеку

@@ -5,7 +5,9 @@ import com.ruoyi.wisdomarbitrate.domain.ArbitrateRecord;
5 5
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6 6
 
7 7
 public interface ICaseArbitrateService {
8
-    AjaxResult chooseArbitrateMethod(CaseApplication caseApplication,Integer arbitratMethod);
8
+
9 9
 
10 10
     AjaxResult writtenHear(ArbitrateRecord arbitrateRecord);
11
+
12
+    AjaxResult examineArbitrateMethod(CaseApplication caseApplication, Integer opinion);
11 13
 }

+ 46
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java Прегледај датотеку

@@ -0,0 +1,46 @@
1
+package com.ruoyi.wisdomarbitrate.service.impl;
2
+
3
+import com.deepoove.poi.config.Configure;
4
+import com.ruoyi.common.core.domain.AjaxResult;
5
+import com.ruoyi.common.utils.WordUtil;
6
+import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
7
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
8
+import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper;
9
+import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
10
+import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
11
+import org.apache.poi.xwpf.usermodel.*;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.stereotype.Service;
14
+
15
+import java.io.FileInputStream;
16
+import java.io.FileOutputStream;
17
+import java.io.IOException;
18
+import java.io.InputStream;
19
+import java.util.HashMap;
20
+import java.util.Map;
21
+import java.util.UUID;
22
+
23
+@Service
24
+public class AdjudicationServiceImpl implements IAdjudicationService {
25
+    @Autowired
26
+    private CaseApplicationMapper caseApplicationMapper;
27
+    @Autowired
28
+    private CaseAffiliateMapper caseAffiliateMapper;
29
+    @Override
30
+    public AjaxResult createDocument(CaseApplication caseApplication) {
31
+        CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
32
+
33
+        try {
34
+            Map<String, Object> datas = new HashMap<>();
35
+            datas.put("1", "张三");
36
+            String modalFilePath = "D:/develop/ceshi.docx";
37
+            String fileName = UUID.randomUUID().toString().replace("-", "") + ".docx";
38
+            String resultFilePath = "D:/data/" + fileName;
39
+            String docFilePath = WordUtil.getDocFilePath(datas, modalFilePath, resultFilePath);
40
+            return AjaxResult.success("裁决书保存路径为"+docFilePath);
41
+        } catch (IOException e) {
42
+            e.printStackTrace();
43
+        }
44
+        return null;
45
+    }
46
+}

+ 49
- 41
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseArbitrateServiceImpl.java Прегледај датотеку

@@ -31,52 +31,60 @@ public class CaseArbitrateServiceImpl implements ICaseArbitrateService {
31 31
 
32 32
     @Override
33 33
     @Transactional
34
-    public AjaxResult chooseArbitrateMethod(CaseApplication caseApplication, Integer arbitratMethod) {
35
-        if (arbitratMethod != null) {
36
-            String arbitratMethodStr = arbitratMethod == 1 ? "开庭审理" : "书面审理";
37
-            //查询案件详细信息
38
-            CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
39
-            if (caseApplication1 == null) {
40
-                return AjaxResult.error();
34
+    public AjaxResult examineArbitrateMethod(CaseApplication caseApplication, Integer opinion) {
35
+        //查询案件详细信息
36
+        CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
37
+        if (caseApplication1 == null) {
38
+            return AjaxResult.error();
39
+        }
40
+        int arbitratMethod = caseApplication1.getArbitratMethod();
41
+        String caseNum = caseApplication1.getCaseNum();
42
+        if (opinion==0){   //拒绝
43
+            switch (arbitratMethod) {
44
+                case 1:
45
+                    caseApplication1.setArbitratMethod(2);  // 更改仲裁方式
46
+                    break;
47
+                case 2:
48
+                    caseApplication1.setArbitratMethod(1);
49
+                    break;
50
+                default:
51
+                    return AjaxResult.error();
41 52
             }
42
-            String caseNum = caseApplication1.getCaseNum();
43
-            //选择仲裁方式
44
-            caseApplication.setArbitratMethod(arbitratMethod);
45
-            //修改案件状态为待开庭
46
-            caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR);
47
-            int i = caseApplicationMapper.submitCaseApplication(caseApplication);
48
-            if (i > 0) {
49
-                //发送短信通知
50
-                SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
51
-                request.setTemplateId("1931000");
52
-                CaseAffiliate caseAffiliate = new CaseAffiliate();
53
-                caseAffiliate.setCaseAppliId(caseApplication1.getId());
54
-                List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);            //获取案件关联人信息
55
-                if (caseAffiliates != null && caseAffiliates.size() > 0) {
56
-                    for (CaseAffiliate affiliate : caseAffiliates) {
57
-                        //获取身份类型
58
-                        int identityType = affiliate.getIdentityType();
59
-                        if (identityType == 1) {    //申请人
60
-                            request.setPhone(affiliate.getContactTelphone());
61
-                            // 这个值,要看你的模板中是否预留了占位符,如果没有则不需要设置
62
-                            // 1931000 普通短信 确定仲裁方式通知 尊敬的{1}用户,您的{2}仲裁案件,仲裁方式已确定为{3},请知晓,如非本人操作,请忽略本短信。
63
-                            String name = affiliate.getName();
64
-                            request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
65
-                            SmsUtils.sendSms(request);
66
-                        } else {       //被申请人
67
-                            request.setPhone(affiliate.getContactTelphone());
68
-                            // 模板id1928006 普通短信 案件应诉通知 尊敬的{1}用户,您的{2}案件{3}已成功受理,请点击https://phmapp.xayunmei.com选择是否应诉。
69
-                            String name = affiliate.getName();
70
-                            request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
71
-                            SmsUtils.sendSms(request);
72
-                        }
53
+        }
54
+        //修改案件状态为待开庭
55
+        caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR);
56
+        int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
57
+        if (i > 0) {
58
+            String arbitratMethodStr = caseApplication1.getArbitratMethod() == 1 ? "开庭审理" : "书面审理";
59
+            //发送短信通知
60
+            SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
61
+            request.setTemplateId("1931000");
62
+            CaseAffiliate caseAffiliate = new CaseAffiliate();
63
+            caseAffiliate.setCaseAppliId(caseApplication1.getId());
64
+            List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);            //获取案件关联人信息
65
+            if (caseAffiliates != null && caseAffiliates.size() > 0) {
66
+                for (CaseAffiliate affiliate : caseAffiliates) {
67
+                    //获取身份类型
68
+                    int identityType = affiliate.getIdentityType();
69
+                    if (identityType == 1) {    //申请人
70
+                        request.setPhone(affiliate.getContactTelphone());
71
+                        // 这个值,要看你的模板中是否预留了占位符,如果没有则不需要设置
72
+                        // 1931000 普通短信 确定仲裁方式通知 尊敬的{1}用户,您的{2}仲裁案件,仲裁方式已确定为{3},请知晓,如非本人操作,请忽略本短信。
73
+                        String name = affiliate.getName();
74
+                        request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
75
+                        SmsUtils.sendSms(request);
76
+                    } else {       //被申请人
77
+                        request.setPhone(affiliate.getContactTelphone());
78
+                        // 模板id1928006 普通短信 案件应诉通知 尊敬的{1}用户,您的{2}案件{3}已成功受理,请点击https://phmapp.xayunmei.com选择是否应诉。
79
+                        String name = affiliate.getName();
80
+                        request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
81
+                        SmsUtils.sendSms(request);
73 82
                     }
74 83
                 }
75
-                return AjaxResult.success("选择成功");
76 84
             }
77
-
85
+            return AjaxResult.success("审核成功");
78 86
         }
79
-        return AjaxResult.error("请选择开庭方式");
87
+        return AjaxResult.error();
80 88
     }
81 89
 
82 90
     @Override

+ 6
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseEvidenceServiceImpl.java Прегледај датотеку

@@ -151,6 +151,12 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
151 151
             }
152 152
             //修改案件状态
153 153
             caseApplication1.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL_SUBMMIT);
154
+            //选择仲裁方式
155
+            if (caseEvidenceDTO.getOpenCourtHear()==1){   //开庭审理
156
+                caseApplication1.setArbitratMethod(1);
157
+            }else {
158
+                caseApplication1.setArbitratMethod(2);  //书面审理
159
+            }
154 160
             int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
155 161
             if (i > 0) {
156 162
                 //案件日志表里添加数据