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

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

@@ -77,6 +77,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
77 77
             CaseAffiliate caseAffiliate = new CaseAffiliate();
78 78
             caseAffiliate.setCaseAppliId(id);
79 79
             List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
80
+            List<String> nameAgentList = new ArrayList<>();
80 81
             if (caseAffiliates != null && caseAffiliates.size() > 0) {
81 82
                 for (CaseAffiliate affiliate : caseAffiliates) {
82 83
                     //获取身份类型
@@ -89,12 +90,14 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
89 90
                         datas.put("appLegalPersonTitle", affiliate.getCompLegalperPost());
90 91
                         datas.put("appAgentName", affiliate.getNameAgent());
91 92
                         datas.put("appAgentTitle", null);
93
+                        nameAgentList.add(affiliate.getNameAgent());
92 94
                     } else if (identityType == 2) {  //被申请人
93 95
                         datas.put("resName", affiliate.getName());
94 96
                         datas.put("resAddress", affiliate.getContactAddress());
95 97
                         datas.put("resSex", affiliate.getResponSex());
96 98
                         datas.put("resDateOfBirth", affiliate.getResponBirth());
97 99
                         datas.put("resContactAddress", null);
100
+                        nameAgentList.add(affiliate.getNameAgent());
98 101
                     }
99 102
                 }
100 103
             }
@@ -163,7 +166,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
163 166
             }
164 167
             Integer isAbsence = caseApplication1.getIsAbsence();
165 168
             if (isAbsence==null){
166
-                datas.put("onLine1", null);
169
+                datas.put("absent1", null);
167 170
                 datas.put("absent2", null);
168 171
                 datas.put("absent3", null);
169 172
                 datas.put("absent4", null);
@@ -175,7 +178,9 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
175 178
                 datas.put("attend5", null);
176 179
                 datas.put("attend6", null);
177 180
                 datas.put("attend7", null);
178
-                datas.put("responCrossOpin", null);
181
+                datas.put("appAgentName1", null);
182
+                datas.put("appAgentName2", null);
183
+                datas.put("resAgentName", null);
179 184
             }
180 185
            else if (isAbsence == 1) {
181 186
                 //缺席审理
@@ -188,11 +193,12 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
188 193
                         "申请人为证明其主张的事实和理由,向仲裁庭提交了如下证据材料:";
189 194
                 String absent5 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
190 195
                         "第四十条第(二)项、第五十一条的规定,缺席裁决如下:";
191
-                datas.put("onLine1", absent1);
196
+                datas.put("absent1", absent1);
192 197
                 datas.put("absent2", absent2);
193 198
                 datas.put("absent3", absent3);
194 199
                 datas.put("absent4", absent4);
195 200
                 datas.put("absent5", absent5);
201
+                datas.put("appAgentName1", nameAgentList.get(0));
196 202
             } else {
197 203
                 //出席审理
198 204
                 String attend1 = "申请人的特别授权委托代理人";
@@ -214,6 +220,8 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
214 220
                 datas.put("attend6", attend6);
215 221
                 datas.put("attend7", attend7);
216 222
                 datas.put("responCrossOpin", caseApplication1.getResponCrossOpin());
223
+                datas.put("appAgentName2", nameAgentList.get(0));
224
+                datas.put("resAgentName", nameAgentList.get(1));
217 225
                 if (arbitratMethod == 1) {
218 226
                     //被申出席+开庭
219 227
                     String attend8 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
@@ -243,7 +251,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
243 251
             datas.put("year", year);
244 252
             String month = String.format("%02d", now.getMonthValue());
245 253
             String day = String.format("%02d", now.getDayOfMonth());
246
-             String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
254
+            String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
247 255
             //String modalFilePath = "D:/develop/新裁决书模板.docx";
248 256
             String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
249 257
             //String saveFolderPath = "D:/data/" + year + "/" + month + "/" + day;