ソースを参照

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Arbitrate-Backend into qtz3

qitz 2 年 前
コミット
4a2dc3a2ec

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java ファイルの表示

53
         this.responBirth = responBirth;
53
         this.responBirth = responBirth;
54
     }
54
     }
55
 
55
 
56
+
56
     public String getCompLegalPerson() {
57
     public String getCompLegalPerson() {
57
         return compLegalPerson;
58
         return compLegalPerson;
58
     }
59
     }
79
 
80
 
80
 
81
 
81
 
82
 
83
+
82
     /** 身份证号 */
84
     /** 身份证号 */
83
     @Excel(name = "身份证号")
85
     @Excel(name = "身份证号")
84
     private String identityNum;
86
     private String identityNum;

+ 21
- 10
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java ファイルの表示

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