图库匹配修改返回参数
This commit is contained in:
parent
4f8ee7394a
commit
846f719b5d
@ -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 = "商品图库匹配")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user