Ver código fonte

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

qitz 2 anos atrás
pai
commit
4a2dc3a2ec

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java Ver arquivo

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

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

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