浏览代码

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

hejinbo 2 年前
父节点
当前提交
d323fa69af

+ 136
- 18
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java 查看文件

@@ -13,7 +13,7 @@ public class CaseApplication  extends BaseEntity {
13 13
     /** ID */
14 14
     private Long id;
15 15
     /** 案件编号 */
16
-    @Excel(name = "案件编号")
16
+//    @Excel(name = "案件编号")
17 17
     private String caseNum;
18 18
     /** 案件标的 */
19 19
     @Excel(name = "案件标的")
@@ -58,8 +58,7 @@ public class CaseApplication  extends BaseEntity {
58 58
     /** 开庭日期 */
59 59
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
60 60
     private Date hearDate;
61
-    /** 申请人仲裁诉求 */
62
-    private String arbitratClaims;
61
+
63 62
     /** 借款开始日期 */
64 63
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
65 64
     @Excel(name = "借款开始日期")
@@ -80,6 +79,9 @@ public class CaseApplication  extends BaseEntity {
80 79
     /** 申请人主张违约金 */
81 80
     @Excel(name = "申请人主张违约金")
82 81
     private BigDecimal claimLiquidDamag;
82
+    /** 申请人仲裁诉求 */
83
+    @Excel(name = "申请人仲裁诉求")
84
+    private String arbitratClaims;
83 85
     /** 仲裁应缴费用 */
84 86
     private BigDecimal feePayable;
85 87
 
@@ -324,36 +326,78 @@ public class CaseApplication  extends BaseEntity {
324 326
     }
325 327
 
326 328
     /** 身份类型 */
327
-    @Excel(name = "身份类型")
329
+//    @Excel(name = "身份类型")
328 330
     private int identityType;
331
+    /**
332
+     * 申请人主体信息
333
+     */
329 334
     /** 姓名 */
330
-    @Excel(name = "姓名")
335
+    @Excel(name = "申请人主体信息-申请人姓名",width = 26)
331 336
     private String name;
332 337
     /** 身份证号 */
333
-    @Excel(name = "身份证号")
338
+    @Excel(name = "申请人主体信息-身份证号",width = 26)
334 339
     private String identityNum;
335
-    /** 单位电话 */
336
-    @Excel(name = "单位电话")
337
-    private String workTelphone;
340
+
338 341
     /** 联系电话 */
339
-    @Excel(name = "联系电话")
342
+    @Excel(name = "申请人主体信息-联系电话",width = 26)
340 343
     private String contactTelphone;
341 344
     /** 联系地址 */
342
-    @Excel(name = "联系地址")
345
+    @Excel(name = "申请人主体信息-联系地址",width = 26)
343 346
     private String contactAddress;
347
+    /** 单位电话 */
348
+    @Excel(name = "申请人主体信息-单位电话",width = 26)
349
+    private String workTelphone;
344 350
     /** 单位地址 */
345
-    @Excel(name = "单位地址")
351
+    @Excel(name = "申请人主体信息-单位地址",width = 26)
346 352
     private String workAddress;
347 353
 
348 354
     /** 代理人姓名 */
349
-    @Excel(name = "代理人姓名")
355
+    @Excel(name = "申请人主体信息-代理人姓名",width = 26)
350 356
     private String nameAgent;
351 357
     /** 身份证号 */
352
-    @Excel(name = "代理人身份证号")
358
+    @Excel(name = "申请人主体信息-代理人身份证号",width = 26)
353 359
     private String identityNumAgent;
354 360
     /** 联系电话 */
355
-    @Excel(name = "代理人联系电话")
361
+    @Excel(name = "申请人主体信息-代理人联系电话",width = 26)
356 362
     private String contactTelphoneAgent;
363
+    /** 联系地址 */
364
+    @Excel(name = "申请人主体信息-代理人联系地址",width = 26)
365
+    private String contactAddressAgent;
366
+    /**
367
+     * 被申请人主体信息
368
+     */
369
+    /** 姓名 */
370
+    @Excel(name = "被申请人主体信息-申请人姓名",width = 26)
371
+    private String debtorName;
372
+    /** 身份证号 */
373
+    @Excel(name = "被申请人主体信息-身份证号",width = 26)
374
+    private String debtorIdentityNum;
375
+
376
+    /** 联系电话 */
377
+    @Excel(name = "被申请人主体信息-联系电话",width = 26)
378
+    private String debtorContactTelphone;
379
+    /** 联系地址 */
380
+    @Excel(name = "被申请人主体信息-联系地址",width = 26)
381
+    private String debtorContactAddress;
382
+    /** 单位电话 */
383
+    @Excel(name = "被申请人主体信息-单位电话",width = 26)
384
+    private String debtorWorkTelphone;
385
+    /** 单位地址 */
386
+    @Excel(name = "被申请人主体信息-单位地址",width = 26)
387
+    private String debtorWorkAddress;
388
+
389
+    /** 代理人姓名 */
390
+    @Excel(name = "被申请人主体信息-代理人姓名",width = 26)
391
+    private String debtorNameAgent;
392
+    /** 身份证号 */
393
+    @Excel(name = "被申请人主体信息-代理人身份证号",width = 26)
394
+    private String debtorIdentityNumAgent;
395
+    /** 联系电话 */
396
+    @Excel(name = "被申请人主体信息-代理人联系电话",width = 26)
397
+    private String debtorContactTelphoneAgent;
398
+    /** 联系地址 */
399
+    @Excel(name = "被申请人主体信息-代理人联系地址",width = 26)
400
+    private String debtorContactAddressAgent;
357 401
 
358 402
     public int getIdentityType() {
359 403
         return identityType;
@@ -443,12 +487,86 @@ public class CaseApplication  extends BaseEntity {
443 487
         this.contactAddressAgent = contactAddressAgent;
444 488
     }
445 489
 
446
-    /** 联系地址 */
447
-    @Excel(name = "代理人联系地址")
448
-    private String contactAddressAgent;
449 490
 
491
+    public String getDebtorName() {
492
+        return debtorName;
493
+    }
494
+
495
+    public void setDebtorName(String debtorName) {
496
+        this.debtorName = debtorName;
497
+    }
450 498
 
499
+    public String getDebtorIdentityNum() {
500
+        return debtorIdentityNum;
501
+    }
451 502
 
503
+    public void setDebtorIdentityNum(String debtorIdentityNum) {
504
+        this.debtorIdentityNum = debtorIdentityNum;
505
+    }
506
+
507
+    public String getDebtorContactTelphone() {
508
+        return debtorContactTelphone;
509
+    }
510
+
511
+    public void setDebtorContactTelphone(String debtorContactTelphone) {
512
+        this.debtorContactTelphone = debtorContactTelphone;
513
+    }
514
+
515
+    public String getDebtorContactAddress() {
516
+        return debtorContactAddress;
517
+    }
518
+
519
+    public void setDebtorContactAddress(String debtorContactAddress) {
520
+        this.debtorContactAddress = debtorContactAddress;
521
+    }
522
+
523
+    public String getDebtorWorkTelphone() {
524
+        return debtorWorkTelphone;
525
+    }
526
+
527
+    public void setDebtorWorkTelphone(String debtorWorkTelphone) {
528
+        this.debtorWorkTelphone = debtorWorkTelphone;
529
+    }
530
+
531
+    public String getDebtorWorkAddress() {
532
+        return debtorWorkAddress;
533
+    }
534
+
535
+    public void setDebtorWorkAddress(String debtorWorkAddress) {
536
+        this.debtorWorkAddress = debtorWorkAddress;
537
+    }
538
+
539
+    public String getDebtorNameAgent() {
540
+        return debtorNameAgent;
541
+    }
542
+
543
+    public void setDebtorNameAgent(String debtorNameAgent) {
544
+        this.debtorNameAgent = debtorNameAgent;
545
+    }
546
+
547
+    public String getDebtorIdentityNumAgent() {
548
+        return debtorIdentityNumAgent;
549
+    }
550
+
551
+    public void setDebtorIdentityNumAgent(String debtorIdentityNumAgent) {
552
+        this.debtorIdentityNumAgent = debtorIdentityNumAgent;
553
+    }
554
+
555
+    public String getDebtorContactTelphoneAgent() {
556
+        return debtorContactTelphoneAgent;
557
+    }
558
+
559
+    public void setDebtorContactTelphoneAgent(String debtorContactTelphoneAgent) {
560
+        this.debtorContactTelphoneAgent = debtorContactTelphoneAgent;
561
+    }
562
+
563
+    public String getDebtorContactAddressAgent() {
564
+        return debtorContactAddressAgent;
565
+    }
566
+
567
+    public void setDebtorContactAddressAgent(String debtorContactAddressAgent) {
568
+        this.debtorContactAddressAgent = debtorContactAddressAgent;
569
+    }
452 570
 
453 571
     public Long getId() {
454 572
         return id;

+ 29
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseLogVO.java 查看文件

@@ -0,0 +1,29 @@
1
+package com.ruoyi.wisdomarbitrate.domain.vo;
2
+
3
+import lombok.Data;
4
+
5
+import java.util.Date;
6
+
7
+/**
8
+ * @description 案件操作日志实体
9
+ * @Author wangqiong
10
+ * @Date 2023/10/09 15:18
11
+ * @Version V1.0
12
+ **/
13
+@Data
14
+public class CaseLogVO {
15
+    /**日志id*/
16
+    private String logId;
17
+    /**操作人id*/
18
+    private String operatorId;
19
+    /**操作人名称*/
20
+    private String operatorName;
21
+    /**操作人ip*/
22
+    private String ip;
23
+    /**操作时间*/
24
+    private Date operateTime;
25
+    /**操作明细*/
26
+    private String operateDetail;
27
+    /**操作类型*/
28
+    private String operateType;
29
+}

+ 9
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java 查看文件

@@ -2,6 +2,7 @@ package com.ruoyi.wisdomarbitrate.mapper;
2 2
 
3 3
 import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
4 4
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
+import org.apache.ibatis.annotations.Param;
5 6
 
6 7
 import java.util.List;
7 8
 
@@ -22,4 +23,12 @@ public interface CaseApplicationMapper {
22 23
     CaseApplication selectCaseApplication(CaseApplication caseApplication);
23 24
 
24 25
     CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication);
26
+
27
+    /**
28
+     * 查询最大编号
29
+     * @param caseNum
30
+     * @param length
31
+     * @return
32
+     */
33
+    Integer selectCaseNumLike(@Param("caseNum") String caseNum, @Param("length") int length);
25 34
 }

+ 122
- 26
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java 查看文件

@@ -1,5 +1,6 @@
1 1
 package com.ruoyi.wisdomarbitrate.service.impl;
2 2
 
3
+
3 4
 import com.ruoyi.common.constant.CaseApplicationConstants;
4 5
 import com.ruoyi.common.exception.ServiceException;
5 6
 import com.ruoyi.common.utils.DateUtils;
@@ -12,16 +13,11 @@ import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
12 13
 import org.springframework.beans.factory.annotation.Autowired;
13 14
 import org.springframework.stereotype.Service;
14 15
 import org.springframework.transaction.annotation.Transactional;
15
-
16
-import java.lang.reflect.Field;
17 16
 import java.math.BigDecimal;
18 17
 import java.text.SimpleDateFormat;
19 18
 import java.util.*;
20 19
 import java.util.stream.Collectors;
21 20
 
22
-import static com.ruoyi.common.core.domain.AjaxResult.error;
23
-import static java.util.stream.Collectors.collectingAndThen;
24
-import static java.util.stream.Collectors.toCollection;
25 21
 
26 22
 @Service
27 23
 public class CaseApplicationServiceImpl implements ICaseApplicationService {
@@ -58,6 +54,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
58 54
         BigDecimal feeRate = new BigDecimal(0.01);
59 55
         BigDecimal feePayable  = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
60 56
         caseApplication.setFeePayable(feePayable);
57
+        // 获取自动编码
58
+        String caseNum = generateCaseNum();
59
+        caseApplication.setCaseNum(caseNum);
61 60
 
62 61
         int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
63 62
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
@@ -80,6 +79,26 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
80 79
         return rows;
81 80
     }
82 81
 
82
+    /**
83
+     * 获取自动编码
84
+     * @return
85
+     */
86
+
87
+    private String generateCaseNum() {
88
+        // 自动编码格式 zc+yyyyMMdd+001
89
+        String currentDay = DateUtils.dateTime();
90
+        String caseNum = "zc"+ currentDay;
91
+        //查询出当天的案件编号的最大值
92
+            Integer maxCaseNum =  caseApplicationMapper.selectCaseNumLike(caseNum,caseNum.length());
93
+        if(null == maxCaseNum){
94
+            caseNum = caseNum + "001";
95
+        }else {
96
+            caseNum = caseNum + String.format("%03d", maxCaseNum);
97
+        }
98
+        return caseNum;
99
+
100
+    }
101
+
83 102
     @Override
84 103
     public int selectCaseApplicationCount(CaseApplication caseApplication) {
85 104
         return caseApplicationMapper.selectCaseApplicationCount(caseApplication);
@@ -88,13 +107,28 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
88 107
     @Override
89 108
     @Transactional
90 109
     public int editCaseApplication(CaseApplication caseApplication) {
110
+        //根据仲裁费用计费规则计算应缴费用
111
+        //暂时设置计费比率为0.01
112
+        BigDecimal feeRate = new BigDecimal(0.01);
113
+        BigDecimal feePayable  = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
114
+        caseApplication.setFeePayable(feePayable);
115
+
91 116
         int rows = caseApplicationMapper.updataCaseApplication(caseApplication);
92 117
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
93 118
         if(caseAffiliates!=null&&caseAffiliates.size()>0){
94 119
             for (CaseAffiliate caseAffiliate : caseAffiliates){
120
+                caseAffiliate.setCaseAppliId(caseApplication.getId());
95 121
                 caseAffiliateMapper.updataCaseAffiliate(caseAffiliate);
96 122
             }
97 123
         }
124
+        List<CaseAttach> caseAttachList = caseApplication.getCaseAttachList();
125
+        if(caseAttachList!=null&&caseAttachList.size()>0){
126
+            for (CaseAttach caseAttach : caseAttachList){
127
+                caseAttach.setCaseAppliId(caseApplication.getId());
128
+                caseAttachMapper.updateCaseAttach(caseAttach);
129
+            }
130
+
131
+        }
98 132
 
99 133
         return rows;
100 134
     }
@@ -174,38 +208,49 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
174 208
     @Override
175 209
     @Transactional
176 210
     public String importCaseApplication(List<CaseApplication> caseApplicationList,  String operName) {
177
-        StringBuilder successMsg = new StringBuilder();
178 211
         StringBuilder failureMsg = new StringBuilder();
212
+        StringBuilder successMsg = new StringBuilder();
179 213
         int successNum = 0;
180 214
         int failureNum = 0;
181 215
         if(caseApplicationList!=null&&caseApplicationList.size()>0){
182 216
             List<CaseApplication> caseApplicationListinsert = new ArrayList<>();
183 217
             for (int i = 0; i < caseApplicationList.size(); i++){
184 218
                 CaseApplication caseApplication = caseApplicationList.get(i);
219
+                //根据仲裁费用计费规则计算应缴费用
220
+                //暂时设置计费比率为0.01
221
+                BigDecimal feeRate = new BigDecimal(0.01);
222
+                BigDecimal feePayable  = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
223
+                caseApplication.setFeePayable(feePayable);
224
+
185 225
                 //赋值CaseApplication的案件关联人信息
186 226
                 List<CaseAffiliate> caseAffiliatesnew  = new ArrayList<>();
187 227
                 assignmentCaseAffiliates(caseApplication,caseAffiliatesnew);
188 228
 
189
-                int caseApplicationCount = selectCaseApplicationCount(caseApplication);
190
-                if(caseApplicationCount>0){
191
-                    failureNum++;
192
-                    failureMsg.append("<br/>" + failureNum + "、立案编号 " + caseApplication.getCaseNum() + " 已存在");
193
-                }else {
194
-                    caseApplicationListinsert.add(caseApplication);
195
-                }
229
+//                int caseApplicationCount = selectCaseApplicationCount(caseApplication);
230
+//                if(caseApplicationCount>0){
231
+//                    failureNum++;
232
+//                    failureMsg.append("<br/>" + failureNum + "、立案编号 " + caseApplication.getCaseNum() + " 已存在");
233
+//                }else {
234
+//                    caseApplicationListinsert.add(caseApplication);
235
+//                }
236
+                caseApplicationListinsert.add(caseApplication);
196 237
             }
238
+
197 239
             if(caseApplicationListinsert!=null&&caseApplicationListinsert.size()>0){
198
-                List<CaseApplication> caseApplicationListinsertDiffer = caseApplicationListinsert.stream().collect(
199
-                        collectingAndThen(
200
-                                toCollection(() -> new TreeSet<>(Comparator.comparing(CaseApplication::getCaseNum))),
201
-                                ArrayList::new));
240
+//                List<CaseApplication> caseApplicationListinsertDiffer = caseApplicationListinsert.stream().collect(
241
+//                        collectingAndThen(
242
+//                                toCollection(() -> new TreeSet<>(Comparator.comparing(CaseApplication::getCaseNum))),
243
+//                                ArrayList::new));
202 244
 
203 245
 
204 246
                 //对不重复的立案对象集合的立案对象重新组装对应的案件关联人信息
205
-                if(caseApplicationListinsertDiffer!=null&&caseApplicationListinsertDiffer.size()>0){
206
-                    List<CaseApplication> caseApplicationNewList = new ArrayList<>();
207
-                    for (int i = 0; i < caseApplicationListinsertDiffer.size(); i++){
208
-                        CaseApplication caseApplicationinsertDiffer = caseApplicationListinsertDiffer.get(i);
247
+//                if(caseApplicationListinsertDiffer!=null&&caseApplicationListinsertDiffer.size()>0){
248
+                    List<CaseApplication> caseApplicationNewList = null;
249
+                    for (int i = 0; i < caseApplicationListinsert.size(); i++){
250
+                        caseApplicationNewList = new ArrayList<>();
251
+                        CaseApplication caseApplicationinsertDiffer = caseApplicationListinsert.get(i);
252
+                        // 设置自动编码
253
+                        caseApplicationinsertDiffer.setCaseNum(generateCaseNum());
209 254
                         List<CaseAffiliate> caseAffiliatesnew =  new ArrayList<>();
210 255
                         CaseApplication caseApplicationNew = new CaseApplication();
211 256
                         copyCaseApplication(caseApplicationinsertDiffer,caseApplicationNew);
@@ -227,6 +272,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
227 272
                             CaseApplication caseApplicationItera = caseApplicationNewList.get(k);
228 273
                             // 新增立案信息
229 274
                             caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
275
+
230 276
                             int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
231 277
                             List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
232 278
                             if(caseAffiliates!=null&&caseAffiliates.size()>0){
@@ -239,7 +285,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
239 285
                             successMsg.append("<br/>" + successNum + "、立案编号 " + caseApplicationItera.getCaseNum() + " 导入成功");
240 286
                         }
241 287
 
242
-                    }
288
+//                    }
243 289
 
244 290
                 }
245 291
 
@@ -248,8 +294,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
248 294
         }else {
249 295
             throw new ServiceException("导入立案申请数据不能为空!");
250 296
         }
297
+        // 编号存在不导入
298
+        if(StringUtils.isNotEmpty(failureMsg)){
299
+            return failureMsg.append(successMsg).toString();
300
+        }else {
251 301
 
252
-        return  successMsg.toString();
302
+            return successMsg.toString();
303
+        }
253 304
     }
254 305
 
255 306
     @Override
@@ -345,7 +396,22 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
345 396
     @Override
346 397
     public CaseApplication selectCaseApplicationConfirm(CaseApplication caseApplication) {
347 398
         CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplicationConfirm(caseApplication);
399
+        CaseAffiliate caseAffiliate = new CaseAffiliate();
400
+        caseAffiliate.setCaseAppliId(caseApplication.getId());
401
+        List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
402
+        if(caseAffiliatListeselect!=null){
403
+            StringBuffer applicantName = new StringBuffer();
404
+            for (int i = 0; i < caseAffiliatListeselect.size(); i++){
405
+                CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(i);
406
+                int identityType = caseAffiliateselect.getIdentityType();
407
+                if(identityType==1){
408
+                    applicantName.append(caseAffiliateselect.getName()).append(",");;
409
+                }
410
+            }
411
+            caseApplicationselect.setApplicantName(applicantName.toString());
348 412
 
413
+
414
+        }
349 415
         return caseApplicationselect;
350 416
     }
351 417
 
@@ -357,7 +423,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
357 423
 
358 424
         //发送短信通知
359 425
         SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
360
-        request.setTemplateId("1931000");
426
+        request.setTemplateId("1947342");
361 427
 
362 428
         CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
363 429
         String caseNum = caseApplicationselect.getCaseNum();
@@ -381,7 +447,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
381 447
                     Arbitrator arbitratorselect = arbitratorList.get(i);
382 448
                     //给仲裁员发送短信通知
383 449
                     request.setPhone(arbitratorselect.getTelephone());
384
-                    // 1931000 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
450
+                    // 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
385 451
                     String name = arbitratorselect.getArbitratorName();
386 452
                     request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
387 453
                     SmsUtils.sendSms(request);
@@ -398,7 +464,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
398 464
                 int identityType = caseAffiliateselect.getIdentityType();
399 465
                 //给申请人、被申请人发送短信通知
400 466
                 request.setPhone(caseAffiliateselect.getContactTelphone());
401
-                // 1931000 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
467
+                // 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
402 468
                 String name = caseAffiliateselect.getName();
403 469
                 request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
404 470
                 SmsUtils.sendSms(request);
@@ -445,12 +511,41 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
445 511
 
446 512
     private void assignmentCaseAffiliates(CaseApplication caseApplication, List<CaseAffiliate> caseAffiliatesnew) {
447 513
         CaseAffiliate caseAffiliate = new CaseAffiliate();
514
+
448 515
 //        BeanUtils.copyBeanProp(caseApplication,caseAffiliate);
449 516
         BeanUtils.copyBeanProp(caseAffiliate,caseApplication);
517
+        caseAffiliate.setIdentityType(1);
450 518
         caseAffiliatesnew.add(caseAffiliate);
519
+
520
+        // 组装被申请人信息
521
+        caseAffiliatesnew.add( buildDebtorInfo(caseApplication));
451 522
         caseApplication.setCaseAffiliates(caseAffiliatesnew);
452 523
     }
453 524
 
525
+    /**
526
+     * 组装被申请人信息
527
+     * @param caseApplication
528
+     * @return
529
+     */
530
+
531
+    private CaseAffiliate buildDebtorInfo(CaseApplication caseApplication) {
532
+        // 被申请人信息
533
+        CaseAffiliate debtorCaseAffiliate = new CaseAffiliate();
534
+        debtorCaseAffiliate.setCaseAppliId(caseApplication.getId());
535
+        debtorCaseAffiliate.setIdentityType(2);
536
+        debtorCaseAffiliate.setName(caseApplication.getDebtorName());
537
+        debtorCaseAffiliate.setIdentityNum(caseApplication.getDebtorIdentityNum());
538
+        debtorCaseAffiliate.setContactTelphone(caseApplication.getDebtorContactTelphone());
539
+        debtorCaseAffiliate.setContactAddress(caseApplication.getDebtorContactAddress());
540
+        debtorCaseAffiliate.setWorkTelphone(caseApplication.getDebtorWorkTelphone());
541
+        debtorCaseAffiliate.setWorkAddress(caseApplication.getDebtorWorkAddress());
542
+        debtorCaseAffiliate.setNameAgent(caseApplication.getDebtorNameAgent());
543
+        debtorCaseAffiliate.setIdentityNumAgent(caseApplication.getDebtorIdentityNumAgent());
544
+        debtorCaseAffiliate.setContactTelphoneAgent(caseApplication.getDebtorContactTelphoneAgent());
545
+        debtorCaseAffiliate.setContactAddressAgent(caseApplication.getDebtorContactAddressAgent());
546
+        return debtorCaseAffiliate;
547
+    }
548
+
454 549
     private void copyCaseApplication(CaseApplication caseApplicationinsertDiffer, CaseApplication caseApplicationNew) {
455 550
         caseApplicationNew.setArbitratClaims(caseApplicationinsertDiffer.getArbitratClaims());
456 551
         caseApplicationNew.setCaseNum(caseApplicationinsertDiffer.getCaseNum());
@@ -461,6 +556,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
461 556
         caseApplicationNew.setClaimInterestOwed(caseApplicationinsertDiffer.getClaimInterestOwed());
462 557
         caseApplicationNew.setClaimPrinciOwed(caseApplicationinsertDiffer.getClaimPrinciOwed());
463 558
         caseApplicationNew.setClaimLiquidDamag(caseApplicationinsertDiffer.getClaimLiquidDamag());
559
+        caseApplicationNew.setFeePayable(caseApplicationinsertDiffer.getFeePayable());
464 560
     }
465 561
 
466 562
 

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/IdentityAuthenticationServiceImpl.java 查看文件

@@ -123,7 +123,7 @@ public class IdentityAuthenticationServiceImpl  implements IdentityAuthenticatio
123 123
 
124 124
 //                reqest.setInfoType("1");
125 125
 //                reqest.setInfoType("13");
126
-                reqest.setInfoType("2");
126
+//                reqest.setInfoType("2");
127 127
 
128 128
                 //获得身份认证结果
129 129
                 GetEidResultResponse respIdenAuth = clientIdenAuth.GetEidResult(reqest);

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml 查看文件

@@ -51,6 +51,7 @@
51 51
     <update id="updataCaseAffiliate" parameterType="CaseAffiliate">
52 52
         update case_affiliate
53 53
         set
54
+        case_appli_id=#{caseAppliId},
54 55
         identity_type= #{identityType},
55 56
         name = #{name},
56 57
         identity_num = #{identityNum},

+ 5
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml 查看文件

@@ -71,7 +71,7 @@
71 71
                 </foreach>
72 72
             </if>
73 73
         </where>
74
-        order by c.create_time desc
74
+        order by c.create_time desc,c.case_num desc
75 75
     </select>
76 76
 
77 77
     <select id="selectCaseApplicationCount" parameterType="CaseApplication" resultType="int">
@@ -237,9 +237,10 @@
237 237
             AND c.id = #{id}
238 238
 
239 239
     </select>
240
-
241
-
242
-
240
+    <select id="selectCaseNumLike" resultType="java.lang.Integer">
241
+        select max(substring(case_num, #{length}+1,12)+1) as maxCaseNum
242
+        from case_application where case_num like CONCAT(#{caseNum},'%') ;
243
+    </select>
243 244
 
244 245
 
245 246
 </mapper>