新功能新增:批量从商品表导图片到图库
This commit is contained in:
parent
c1dfffa26e
commit
f68189bc3a
@ -49,4 +49,20 @@ public class LibraryProductController {
|
|||||||
List<LibraryProductDTO> libraryProducts= gson.fromJson(json,new TypeToken<List<LibraryProductDTO>>(){}.getType());
|
List<LibraryProductDTO> libraryProducts= gson.fromJson(json,new TypeToken<List<LibraryProductDTO>>(){}.getType());
|
||||||
return libraryProductService.updateBatchLibraryProductDTO(libraryProducts);
|
return libraryProductService.updateBatchLibraryProductDTO(libraryProducts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量从商品表导上架的图片到图库
|
||||||
|
* @param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "批量从商品表导图片到图库", notes = "批量从商品表导图片到图库")
|
||||||
|
@RequestMapping(value = "/shopImportToLib", method = RequestMethod.POST)
|
||||||
|
public CommonResult shopImportToLib(@RequestParam("storeId") Integer storeId) {
|
||||||
|
if(storeId==null){
|
||||||
|
CommonResult.failed("店铺id不能为空");
|
||||||
|
}
|
||||||
|
return libraryProductService.shopImportToLib(storeId);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user