hejinbo 2 anos atrás
pai
commit
eff4c740aa

+ 12
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java Ver arquivo

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