Sfoglia il codice sorgente

fix: 企业表注册资本字段类型修改

zhangying 10 mesi fa
parent
commit
b90d80ffa8

+ 4 - 1
doc/待更新脚本

@@ -1,3 +1,6 @@
 
 -- 2024-4-28
-ALTER TABLE pc_company CHANGE ProfessionID IndustryID VARCHAR(50);
+ALTER TABLE pc_company CHANGE ProfessionID IndustryID VARCHAR(50);
+
+-- 2024-4-30
+ALTER TABLE pc_company MODIFY RegisteredCapital DECIMAL(10, 2);

+ 3 - 3
src/main/java/com/hz/employmentsite/model/PcCompany.java

@@ -61,7 +61,7 @@ public class PcCompany {
 
     private String bonus;
 
-    private Integer registeredCapital;
+    private Double registeredCapital;
 
     private String industryID;
 
@@ -301,11 +301,11 @@ public class PcCompany {
         this.bonus = bonus;
     }
 
-    public Integer getRegisteredCapital() {
+    public Double getRegisteredCapital() {
         return registeredCapital;
     }
 
-    public void setRegisteredCapital(Integer registeredCapital) {
+    public void setRegisteredCapital(Double registeredCapital) {
         this.registeredCapital = registeredCapital;
     }
 

+ 1 - 1
src/main/java/com/hz/employmentsite/services/impl/companyService/CompanyServiceImpl.java

@@ -388,7 +388,7 @@ public class CompanyServiceImpl implements CompanyService {
 
         // 匹配数据
         companyVo.setFrName(pcFirm.getDbrName());
-        companyVo.setRegisteredCapital(Integer.valueOf(pcFirm.getRegisteredCapital()));
+        companyVo.setRegisteredCapital(Double.valueOf(pcFirm.getRegisteredCapital()));
         companyVo.setCompanyCode(pcFirm.getCompanyCode());
         companyVo.setInsuredCount(Integer.valueOf(pcFirm.getInsuredCount()));
         companyVo.setUserMobile(pcFirm.getLxMobile());

+ 1 - 1
src/main/java/com/hz/employmentsite/vo/companyService/CompanyVo.java

@@ -79,7 +79,7 @@ public class CompanyVo {
     public String latitude;
 
     public Date establishmentTime;
-    public Integer registeredCapital;
+    public Double registeredCapital;
     public String signInPoliticalArea;
 
     public String industryID;

+ 9 - 9
src/main/resources/mapping/PcCompanyMapper.xml

@@ -30,7 +30,7 @@
     <result column="SignInPoliticalArea" jdbcType="VARCHAR" property="signInPoliticalArea"/>
     <result column="Website" jdbcType="VARCHAR" property="website"/>
     <result column="Bonus" jdbcType="VARCHAR" property="bonus"/>
-    <result column="RegisteredCapital" jdbcType="INTEGER" property="registeredCapital"/>
+    <result column="RegisteredCapital" jdbcType="DOUBLE" property="registeredCapital"/>
     <result column="IndustryID" jdbcType="VARCHAR" property="industryID"/>
     <result column="EstateCategoryID" jdbcType="INTEGER" property="estateCategoryID"/>
     <result column="TagID" jdbcType="INTEGER" property="tagID"/>
@@ -177,7 +177,7 @@
             #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifyUserID,jdbcType=VARCHAR},
             #{modifyTime,jdbcType=TIMESTAMP}, #{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR},
             #{openId,jdbcType=VARCHAR}, #{businScope,jdbcType=LONGVARCHAR}, #{companyDesc,jdbcType=LONGVARCHAR},
-            #{establishmentTime,jdbcType=TIMESTAMP}, #{registeredCapital,jdbcType=INTEGER},
+            #{establishmentTime,jdbcType=TIMESTAMP}, #{registeredCapital,jdbcType=DOUBLE},
             #{signInPoliticalArea,jdbcType=VARCHAR}, #{industryID,jdbcType=VARCHAR},
             #{estateCategoryID,jdbcType=INTEGER},
             #{tagID,jdbcType=INTEGER}, #{website,jdbcType=VARCHAR}, #{bonus,jdbcType=VARCHAR})
@@ -386,7 +386,7 @@
         #{bonus,jdbcType=VARCHAR},
       </if>
       <if test="registeredCapital != null">
-        #{registeredCapital,jdbcType=INTEGER},
+        #{registeredCapital,jdbcType=DOUBLE},
       </if>
       <if test="industryID != null">
         #{industryID,jdbcType=VARCHAR},
@@ -502,7 +502,7 @@
         Bonus = #{row.bonus,jdbcType=VARCHAR},
       </if>
       <if test="row.registeredCapital != null">
-        RegisteredCapital = #{row.registeredCapital,jdbcType=INTEGER},
+        RegisteredCapital = #{row.registeredCapital,jdbcType=DOUBLE},
       </if>
       <if test="row.industryID != null">
         IndustryID = #{row.industryID,jdbcType=VARCHAR},
@@ -551,7 +551,7 @@
     SignInPoliticalArea = #{row.signInPoliticalArea,jdbcType=VARCHAR},
     Website = #{row.website,jdbcType=VARCHAR},
     Bonus = #{row.bonus,jdbcType=VARCHAR},
-    RegisteredCapital = #{row.registeredCapital,jdbcType=INTEGER},
+    RegisteredCapital = #{row.registeredCapital,jdbcType=DOUBLE},
     IndustryID = #{row.industryID,jdbcType=VARCHAR},
     EstateCategoryID = #{row.estateCategoryID,jdbcType=INTEGER},
     TagID = #{row.tagID,jdbcType=INTEGER}
@@ -590,7 +590,7 @@
     SignInPoliticalArea = #{row.signInPoliticalArea,jdbcType=VARCHAR},
     Website = #{row.website,jdbcType=VARCHAR},
     Bonus = #{row.bonus,jdbcType=VARCHAR},
-    RegisteredCapital = #{row.registeredCapital,jdbcType=INTEGER},
+    RegisteredCapital = #{row.registeredCapital,jdbcType=DOUBLE},
     IndustryID = #{row.industryID,jdbcType=VARCHAR},
     EstateCategoryID = #{row.estateCategoryID,jdbcType=INTEGER},
     TagID = #{row.tagID,jdbcType=INTEGER}
@@ -692,7 +692,7 @@
         Bonus = #{bonus,jdbcType=VARCHAR},
       </if>
       <if test="registeredCapital != null">
-        RegisteredCapital = #{registeredCapital,jdbcType=INTEGER},
+        RegisteredCapital = #{registeredCapital,jdbcType=DOUBLE},
       </if>
       <if test="industryID != null">
         IndustryID = #{industryID,jdbcType=VARCHAR},
@@ -738,7 +738,7 @@
         SignInPoliticalArea = #{signInPoliticalArea,jdbcType=VARCHAR},
         Website             = #{website,jdbcType=VARCHAR},
         Bonus               = #{bonus,jdbcType=VARCHAR},
-        RegisteredCapital   = #{registeredCapital,jdbcType=INTEGER},
+        RegisteredCapital   = #{registeredCapital,jdbcType=DOUBLE},
         IndustryID          = #{industryID,jdbcType=VARCHAR},
         EstateCategoryID    = #{estateCategoryID,jdbcType=INTEGER},
         TagID               = #{tagID,jdbcType=INTEGER}
@@ -774,7 +774,7 @@
         SignInPoliticalArea = #{signInPoliticalArea,jdbcType=VARCHAR},
         Website             = #{website,jdbcType=VARCHAR},
         Bonus               = #{bonus,jdbcType=VARCHAR},
-        RegisteredCapital   = #{registeredCapital,jdbcType=INTEGER},
+        RegisteredCapital   = #{registeredCapital,jdbcType=DOUBLE},
         IndustryID          = #{industryID,jdbcType=VARCHAR},
         EstateCategoryID    = #{estateCategoryID,jdbcType=INTEGER},
         TagID               = #{tagID,jdbcType=INTEGER}