Authored by mali

Merge branch 'test6.9.9' of http://git.yoho.cn/ufo/ufo-platform into test6.9.9

@@ -62,7 +62,7 @@ public class Product { @@ -62,7 +62,7 @@ public class Product {
62 62
63 private BigDecimal offerPrice; 63 private BigDecimal offerPrice;
64 64
65 - private Integer hsCode; 65 + private String hsCode;
66 private String measuremenCode; 66 private String measuremenCode;
67 private String barCode; 67 private String barCode;
68 private String productNameCn; 68 private String productNameCn;
@@ -307,11 +307,11 @@ public class Product { @@ -307,11 +307,11 @@ public class Product {
307 this.productNameCn = productNameCn; 307 this.productNameCn = productNameCn;
308 } 308 }
309 309
310 - public Integer getHsCode() { 310 + public String getHsCode() {
311 return hsCode; 311 return hsCode;
312 } 312 }
313 313
314 - public void setHsCode(Integer hsCode) { 314 + public void setHsCode(String hsCode) {
315 this.hsCode = hsCode; 315 this.hsCode = hsCode;
316 } 316 }
317 317
@@ -18,7 +18,7 @@ public class ProductAttrImportItem { @@ -18,7 +18,7 @@ public class ProductAttrImportItem {
18 private String productNameCn; 18 private String productNameCn;
19 19
20 @BatchImportField(index = 3) 20 @BatchImportField(index = 3)
21 - private Integer hsCode; 21 + private String hsCode;
22 22
23 @BatchImportField(index = 4) 23 @BatchImportField(index = 4)
24 private String barCode; 24 private String barCode;
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 <result column="age_level" jdbcType="VARCHAR" property="ageLevel" /> 24 <result column="age_level" jdbcType="VARCHAR" property="ageLevel" />
25 <result column="is_syn_calender" jdbcType="INTEGER" property="isSynCalender" /> 25 <result column="is_syn_calender" jdbcType="INTEGER" property="isSynCalender" />
26 <result column="offer_price" jdbcType="DECIMAL" property="offerPrice" /> 26 <result column="offer_price" jdbcType="DECIMAL" property="offerPrice" />
27 - <result column="hs_code" jdbcType="INTEGER" property="hsCode" /> 27 + <result column="hs_code" jdbcType="VARCHAR" property="hsCode" />
28 <result column="measuremen_code" jdbcType="VARCHAR" property="measuremenCode" /> 28 <result column="measuremen_code" jdbcType="VARCHAR" property="measuremenCode" />
29 <result column="bar_code" jdbcType="VARCHAR" property="barCode" /> 29 <result column="bar_code" jdbcType="VARCHAR" property="barCode" />
30 <result column="product_name_cn" jdbcType="VARCHAR" property="productNameCn" /> 30 <result column="product_name_cn" jdbcType="VARCHAR" property="productNameCn" />
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 <update id="updateAttByPrimaryKey" parameterType="com.yoho.ufo.dal.model.Product"> 50 <update id="updateAttByPrimaryKey" parameterType="com.yoho.ufo.dal.model.Product">
51 update product set 51 update product set
52 bar_code = #{barCode,jdbcType=VARCHAR}, 52 bar_code = #{barCode,jdbcType=VARCHAR},
53 - hs_code = #{hsCode,jdbcType=INTEGER}, 53 + hs_code = #{hsCode,jdbcType=VARCHAR},
54 product_name_cn = #{productNameCn,jdbcType=VARCHAR}, 54 product_name_cn = #{productNameCn,jdbcType=VARCHAR},
55 measuremen_code = #{measuremenCode,jdbcType=VARCHAR} 55 measuremen_code = #{measuremenCode,jdbcType=VARCHAR}
56 where id = #{id,jdbcType=INTEGER} 56 where id = #{id,jdbcType=INTEGER}
@@ -2932,6 +2932,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon @@ -2932,6 +2932,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
2932 JSONObject orderCargoObj = new JSONObject(); 2932 JSONObject orderCargoObj = new JSONObject();
2933 orderCargoObj.put("name", orderInfo.getGoodsInfo());//货物名称 2933 orderCargoObj.put("name", orderInfo.getGoodsInfo());//货物名称
2934 orderCargoObj.put("count", 1);//货物数量 2934 orderCargoObj.put("count", 1);//货物数量
  2935 + orderCargoObj.put("unit", product.getMeasuremenCode());
2935 orderCargoObj.put("stdUnit", "035");//货品单位 2936 orderCargoObj.put("stdUnit", "035");//货品单位
2936 orderCargoObj.put("sku", orderInfo.getSkup());//商品sku 2937 orderCargoObj.put("sku", orderInfo.getSkup());//商品sku
2937 orderCargoObj.put("seq", 1);//商品序号seq 2938 orderCargoObj.put("seq", 1);//商品序号seq
@@ -2944,7 +2945,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon @@ -2944,7 +2945,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
2944 orderCargoObj.put("brand", brand.getBrandName());//商品品牌 2945 orderCargoObj.put("brand", brand.getBrandName());//商品品牌
2945 orderCargoObj.put("regPrice", orderInfo.getGoodsPrice());//商品备案申报价格 2946 orderCargoObj.put("regPrice", orderInfo.getGoodsPrice());//商品备案申报价格
2946 orderCargoObj.put("secUnit", "025");//第二计量单位(编码) 2947 orderCargoObj.put("secUnit", "025");//第二计量单位(编码)
2947 - orderCargoObj.put("secQty", 1.00000);//第二计量单位 数量*商品数量 5位小数 2948 + orderCargoObj.put("secQty", BigDecimal.valueOf(1.00000).setScale(5));//第二计量单位 数量*商品数量 5位小数
2948 orderCargoArr.add(orderCargoObj); 2949 orderCargoArr.add(orderCargoObj);
2949 orderListObj.put("cargo", orderCargoArr); 2950 orderListObj.put("cargo", orderCargoArr);
2950 jsonObj.put("orderList", orderListArray); 2951 jsonObj.put("orderList", orderListArray);