|
@@ -57,12 +57,8 @@ public class GoodsController {
|
|
@Autowired
|
|
@Autowired
|
|
private GoodsGalleryService goodsGalleryService;
|
|
private GoodsGalleryService goodsGalleryService;
|
|
@Autowired
|
|
@Autowired
|
|
- private OfflineCartService offlineCartService;
|
|
|
|
- @Autowired
|
|
|
|
private ExcelUtil excelUtil;
|
|
private ExcelUtil excelUtil;
|
|
@Autowired
|
|
@Autowired
|
|
- private StoreService storeService;
|
|
|
|
- @Autowired
|
|
|
|
private SysOssService sysOssService;
|
|
private SysOssService sysOssService;
|
|
|
|
|
|
|
|
|
|
@@ -784,9 +780,9 @@ public class GoodsController {
|
|
|
|
|
|
ExcelExport ee = new ExcelExport("所有商品信息");
|
|
ExcelExport ee = new ExcelExport("所有商品信息");
|
|
|
|
|
|
- String[] header = new String[]{"商户名称","第三方商户编号","商品编码","SKU","PLU","商品名称","商品英文名称","产品条码","货品业务类型","库存是否共享",
|
|
|
|
- "商品库存","日常价","成本价","是否上架","是否热销","录入日期","商品单位","商品税率","产品品牌","海关备案编号","计量单位","海关商品编码","国检规格型号",
|
|
|
|
- "原产国","海关申报要素","毛重(kg)","净重(kg)"};
|
|
|
|
|
|
+ String[] header = new String[]{"商户名称","第三方商户编号","商品编码","SKU","商品名称","产品条码","货品业务类型",
|
|
|
|
+ "商品库存","日常价","成本价","是否上架","是否热销","录入日期","商品单位","商品税率","产品品牌","计量单位",
|
|
|
|
+ "原产国","净重(kg)","仓库编码","货主编码","仓储系统商品ID","库存类型"};
|
|
|
|
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
List<Map<String, Object>> list = new ArrayList<>();
|
|
if (goodsList !=null && goodsList.size()>0){
|
|
if (goodsList !=null && goodsList.size()>0){
|
|
@@ -797,18 +793,12 @@ public class GoodsController {
|
|
map.put("ThirdPartyMerchCode",goodsEntity.getThirdPartyMerchCode());
|
|
map.put("ThirdPartyMerchCode",goodsEntity.getThirdPartyMerchCode());
|
|
map.put("GoodsSn",goodsEntity.getGoodsSn());
|
|
map.put("GoodsSn",goodsEntity.getGoodsSn());
|
|
map.put("Sku",goodsEntity.getSku());
|
|
map.put("Sku",goodsEntity.getSku());
|
|
- map.put("Plu",goodsEntity.getPlu());
|
|
|
|
map.put("Name",goodsEntity.getName());
|
|
map.put("Name",goodsEntity.getName());
|
|
- map.put("EnglishName",goodsEntity.getEnglishName());
|
|
|
|
|
|
|
|
String goodsBizType = goodsEntity.getGoodsBizType();
|
|
String goodsBizType = goodsEntity.getGoodsBizType();
|
|
- Integer isStockShare = 0;
|
|
|
|
- if (goodsEntity.getIsStockShare()!=null){
|
|
|
|
- isStockShare = Integer.parseInt(goodsEntity.getIsStockShare());
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
map.put("ProdBarcode",goodsEntity.getProdBarcode());
|
|
map.put("ProdBarcode",goodsEntity.getProdBarcode());
|
|
map.put("GoodsBizType",StringUtils.isEmpty(goodsBizType)?"":Dict.orderBizType.valueOf("item_"+goodsBizType).getItemName());
|
|
map.put("GoodsBizType",StringUtils.isEmpty(goodsBizType)?"":Dict.orderBizType.valueOf("item_"+goodsBizType).getItemName());
|
|
- map.put("IsStockShare",isStockShare==0?"否":"是");
|
|
|
|
map.put("GoodsNumber",goodsEntity.getGoodsNumber());
|
|
map.put("GoodsNumber",goodsEntity.getGoodsNumber());
|
|
map.put("DailyPrice",goodsEntity.getDailyPrice());
|
|
map.put("DailyPrice",goodsEntity.getDailyPrice());
|
|
map.put("CostPrice",goodsEntity.getCostPrice());
|
|
map.put("CostPrice",goodsEntity.getCostPrice());
|
|
@@ -819,16 +809,18 @@ public class GoodsController {
|
|
map.put("GoodsUnit",goodsEntity.getGoodsUnit());
|
|
map.put("GoodsUnit",goodsEntity.getGoodsUnit());
|
|
map.put("GoodsRate",goodsEntity.getGoodsRate());
|
|
map.put("GoodsRate",goodsEntity.getGoodsRate());
|
|
map.put("Brand",goodsEntity.getBrand());
|
|
map.put("Brand",goodsEntity.getBrand());
|
|
- map.put("CusRecCode",goodsEntity.getCusRecCode());
|
|
|
|
- map.put("UnitCode",goodsEntity.getUnitCode());
|
|
|
|
|
|
+// map.put("CusRecCode",goodsEntity.getCusRecCode());
|
|
|
|
+ map.put("UnitCode",goodsEntity.getUnitCodeName());
|
|
|
|
|
|
- map.put("CusGoodsCode",goodsEntity.getCusGoodsCode());
|
|
|
|
- map.put("CiqProdModel",goodsEntity.getCiqProdModel());
|
|
|
|
map.put("OriCntName",goodsEntity.getOriCntName());
|
|
map.put("OriCntName",goodsEntity.getOriCntName());
|
|
- map.put("CusDeclEle",goodsEntity.getCusDeclEle());
|
|
|
|
map.put("GrossWeight",goodsEntity.getGrossWeight());
|
|
map.put("GrossWeight",goodsEntity.getGrossWeight());
|
|
map.put("NetWeight",goodsEntity.getNetWeight());
|
|
map.put("NetWeight",goodsEntity.getNetWeight());
|
|
|
|
|
|
|
|
+ map.put("warehouseSn",goodsEntity.getWarehouseSn());
|
|
|
|
+ map.put("consignorSn",goodsEntity.getConsignorSn());
|
|
|
|
+ map.put("warehousSysGoodId",goodsEntity.getWarehousSysGoodId());
|
|
|
|
+ map.put("inventoryType",goodsEntity.getInventoryType());
|
|
|
|
+
|
|
list.add(map);
|
|
list.add(map);
|
|
}
|
|
}
|
|
}
|
|
}
|