Browse Source

案件批量导入修改

18792927508 2 years ago
parent
commit
7bc9b1d4cb

+ 131
- 15
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java View File

@@ -326,36 +326,78 @@ public class CaseApplication  extends BaseEntity {
326 326
     }
327 327
 
328 328
     /** 身份类型 */
329
-    @Excel(name = "身份类型")
329
+//    @Excel(name = "身份类型")
330 330
     private int identityType;
331
+    /**
332
+     * 申请人主体信息
333
+     */
331 334
     /** 姓名 */
332
-    @Excel(name = "姓名")
335
+    @Excel(name = "申请人主体信息-申请人姓名",width = 26)
333 336
     private String name;
334 337
     /** 身份证号 */
335
-    @Excel(name = "身份证号")
338
+    @Excel(name = "申请人主体信息-身份证号",width = 26)
336 339
     private String identityNum;
337
-    /** 单位电话 */
338
-    @Excel(name = "单位电话")
339
-    private String workTelphone;
340
+
340 341
     /** 联系电话 */
341
-    @Excel(name = "联系电话")
342
+    @Excel(name = "申请人主体信息-联系电话",width = 26)
342 343
     private String contactTelphone;
343 344
     /** 联系地址 */
344
-    @Excel(name = "联系地址")
345
+    @Excel(name = "申请人主体信息-联系地址",width = 26)
345 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 352
     private String workAddress;
349 353
 
350 354
     /** 代理人姓名 */
351
-    @Excel(name = "代理人姓名")
355
+    @Excel(name = "申请人主体信息-代理人姓名",width = 26)
352 356
     private String nameAgent;
353 357
     /** 身份证号 */
354
-    @Excel(name = "代理人身份证号")
358
+    @Excel(name = "申请人主体信息-代理人身份证号",width = 26)
355 359
     private String identityNumAgent;
356 360
     /** 联系电话 */
357
-    @Excel(name = "代理人联系电话")
361
+    @Excel(name = "申请人主体信息-代理人联系电话",width = 26)
358 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 402
     public int getIdentityType() {
361 403
         return identityType;
@@ -445,12 +487,86 @@ public class CaseApplication  extends BaseEntity {
445 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 571
     public Long getId() {
456 572
         return id;

+ 29
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/vo/CaseLogVO.java View File

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

+ 32
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java View File

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