18792927508 2 лет назад
Родитель
Сommit
7bc9b1d4cb

+ 131
- 15
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Просмотреть файл

326
     }
326
     }
327
 
327
 
328
     /** 身份类型 */
328
     /** 身份类型 */
329
-    @Excel(name = "身份类型")
329
+//    @Excel(name = "身份类型")
330
     private int identityType;
330
     private int identityType;
331
+    /**
332
+     * 申请人主体信息
333
+     */
331
     /** 姓名 */
334
     /** 姓名 */
332
-    @Excel(name = "姓名")
335
+    @Excel(name = "申请人主体信息-申请人姓名",width = 26)
333
     private String name;
336
     private String name;
334
     /** 身份证号 */
337
     /** 身份证号 */
335
-    @Excel(name = "身份证号")
338
+    @Excel(name = "申请人主体信息-身份证号",width = 26)
336
     private String identityNum;
339
     private String identityNum;
337
-    /** 单位电话 */
338
-    @Excel(name = "单位电话")
339
-    private String workTelphone;
340
+
340
     /** 联系电话 */
341
     /** 联系电话 */
341
-    @Excel(name = "联系电话")
342
+    @Excel(name = "申请人主体信息-联系电话",width = 26)
342
     private String contactTelphone;
343
     private String contactTelphone;
343
     /** 联系地址 */
344
     /** 联系地址 */
344
-    @Excel(name = "联系地址")
345
+    @Excel(name = "申请人主体信息-联系地址",width = 26)
345
     private String contactAddress;
346
     private String contactAddress;
347
+    /** 单位电话 */
348
+    @Excel(name = "申请人主体信息-单位电话",width = 26)
349
+    private String workTelphone;
346
     /** 单位地址 */
350
     /** 单位地址 */
347
-    @Excel(name = "单位地址")
351
+    @Excel(name = "申请人主体信息-单位地址",width = 26)
348
     private String workAddress;
352
     private String workAddress;
349
 
353
 
350
     /** 代理人姓名 */
354
     /** 代理人姓名 */
351
-    @Excel(name = "代理人姓名")
355
+    @Excel(name = "申请人主体信息-代理人姓名",width = 26)
352
     private String nameAgent;
356
     private String nameAgent;
353
     /** 身份证号 */
357
     /** 身份证号 */
354
-    @Excel(name = "代理人身份证号")
358
+    @Excel(name = "申请人主体信息-代理人身份证号",width = 26)
355
     private String identityNumAgent;
359
     private String identityNumAgent;
356
     /** 联系电话 */
360
     /** 联系电话 */
357
-    @Excel(name = "代理人联系电话")
361
+    @Excel(name = "申请人主体信息-代理人联系电话",width = 26)
358
     private String contactTelphoneAgent;
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;
359
 
401
 
360
     public int getIdentityType() {
402
     public int getIdentityType() {
361
         return identityType;
403
         return identityType;
445
         this.contactAddressAgent = contactAddressAgent;
487
         this.contactAddressAgent = contactAddressAgent;
446
     }
488
     }
447
 
489
 
448
-    /** 联系地址 */
449
-    @Excel(name = "代理人联系地址")
450
-    private String contactAddressAgent;
451
 
490
 
491
+    public String getDebtorName() {
492
+        return debtorName;
493
+    }
494
+
495
+    public void setDebtorName(String debtorName) {
496
+        this.debtorName = debtorName;
497
+    }
498
+
499
+    public String getDebtorIdentityNum() {
500
+        return debtorIdentityNum;
501
+    }
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
+    }
452
 
534
 
535
+    public void setDebtorWorkAddress(String debtorWorkAddress) {
536
+        this.debtorWorkAddress = debtorWorkAddress;
537
+    }
453
 
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
+    }
454
 
570
 
455
     public Long getId() {
571
     public Long getId() {
456
         return id;
572
         return id;

+ 29
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseLogVO.java Просмотреть файл

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
+}

+ 32
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Просмотреть файл

249
                     for (int i = 0; i < caseApplicationListinsert.size(); i++){
249
                     for (int i = 0; i < caseApplicationListinsert.size(); i++){
250
                         caseApplicationNewList = new ArrayList<>();
250
                         caseApplicationNewList = new ArrayList<>();
251
                         CaseApplication caseApplicationinsertDiffer = caseApplicationListinsert.get(i);
251
                         CaseApplication caseApplicationinsertDiffer = caseApplicationListinsert.get(i);
252
+                        // 设置自动编码
253
+                        caseApplicationinsertDiffer.setCaseNum(generateCaseNum());
252
                         List<CaseAffiliate> caseAffiliatesnew =  new ArrayList<>();
254
                         List<CaseAffiliate> caseAffiliatesnew =  new ArrayList<>();
253
                         CaseApplication caseApplicationNew = new CaseApplication();
255
                         CaseApplication caseApplicationNew = new CaseApplication();
254
                         copyCaseApplication(caseApplicationinsertDiffer,caseApplicationNew);
256
                         copyCaseApplication(caseApplicationinsertDiffer,caseApplicationNew);
270
                             CaseApplication caseApplicationItera = caseApplicationNewList.get(k);
272
                             CaseApplication caseApplicationItera = caseApplicationNewList.get(k);
271
                             // 新增立案信息
273
                             // 新增立案信息
272
                             caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
274
                             caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
273
-                            // 设置自动编码
274
-                            caseApplicationItera.setCaseNum(generateCaseNum());
275
+
275
                             int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
276
                             int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
276
                             List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
277
                             List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
277
                             if(caseAffiliates!=null&&caseAffiliates.size()>0){
278
                             if(caseAffiliates!=null&&caseAffiliates.size()>0){
510
 
511
 
511
     private void assignmentCaseAffiliates(CaseApplication caseApplication, List<CaseAffiliate> caseAffiliatesnew) {
512
     private void assignmentCaseAffiliates(CaseApplication caseApplication, List<CaseAffiliate> caseAffiliatesnew) {
512
         CaseAffiliate caseAffiliate = new CaseAffiliate();
513
         CaseAffiliate caseAffiliate = new CaseAffiliate();
514
+
513
 //        BeanUtils.copyBeanProp(caseApplication,caseAffiliate);
515
 //        BeanUtils.copyBeanProp(caseApplication,caseAffiliate);
514
         BeanUtils.copyBeanProp(caseAffiliate,caseApplication);
516
         BeanUtils.copyBeanProp(caseAffiliate,caseApplication);
517
+        caseAffiliate.setIdentityType(1);
515
         caseAffiliatesnew.add(caseAffiliate);
518
         caseAffiliatesnew.add(caseAffiliate);
519
+
520
+        // 组装被申请人信息
521
+        caseAffiliatesnew.add( buildDebtorInfo(caseApplication));
516
         caseApplication.setCaseAffiliates(caseAffiliatesnew);
522
         caseApplication.setCaseAffiliates(caseAffiliatesnew);
517
     }
523
     }
518
 
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
+
519
     private void copyCaseApplication(CaseApplication caseApplicationinsertDiffer, CaseApplication caseApplicationNew) {
549
     private void copyCaseApplication(CaseApplication caseApplicationinsertDiffer, CaseApplication caseApplicationNew) {
520
         caseApplicationNew.setArbitratClaims(caseApplicationinsertDiffer.getArbitratClaims());
550
         caseApplicationNew.setArbitratClaims(caseApplicationinsertDiffer.getArbitratClaims());
521
         caseApplicationNew.setCaseNum(caseApplicationinsertDiffer.getCaseNum());
551
         caseApplicationNew.setCaseNum(caseApplicationinsertDiffer.getCaseNum());