瀏覽代碼

字段类型更改

gaodd 1 年之前
父節點
當前提交
ad8c2957bf

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

@@ -15,7 +15,7 @@
15
     <result column="charge_person" property="chargePerson" jdbcType="VARCHAR" />
15
     <result column="charge_person" property="chargePerson" jdbcType="VARCHAR" />
16
     <result column="longitude" property="longitude" jdbcType="VARCHAR" />
16
     <result column="longitude" property="longitude" jdbcType="VARCHAR" />
17
     <result column="latitude" property="latitude" jdbcType="VARCHAR" />
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
     <result column="work_number" property="workNumber" jdbcType="INTEGER" />
19
     <result column="work_number" property="workNumber" jdbcType="INTEGER" />
20
     <result column="area_code" property="areaCode" jdbcType="INTEGER" />
20
     <result column="area_code" property="areaCode" jdbcType="INTEGER" />
21
     <result column="area_name" property="areaName" jdbcType="VARCHAR" />
21
     <result column="area_name" property="areaName" jdbcType="VARCHAR" />
@@ -196,7 +196,7 @@
196
       #{orgCode,jdbcType=VARCHAR}, #{orgClassId,jdbcType=INTEGER}, #{companyNature,jdbcType=INTEGER}, 
196
       #{orgCode,jdbcType=VARCHAR}, #{orgClassId,jdbcType=INTEGER}, #{companyNature,jdbcType=INTEGER}, 
197
       #{busiType,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, 
197
       #{busiType,jdbcType=INTEGER}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, 
198
       #{fax,jdbcType=VARCHAR}, #{chargePerson,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, 
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
       #{areaCode,jdbcType=INTEGER}, #{areaName,jdbcType=VARCHAR}, #{post,jdbcType=VARCHAR}, 
200
       #{areaCode,jdbcType=INTEGER}, #{areaName,jdbcType=VARCHAR}, #{post,jdbcType=VARCHAR}, 
201
       #{depotClass,jdbcType=INTEGER}, #{designCapacity,jdbcType=DECIMAL}, #{effectiveCapacity,jdbcType=DECIMAL}, 
201
       #{depotClass,jdbcType=INTEGER}, #{designCapacity,jdbcType=DECIMAL}, #{effectiveCapacity,jdbcType=DECIMAL}, 
202
       #{depotArea,jdbcType=DECIMAL}, #{completeDate,jdbcType=TIMESTAMP}, #{useDate,jdbcType=TIMESTAMP}, 
202
       #{depotArea,jdbcType=DECIMAL}, #{completeDate,jdbcType=TIMESTAMP}, #{useDate,jdbcType=TIMESTAMP}, 
@@ -425,7 +425,7 @@
425
         #{latitude,jdbcType=VARCHAR},
425
         #{latitude,jdbcType=VARCHAR},
426
       </if>
426
       </if>
427
       <if test="registCapital != null" >
427
       <if test="registCapital != null" >
428
-        #{registCapital,jdbcType=INTEGER},
428
+        #{registCapital,jdbcType=DECIMAL},
429
       </if>
429
       </if>
430
       <if test="workNumber != null" >
430
       <if test="workNumber != null" >
431
         #{workNumber,jdbcType=INTEGER},
431
         #{workNumber,jdbcType=INTEGER},
@@ -601,7 +601,7 @@
601
         latitude = #{record.latitude,jdbcType=VARCHAR},
601
         latitude = #{record.latitude,jdbcType=VARCHAR},
602
       </if>
602
       </if>
603
       <if test="record.registCapital != null" >
603
       <if test="record.registCapital != null" >
604
-        regist_capital = #{record.registCapital,jdbcType=INTEGER},
604
+        regist_capital = #{record.registCapital,jdbcType=DECIMAL},
605
       </if>
605
       </if>
606
       <if test="record.workNumber != null" >
606
       <if test="record.workNumber != null" >
607
         work_number = #{record.workNumber,jdbcType=INTEGER},
607
         work_number = #{record.workNumber,jdbcType=INTEGER},
@@ -749,7 +749,7 @@
749
       charge_person = #{record.chargePerson,jdbcType=VARCHAR},
