diff --git a/src/main/java/com/qs/serve/modules/goods/service/GoodsCustomerPriceService.java b/src/main/java/com/qs/serve/modules/goods/service/GoodsCustomerPriceService.java index de540086..b558970c 100644 --- a/src/main/java/com/qs/serve/modules/goods/service/GoodsCustomerPriceService.java +++ b/src/main/java/com/qs/serve/modules/goods/service/GoodsCustomerPriceService.java @@ -29,10 +29,16 @@ public interface GoodsCustomerPriceService extends IService List getBySupplierCodeAndCode(String supplierCode, List skuCode); /** - * 同步客户特殊价 + * 同步客户特殊价() */ void syncCustomerPrice(); + void syncCustomerPrice(String dictKey,String dictTitle,String url); + + /** + * 刷新客户所有的商品特殊价 + * @param cusCode + */ void syncCustomerPrice(String cusCode); } diff --git a/src/main/java/com/qs/serve/modules/goods/service/impl/GoodsCustomerPriceServiceImpl.java b/src/main/java/com/qs/serve/modules/goods/service/impl/GoodsCustomerPriceServiceImpl.java index c23e3a7e..188dec22 100644 --- a/src/main/java/com/qs/serve/modules/goods/service/impl/GoodsCustomerPriceServiceImpl.java +++ b/src/main/java/com/qs/serve/modules/goods/service/impl/GoodsCustomerPriceServiceImpl.java @@ -157,18 +157,18 @@ public class GoodsCustomerPriceServiceImpl extends ServiceImpl() - .eq(SysDictData::getGroupKey,DICT_KEY)); + .eq(SysDictData::getGroupKey,DICT_KEY)); Long maxId = 0L; if(dictData!=null&&dictData.getKeyVal()!=null){ maxId = Long.parseLong(dictData.getKeyVal()); } List allCusPriceList = new ArrayList<>(); - R res = seeYonRequestBaseService.postBase(TbsSeeYonConst.ERP_CUS_INV_LAST_UPD+"/"+maxId,null,"查询最近更新的客户特殊价"); + R res = seeYonRequestBaseService.postBase(url+"/"+maxId,null,"查询最近更新的客户特殊价"); if(res.getStatus().equals(200)){ allCusPriceList = JsonUtil.jsonToList(res.getData(), InventoryCusPrice.class); } @@ -195,9 +195,9 @@ public class GoodsCustomerPriceServiceImpl extends ServiceImpl