From 846f719b5d6ae932ee90aa91ecd9640d98deb9fd Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Tue, 29 Jul 2025 18:03:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E5=BA=93=E5=8C=B9=E9=85=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=BF=94=E5=9B=9E=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/shop/sync/controller/ProductMappingController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mall-shop/src/main/java/com/suisung/mall/shop/sync/controller/ProductMappingController.java b/mall-shop/src/main/java/com/suisung/mall/shop/sync/controller/ProductMappingController.java index 9774ee33..f979ef7c 100644 --- a/mall-shop/src/main/java/com/suisung/mall/shop/sync/controller/ProductMappingController.java +++ b/mall-shop/src/main/java/com/suisung/mall/shop/sync/controller/ProductMappingController.java @@ -273,7 +273,7 @@ public class ProductMappingController extends BaseControllerImpl { @ApiOperation(value = "商品图库匹配", notes = "商品图库匹配") @RequestMapping(value = "/syncShopImages", method = RequestMethod.POST) - public ThirdApiRes syncShopImages(@RequestParam(required = false) String storeId) { + public CommonResult syncShopImages(@RequestParam(required = false) String storeId) { UserDto userDto=ContextUtil.getCurrentUser(); assert userDto != null; if(userDto.isStore()){//商店自己同步 @@ -281,11 +281,11 @@ public class ProductMappingController extends BaseControllerImpl { syncThirdDataService.syncShopImages(Integer.valueOf(shopStoreId)); }else {//平台同步 if(StringUtils.isEmpty(storeId)){ - return new ThirdApiRes().fail(250,"请传入店铺id"); + return CommonResult.failed("请传入店铺id"); } syncThirdDataService.syncShopImages(Integer.valueOf(storeId)); } - return new ThirdApiRes().success("服务器已执行商品图库匹配数据操作"); + return CommonResult.success("服务器已执行商品图库匹配数据操作"); } @ApiOperation(value = "导入图库数据到es", notes = "商品图库匹配")