hejinbo 2 лет назад
Родитель
Сommit
953410c5df

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

@@ -3,6 +3,8 @@ package com.ruoyi.wisdomarbitrate.domain;
3 3
 import com.ruoyi.common.annotation.Excel;
4 4
 import com.ruoyi.common.core.domain.BaseEntity;
5 5
 
6
+import java.util.Date;
7
+
6 8
 public class CaseAffiliate   extends BaseEntity {
7 9
     private static final long serialVersionUID = 1L;
8 10
     /** ID */
@@ -39,7 +41,7 @@ public class CaseAffiliate   extends BaseEntity {
39 41
     /**
40 42
      * 被申请人出生年月日
41 43
      */
42
-    private String responBirth;
44
+    private Date responBirth;
43 45
 
44 46
     public String getCompLegalPerson() {
45 47
         return compLegalPerson;
@@ -65,11 +67,11 @@ public class CaseAffiliate   extends BaseEntity {
65 67
         this.responSex = responSex;
66 68
     }
67 69
 
68
-    public String getResponBirth() {
70
+    public Date getResponBirth() {
69 71
         return responBirth;
70 72
     }
71 73
 
72
-    public void setResponBirth(String responBirth) {
74
+    public void setResponBirth(Date responBirth) {
73 75
         this.responBirth = responBirth;
74 76
     }
75 77
 

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

@@ -84,19 +84,22 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
84 84
                     int identityType = affiliate.getIdentityType();
85 85
                     if (identityType == 1) {    //申请人
86 86
                         datas.put("appName", affiliate.getName());
87
-                        datas.put("appAddress", affiliate.getContactAddress());
88
-                        datas.put("appContactAddress", null);
87
+                        datas.put("appAddress", affiliate.getResidenAffili());
88
+                        datas.put("appContactAddress", affiliate.getContactAddress());
89 89
                         datas.put("appLegalPerson", affiliate.getCompLegalPerson());
90 90
                         datas.put("appLegalPersonTitle", affiliate.getCompLegalperPost());
91 91
                         datas.put("appAgentName", affiliate.getNameAgent());
92
-                        datas.put("appAgentTitle", null);
92
+                        datas.put("appAgentTitle", affiliate.getAppliAgentTitle());
93 93
                         nameAgentList.add(affiliate.getNameAgent());
94 94
                     } else if (identityType == 2) {  //被申请人
95 95
                         datas.put("resName", affiliate.getName());
96
-                        datas.put("resAddress", affiliate.getContactAddress());
96
+                        datas.put("resAddress", affiliate.getResidenAffili());
97 97
                         datas.put("resSex", affiliate.getResponSex());
98
-                        datas.put("resDateOfBirth", affiliate.getResponBirth());
99
-                        datas.put("resContactAddress", null);
98
+                        Date responBirth = affiliate.getResponBirth();
99
+                        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
100
+                        String responBirthStr = sdf.format(responBirth);
101
+                        datas.put("resDateOfBirth",responBirthStr);
102
+                        datas.put("resContactAddress", affiliate.getContactAddress());
100 103
                         nameAgentList.add(affiliate.getNameAgent());
101 104
                     }
102 105
                 }