瀏覽代碼

库区接口新增字段后端代码

hefeng 5 年之前
父節點
當前提交
8ddbf65338

+ 57 - 4
src/main/java/com/chinaitop/depot/system/mapper/OrgInfoMapper.xml

@@ -47,6 +47,15 @@
47 47
     <result column="bank_name" property="bankName" jdbcType="VARCHAR" />
48 48
     <result column="account_name" property="accountName" jdbcType="VARCHAR" />
49 49
     <result column="account_number" property="accountNumber" jdbcType="VARCHAR" />
50
+    <result column="total_assets" property="totalAssets" jdbcType="INTEGER" />
51
+    <result column="corporate_capacity" property="corporateCapacity" jdbcType="VARCHAR" />
52
+    <result column="office_phone" property="officePhone" jdbcType="VARCHAR" />
53
+    <result column="registered_address" property="registeredAddress" jdbcType="VARCHAR" />
54
+    <result column="mail_box" property="mailBox" jdbcType="VARCHAR" />
55
+    <result column="official_website" property="officialWebsite" jdbcType="VARCHAR" />
56
+    <result column="house_number" property="houseNumber" jdbcType="INTEGER" />
57
+    <result column="tank_number" property="tankNumber" jdbcType="INTEGER" />
58
+    <result column="depot_property" property="depotProperty" jdbcType="VARCHAR" />
50 59
     <result column="level_code" property="levelCode" jdbcType="VARCHAR" />
51 60
     <result column="updatetime" property="updateTime" jdbcType="VARCHAR" />
52 61
   </resultMap>
@@ -115,7 +124,8 @@
115 124
     complete_date, use_date, company_org_code, credit_code, regist_type, qualification, 
116 125
     independent_corporation, legal_person, whether_rent, info_regist, regist_date, remark, 
117 126
     parent_id, status, del_flag, birds_eye, birds_Remote, brief_introduction, invoice_title, 
118
-    regist_number, bank_name, account_name, account_number,level_code,updatetime
127
+    regist_number, bank_name, account_name, account_number,level_code,total_assets,corporate_capacity,
128
+    office_phone,registered_address,mail_box,official_website,house_number,tank_number,depot_property,updatetime
119 129
   </sql>
120 130
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.OrgInfoExample" >
121 131
     select
@@ -163,7 +173,9 @@
163 173
       status, del_flag, birds_eye, 
164 174
       birds_Remote, brief_introduction, invoice_title, 
165 175
       regist_number, bank_name, account_name, 
