Your Name 3 years ago
parent
commit
f0c0720d52

+ 12
- 1
src/main/java/com/njyunzhi/pet_identity/entity/TaPetIdentity.java View File

78
     @ApiModelProperty(value = "创建日期")
78
     @ApiModelProperty(value = "创建日期")
79
     private LocalDateTime createDate;
79
     private LocalDateTime createDate;
80
 
80
 
81
-
81
+    @ApiModelProperty(value = "是否企业",notes = "")
82
+    private Boolean isOrg ;
83
+    @ApiModelProperty(value = "企业ID",notes = "")
84
+    private String orgId ;
85
+    @ApiModelProperty(value = "企业名称",notes = "")
86
+    private String orgName ;
87
+    @ApiModelProperty(value = "营业执照",notes = "")
88
+    private String orgLicense ;
89
+    @ApiModelProperty(value = "伤人信息",notes = "")
90
+    private String criminalInfo ;
91
+    @ApiModelProperty(value = "处罚信息",notes = "")
92
+    private String penaltyInfo ;
82
 }
93
 }

+ 7
- 0
src/main/java/com/njyunzhi/pet_identity/service/impl/TaPetIdentityServiceImpl.java View File

57
         taPetIdentity.setStatus(Constants.STATUS_NORMAL);
57
         taPetIdentity.setStatus(Constants.STATUS_NORMAL);
58
         taPetIdentity.setCreateDate(now);
58
         taPetIdentity.setCreateDate(now);
59
 
59
 
60
+        taPetIdentity.setIsOrg(taApplication.getIsOrg());
61
+        taPetIdentity.setOrgId(taApplication.getOrgId());
62
+        taPetIdentity.setOrgName(taApplication.getOrgName());
63
+        taPetIdentity.setOrgLicense(taApplication.getOrgLicense());
64
+        taPetIdentity.setCriminalInfo(taApplication.getCriminalInfo());
65
+        taPetIdentity.setPenaltyInfo(taApplication.getPenaltyInfo());
66
+
60
         if (!save(taPetIdentity)) {
67
         if (!save(taPetIdentity)) {
61
             throw new Exception("生成证件失败");
68
             throw new Exception("生成证件失败");
62
         }
69
         }