图库匹配修改返回参数
This commit is contained in:
parent
aecce566ef
commit
d6a727f9fa
@ -273,7 +273,7 @@ public class ProductMappingController extends BaseControllerImpl {
|
|||||||
|
|
||||||
@ApiOperation(value = "商品图库匹配", notes = "商品图库匹配")
|
@ApiOperation(value = "商品图库匹配", notes = "商品图库匹配")
|
||||||
@RequestMapping(value = "/syncShopImages", method = RequestMethod.POST)
|
@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();
|
UserDto userDto=ContextUtil.getCurrentUser();
|
||||||
assert userDto != null;
|
assert userDto != null;
|
||||||
if(userDto.isStore()){//商店自己同步
|
if(userDto.isStore()){//商店自己同步
|
||||||
@ -281,11 +281,11 @@ public class ProductMappingController extends BaseControllerImpl {
|
|||||||
syncThirdDataService.syncShopImages(Integer.valueOf(shopStoreId));
|
syncThirdDataService.syncShopImages(Integer.valueOf(shopStoreId));
|
||||||
}else {//平台同步
|
}else {//平台同步
|
||||||
if(StringUtils.isEmpty(storeId)){
|
if(StringUtils.isEmpty(storeId)){
|
||||||
return new ThirdApiRes().fail(250,"请传入店铺id");
|
return CommonResult.failed("请传入店铺id");
|
||||||
}
|
}
|
||||||
syncThirdDataService.syncShopImages(Integer.valueOf(storeId));
|
syncThirdDataService.syncShopImages(Integer.valueOf(storeId));
|
||||||
}
|
}
|
||||||
return new ThirdApiRes().success("服务器已执行商品图库匹配数据操作");
|
return CommonResult.success("服务器已执行商品图库匹配数据操作");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "导入图库数据到es", notes = "商品图库匹配")
|
@ApiOperation(value = "导入图库数据到es", notes = "商品图库匹配")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user