166
-      account_number,level_code)
176
+      account_number,total_assets,corporate_capacity,
177
+      office_phone,registered_address,mail_box,official_website,
178
+      house_number,tank_number,depot_property,level_code)
167 179
     values (#{orgId,jdbcType=INTEGER}, #{orgName,jdbcType=VARCHAR}, #{shortName,jdbcType=VARCHAR}, 
168 180
       #{orgCode,jdbcType=VARCHAR}, #{orgClassId,jdbcType=INTEGER}, #{companyNature,jdbcType=INTEGER}, 
169 181
       #{busiType,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, 
@@ -179,7 +191,10 @@
179 191
       #{status,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER}, #{birdsEye,jdbcType=VARCHAR}, 
180 192
       #{birdsRemote,jdbcType=VARCHAR}, #{briefIntroduction,jdbcType=VARCHAR}, #{invoiceTitle,jdbcType=VARCHAR}, 
181 193
       #{registNumber,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, 
182
-      #{accountNumber,jdbcType=VARCHAR}, #{levelCode,jdbcType=VARCHAR})
194
+      #{accountNumber,jdbcType=VARCHAR}, #{totalAssets,jdbcType=INTEGER}, #{corporateCapacity,jdbcType=VARCHAR}, 
195
+      #{officePhone,jdbcType=VARCHAR}, #{registeredAddress,jdbcType=VARCHAR}, #{mailBox,jdbcType=VARCHAR}, 
196
+      #{officialWebsite,jdbcType=VARCHAR}, #{houseNumber,jdbcType=INTEGER}, #{tankNumber,jdbcType=INTEGER}, 
197
+      #{depotProperty,jdbcType=VARCHAR}, #{levelCode,jdbcType=VARCHAR})
183 198
   </insert>
184 199
   <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.OrgInfo" useGeneratedKeys="true" keyProperty="orgId">
185 200
     insert into org_info
@@ -796,6 +811,33 @@
796 811
       <if test="accountNumber != null" >
797 812
         account_number = #{accountNumber,jdbcType=VARCHAR},
798 813
       </if>
814
+      <if test="totalAssets != null" >
815
+        total_assets = #{totalAssets,jdbcType=INTEGER},
816
+      </if>
817
+      <if test="corporateCapacity != null" >
818
+        corporate_capacity = #{corporateCapacity,jdbcType=VARCHAR},
819
+      </if>
820
+      <if test="officePhone != null" >
821
+        office_phone = #{officePhone,jdbcType=VARCHAR},
822
+      </if>
823
+      <if test="registeredAddress != null" >
824
+        registered_address = #{registeredAddress,jdbcType=VARCHAR},
825
+      </if>
826
+      <if test="mailBox != null" >
827
+        mail_box = #{mailBox,jdbcType=VARCHAR},
828
+      </if>
829
+      <if test="officialWebsite != null" >
830
+        official_website = #{officialWebsite,jdbcType=VARCHAR},
831
+      </if>
832
+      <if test="houseNumber != null" >
833
+        house_number = #{houseNumber,jdbcType=INTEGER},
834
+      </if>
835
+      <if test="tankNumber != null" >
836
+        tank_number = #{tankNumber,jdbcType=INTEGER},
837
+      </if>
838
+      <if test="depotProperty != null" >
839
+        depot_property = #{depotProperty,jdbcType=VARCHAR},
840
+      </if>
799 841
       <if test="levelCode != null" >
800 842
         level_code = #{levelCode,jdbcType=VARCHAR},
801 843
       </if>
@@ -848,6 +890,15 @@
848 890
       bank_name = #{bankName,jdbcType=VARCHAR},
849 891
       account_name = #{accountName,jdbcType=VARCHAR},
850 892
       account_number = #{accountNumber,jdbcType=VARCHAR},
893
+      total_assets = #{totalAssets,jdbcType=INTEGER},
894
+      corporate_capacity = #{corporateCapacity,jdbcType=VARCHAR},
895
+      office_phone = #{officePhone,jdbcType=VARCHAR},
896
+      registered_address = #{registeredAddress,jdbcType=VARCHAR},
897
+      mail_box = #{mailBox,jdbcType=VARCHAR},
898
+      official_website = #{officialWebsite,jdbcType=VARCHAR},
899
+      house_number = #{houseNumber,jdbcType=INTEGER},
900
+      tank_number = #{tankNumber,jdbcType=INTEGER},
901
+      depot_property = #{depotProperty,jdbcType=VARCHAR},
851 902
       level_code = #{levelCode,jdbcType=VARCHAR}
852 903
     where org_id = #{orgId,jdbcType=INTEGER}
853 904
   </update>
@@ -866,7 +917,9 @@
866 917
     org.complete_date, org.use_date, org.company_org_code, org.credit_code, org.regist_type, org.qualification, 
867 918
     org.independent_corporation, org.legal_person, org.whether_rent, org.info_regist, org.regist_date, org.remark, 
868 919
     org.parent_id, org.status, org.del_flag, org.birds_eye, org.birds_Remote, org.brief_introduction, org.invoice_title, 
869
-    org.regist_number, org.bank_name, org.account_name, org.account_number,org.level_code,org.updatetime
920
+    org.regist_number, org.bank_name, org.account_name, org.account_number, org.total_assets, org.corporate_capacity,
921
+    org.office_phone, org.registered_address, org.mail_box, org.official_website, org.house_number, org.tank_number, 
922
+    org.depot_property, org.level_code, org.updatetime
870 923
     from org_info org
871 924
     left join basic_enum be on org.company_nature = be.enumId
872 925
     where org_class_id = 5318

+ 91 - 1
src/main/java/com/chinaitop/depot/system/model/OrgInfo.java

@@ -101,6 +101,24 @@ public class OrgInfo implements Serializable {
101 101
 
102 102
     private String accountNumber;
103 103
     
104
+    private Integer totalAssets;
105
+    
106
+    private String corporateCapacity;
107
+    
108
+    private String officePhone;
109
+    
110
+    private String registeredAddress;
111
+    
112
+    private String mailBox;
113
+    
114
+    private String officialWebsite;
115
+    
116
+    private Integer houseNumber;
117
+    
118
+    private Integer tankNumber;
119
+    
120
+    private String depotProperty;
121
+    
104 122
     private String levelCode;
105 123
     
106 124
     private Date updateTime;
@@ -465,7 +483,79 @@ public class OrgInfo implements Serializable {
465 483
         this.accountNumber = accountNumber == null ? null : accountNumber.trim();
466 484
     }
467 485
 
468
-    public List<OrgInfo> getChildren() {
486
+    public Integer getTotalAssets() {
487
+		return totalAssets;
488
+	}
489
+
490
+	public void setTotalAssets(Integer totalAssets) {
491
+		this.totalAssets = totalAssets;
492
+	}
493
+
494
+	public String getCorporateCapacity() {
495
+		return corporateCapacity;
496
+	}
497
+
498
+	public void setCorporateCapacity(String corporateCapacity) {
499
+		this.corporateCapacity = corporateCapacity == null ? null : corporateCapacity.trim();
500
+	}
501
+
502
+	public String getOfficePhone() {
503
+		return officePhone;
504
+	}
505
+
506
+	public void setOfficePhone(String officePhone) {
507
+		this.officePhone = officePhone == null ? null : officePhone.trim();
508
+	}
509
+
510
+	public String getRegisteredAddress() {
511
+		return registeredAddress;
512
+	}
513
+
514
+	public void setRegisteredAddress(String registeredAddress) {
515
+		this.registeredAddress = registeredAddress == null ? null : registeredAddress.trim();
516
+	}
517
+
518
+	public String getMailBox() {
519
+		return mailBox;
520
+	}
521
+
522
+	public void setMailBox(String mailBox) {
523
+		this.mailBox = mailBox == null ? null : mailBox.trim();
524
+	}
525
+
526
+	public String getOfficialWebsite() {
527
+		return officialWebsite;
528
+	}
529
+
530
+	public void setOfficialWebsite(String officialWebsite) {
531
+		this.officialWebsite = officialWebsite == null ? null : officialWebsite.trim();
532
+	}
533
+
534
+	public Integer getHouseNumber() {
535
+		return houseNumber;
536
+	}
537
+
538
+	public void setHouseNumber(Integer houseNumber) {
539
+		this.houseNumber = houseNumber;
540
+	}
541
+
542
+	public Integer getTankNumber() {
543
+		return tankNumber;
544
+	}
545
+
546
+	public void setTankNumber(Integer tankNumber) {
547
+		this.tankNumber = tankNumber;
548
+	}
549
+
550
+	public String getDepotProperty() {
551
+		return depotProperty;
552
+	}
553
+
554
+	public void setDepotProperty(String depotProperty) {
555
+		this.depotProperty = depotProperty == null ? null : depotProperty.trim();
556
+	}
557
+
558
+	public List<OrgInfo> getChildren() {
469 559
         return children;
470 560
     }
471 561