gaodd преди 1 година
родител
ревизия
ad8c2957bf

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

@@ -15,7 +15,7 @@
15 15
     <result column="charge_person" property="chargePerson" jdbcType="VARCHAR" />
16 16
     <result column="longitude" property="longitude" jdbcType="VARCHAR" />
17 17
     <result column="latitude" property="latitude" jdbcType="VARCHAR" />
18
-    <result column="regist_capital" property="registCapital" jdbcType="INTEGER" />
18
+    <result column="regist_capital" property="registCapital" jdbcType="DECIMAL" />
19 19
     <result column="work_number" property="workNumber" jdbcType="INTEGER" />
20 20
     <result column="area_code" property="areaCode" jdbcType="INTEGER" />
21 21
     <result column="area_name" property="areaName" jdbcType="VARCHAR" />
@@ -196,7 +196,7 @@
196 196
       #{orgCode,jdbcType=VARCHAR}, #{orgClassId,jdbcType=INTEGER}, #{companyNature,jdbcType=INTEGER}, 
197 197
       #{busiType,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, 
198 198
       #{fax,jdbcType=VARCHAR}, #{chargePerson,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, 
199
-      #{latitude,jdbcType=VARCHAR}, #{registCapital,jdbcType=INTEGER}, #{workNumber,jdbcType=INTEGER}, 
199
+      #{latitude,jdbcType=VARCHAR}, #{registCapital,jdbcType=DECIMAL}, #{workNumber,jdbcType=INTEGER}, 
200 200
       #{areaCode,jdbcType=INTEGER}, #{areaName,jdbcType=VARCHAR}, #{post,jdbcType=VARCHAR}, 
201 201
       #{depotClass,jdbcType=INTEGER}, #{designCapacity,jdbcType=DECIMAL}, #{effectiveCapacity,jdbcType=DECIMAL}, 
202 202
       #{depotArea,jdbcType=DECIMAL}, #{completeDate,jdbcType=TIMESTAMP}, #{useDate,jdbcType=TIMESTAMP}, 
@@ -425,7 +425,7 @@
425 425
         #{latitude,jdbcType=VARCHAR},
426 426
       </if>
427 427
       <if test="registCapital != null" >
428
-        #{registCapital,jdbcType=INTEGER},
428
+        #{registCapital,jdbcType=DECIMAL},
429 429
       </if>
430 430
       <if test="workNumber != null" >
431 431
         #{workNumber,jdbcType=INTEGER},
@@ -601,7 +601,7 @@
601 601
         latitude = #{record.latitude,jdbcType=VARCHAR},
602 602
       </if>
603 603
       <if test="record.registCapital != null" >
604
-        regist_capital = #{record.registCapital,jdbcType=INTEGER},
604
+        regist_capital = #{record.registCapital,jdbcType=DECIMAL},
605 605
       </if>
606 606
       <if test="record.workNumber != null" >
607 607
         work_number = #{record.workNumber,jdbcType=INTEGER},
@@ -749,7 +749,7 @@
749 749
       charge_person = #{record.chargePerson,jdbcType=VARCHAR},
750 750
       longitude = #{record.longitude,jdbcType=VARCHAR},
751 751
       latitude = #{record.latitude,jdbcType=VARCHAR},
752
-      regist_capital = #{record.registCapital,jdbcType=INTEGER},
752
+      regist_capital = #{record.registCapital,jdbcType=DECIMAL},
753 753
       work_number = #{record.workNumber,jdbcType=INTEGER},
754 754
       area_code = #{record.areaCode,jdbcType=INTEGER},
755 755
       area_name = #{record.areaName,jdbcType=VARCHAR},
@@ -835,7 +835,7 @@
835 835
         latitude = #{latitude,jdbcType=VARCHAR},
836 836
       </if>
837 837
       <if test="registCapital != null" >
838
-        regist_capital = #{registCapital,jdbcType=INTEGER},
838
+        regist_capital = #{registCapital,jdbcType=DECIMAL},
839 839
       </if>
840 840
       <if test="workNumber != null" >
841 841
         work_number = #{workNumber,jdbcType=INTEGER},
@@ -1007,7 +1007,7 @@
1007 1007
       charge_person = #{chargePerson,jdbcType=VARCHAR},
1008 1008
       longitude = #{longitude,jdbcType=VARCHAR},
1009 1009
       latitude = #{latitude,jdbcType=VARCHAR},
1010
-      regist_capital = #{registCapital,jdbcType=INTEGER},
1010
+      regist_capital = #{registCapital,jdbcType=DECIMAL},
1011 1011
       work_number = #{workNumber,jdbcType=INTEGER},
1012 1012
       area_code = #{areaCode,jdbcType=INTEGER},
1013 1013
       area_name = #{areaName,jdbcType=VARCHAR},

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

@@ -46,7 +46,7 @@ public class OrgInfo implements Serializable {
46 46
 
47 47
     private String latitude;
48 48
 
49
-    private Integer registCapital;
49
+    private BigDecimal registCapital;
50 50
 
51 51
     private Integer workNumber;
52 52
 
@@ -258,11 +258,11 @@ public class OrgInfo implements Serializable {
258 258
         this.latitude = latitude == null ? null : latitude.trim();
259 259
     }
260 260
 
261
-    public Integer getRegistCapital() {
261
+    public BigDecimal getRegistCapital() {
262 262
         return registCapital;
263 263
     }
264 264
 
265
-    public void setRegistCapital(Integer registCapital) {
265
+    public void setRegistCapital(BigDecimal registCapital) {
266 266
         this.registCapital = registCapital;
267 267
     }
268 268
 

+ 1 - 1
src/main/java/com/chinaitop/depot/system/service/impl/DataDockingServiceImpl.java

@@ -136,7 +136,7 @@ public class DataDockingServiceImpl implements DataDockingService {
136 136
     	//注册资本zczb
137 137
     	String zczb = obj.getString("zczb");
138 138
     	if (StringUtils.isNotBlank(zczb)) {
139
-    		orgInfo.setRegistCapital((int) Double.parseDouble(zczb.trim()));
139
+    		orgInfo.setRegistCapital(new BigDecimal(zczb));
140 140
     	}
141 141
 
142 142
     	//资产总额zcze