Browse Source

易诊通修改

xdd 5 days ago
parent
commit
90d870c5a1

+ 6 - 1
fs-service/src/main/java/com/fs/erp/service/impl/HzOMSErpGoodsServiceImpl.java

@@ -13,6 +13,7 @@ import com.fs.his.service.IFsStoreProductAttrService;
 import com.fs.his.service.IFsStoreProductAttrValueService;
 import com.fs.his.service.IFsStoreProductService;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.context.annotation.Primary;
 import org.springframework.stereotype.Service;
 
@@ -39,6 +40,10 @@ public class HzOMSErpGoodsServiceImpl implements IErpGoodsService {
     @Autowired
     private IFsStoreProductAttrValueService fsStoreProductAttrValueService;
 
+    @Value("${erp.hzOmsErpShopCode}")
+    private String hzOmsErpShopCode = "8080";
+
+
     @Override
     public BaseResponse addGoods(ErpGoods goods) {
 
@@ -73,7 +78,7 @@ public class HzOMSErpGoodsServiceImpl implements IErpGoodsService {
         FsStoreProduct fsStoreProduct = fsStoreProductService.selectFsStoreProductByProductId(storeProductId);
 
         //平台店铺编码 todo 测试环境只能写死 110111 用于联调测试 fsStoreProduct.getStoreId()
-        res.put("cptshopcode", 110111);
+        res.put("cptshopcode", hzOmsErpShopCode);
         JSONArray goodsList = new JSONArray();
         //添加上传的商品
         JSONObject goods = new JSONObject();