Authored by Lixiaodi

hscode类型修改

... ... @@ -62,7 +62,7 @@ public class Product {
private BigDecimal offerPrice;
private Integer hsCode;
private String hsCode;
private String measuremenCode;
private String barCode;
private String productNameCn;
... ... @@ -307,11 +307,11 @@ public class Product {
this.productNameCn = productNameCn;
}
public Integer getHsCode() {
public String getHsCode() {
return hsCode;
}
public void setHsCode(Integer hsCode) {
public void setHsCode(String hsCode) {
this.hsCode = hsCode;
}
... ...
... ... @@ -18,7 +18,7 @@ public class ProductAttrImportItem {
private String productNameCn;
@BatchImportField(index = 3)
private Integer hsCode;
private String hsCode;
@BatchImportField(index = 4)
private String barCode;
... ...
... ... @@ -24,7 +24,7 @@
<result column="age_level" jdbcType="VARCHAR" property="ageLevel" />
<result column="is_syn_calender" jdbcType="INTEGER" property="isSynCalender" />
<result column="offer_price" jdbcType="DECIMAL" property="offerPrice" />
<result column="hs_code" jdbcType="INTEGER" property="hsCode" />
<result column="hs_code" jdbcType="VARCHAR" property="hsCode" />
<result column="measuremen_code" jdbcType="VARCHAR" property="measuremenCode" />
<result column="bar_code" jdbcType="VARCHAR" property="barCode" />
<result column="product_name_cn" jdbcType="VARCHAR" property="productNameCn" />
... ... @@ -50,7 +50,7 @@
<update id="updateAttByPrimaryKey" parameterType="com.yoho.ufo.dal.model.Product">
update product set
bar_code = #{barCode,jdbcType=VARCHAR},
hs_code = #{hsCode,jdbcType=INTEGER},
hs_code = #{hsCode,jdbcType=VARCHAR},
product_name_cn = #{productNameCn,jdbcType=VARCHAR},
measuremen_code = #{measuremenCode,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
... ...