Browse Source

导入海关商品编码被科学计数法了

yangbo 3 years ago
parent
commit
cc87decb0c

+ 3 - 1
kmall-admin/src/main/java/com/kmall/admin/service/impl/GoodsProductServiceImpl.java

@@ -205,6 +205,8 @@ public class GoodsProductServiceImpl implements GoodsProductService {
                 }
                 goodsProductEntity.setGrossWeight(goodsProductEntity.getNetWeight().add(new BigDecimal("0.05")));
 
+                goodsProductEntity.setCusGoodsCode(new BigDecimal(goodsProductEntity.getCusGoodsCode()).toPlainString());
+
                 goodsProductEntity.setDeclPrice(new BigDecimal(goodsProductDto.getDeclPrice()));
                 goodsProductEntity.setCreateTime(new Date());
                 goodsProductEntity.setCreaterSn(ShiroUtils.getUserId().toString());
@@ -378,7 +380,7 @@ public class GoodsProductServiceImpl implements GoodsProductService {
     public String pullFromOms() {
         try {
 
-        }catch (Exception e){
+        } catch (Exception e){
             e.printStackTrace();
             return "同步产品备案信息失败,请联系管理员";
         }