749
       charge_person = #{record.chargePerson,jdbcType=VARCHAR},
750
       longitude = #{record.longitude,jdbcType=VARCHAR},
750
       longitude = #{record.longitude,jdbcType=VARCHAR},
751
       latitude = #{record.latitude,jdbcType=VARCHAR},
751
       latitude = #{record.latitude,jdbcType=VARCHAR},
752
-      regist_capital = #{record.registCapital,jdbcType=INTEGER},
752
+      regist_capital = #{record.registCapital,jdbcType=DECIMAL},
753
       work_number = #{record.workNumber,jdbcType=INTEGER},
753
       work_number = #{record.workNumber,jdbcType=INTEGER},
754
       area_code = #{record.areaCode,jdbcType=INTEGER},
754
       area_code = #{record.areaCode,jdbcType=INTEGER},
755
       area_name = #{record.areaName,jdbcType=VARCHAR},
755
       area_name = #{record.areaName,jdbcType=VARCHAR},
@@ -835,7 +835,7 @@
835
         latitude = #{latitude,jdbcType=VARCHAR},
835
         latitude = #{latitude,jdbcType=VARCHAR},
836
       </if>
836
       </if>
837
       <if test="registCapital != null" >
837
       <if test="registCapital != null" >
838
-        regist_capital = #{registCapital,jdbcType=INTEGER},
838
+        regist_capital = #{registCapital,jdbcType=DECIMAL},
839
       </if>
839
       </if>
840
       <if test="workNumber != null" >
840
       <if test="workNumber != null" >
841
         work_number = #{workNumber,jdbcType=INTEGER},
841
         work_number = #{workNumber,jdbcType=INTEGER},
@@ -1007,7 +1007,7 @@
1007
       charge_person = #{chargePerson,jdbcType=VARCHAR},
1007
       charge_person = #{chargePerson,jdbcType=VARCHAR},
1008
       longitude = #{longitude,jdbcType=VARCHAR},
1008
       longitude = #{longitude,jdbcType=VARCHAR},
1009
       latitude = #{latitude,jdbcType=VARCHAR},
1009
       latitude = #{latitude,jdbcType=VARCHAR},
1010
-      regist_capital = #{registCapital,jdbcType=INTEGER},
1010
+      regist_capital = #{registCapital,jdbcType=DECIMAL},
1011
       work_number = #{workNumber,jdbcType=INTEGER},
1011
       work_number = #{workNumber,jdbcType=INTEGER},
1012
       area_code = #{areaCode,jdbcType=INTEGER},
1012
       area_code = #{areaCode,jdbcType=INTEGER},
1013
       area_name = #{areaName,jdbcType=VARCHAR},
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
     private String latitude;
47
     private String latitude;
48
 
48
 
49
-    private Integer registCapital;
49
+    private BigDecimal registCapital;
50
 
50
 
51
     private Integer workNumber;
51
     private Integer workNumber;
52
 
52
 
@@ -258,11 +258,11 @@ public class OrgInfo implements Serializable {
258
         this.latitude = latitude == null ? null : latitude.trim();
258
         this.latitude = latitude == null ? null : latitude.trim();
259
     }
259
     }
260
 
260
 
261
-    public Integer getRegistCapital() {
261
+    public BigDecimal getRegistCapital() {
262
         return registCapital;
262
         return registCapital;
263
     }
263
     }
264
 
264
 
265
-    public void setRegistCapital(Integer registCapital) {
265
+    public void setRegistCapital(BigDecimal registCapital) {
266
         this.registCapital = registCapital;
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
     	//注册资本zczb
136
     	//注册资本zczb
137
     	String zczb = obj.getString("zczb");
137
     	String zczb = obj.getString("zczb");
138
     	if (StringUtils.isNotBlank(zczb)) {
138
     	if (StringUtils.isNotBlank(zczb)) {
139
-    		orgInfo.setRegistCapital((int) Double.parseDouble(zczb.trim()));
139
+    		orgInfo.setRegistCapital(new BigDecimal(zczb));
140
     	}
140
     	}
141
 
141
 
142
     	//资产总额zcze
142
     	//资产总额zcze