From 0dda0878101c086c176c5ceb8b5311ebfc517c43 Mon Sep 17 00:00:00 2001 From: Yen Date: Tue, 23 Jul 2024 14:23:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E4=BB=B7=E5=88=A0=E9=99=A4=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/GoodsCustomerPriceService.java | 8 +++++- .../impl/GoodsCustomerPriceServiceImpl.java | 26 ++++++++++++++----- .../modules/tbs/common/TbsSeeYonConst.java | 1 + 3 files changed, 28 insertions(+), 7 deletions(-) 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