|
|
@@ -2,6 +2,7 @@ package com.sckw.product.controller;
|
|
|
|
|
|
import com.sckw.core.exception.BusinessException;
|
|
|
import com.sckw.core.utils.CollectionUtils;
|
|
|
+import com.sckw.core.utils.StringUtils;
|
|
|
import com.sckw.core.web.response.HttpResult;
|
|
|
import com.sckw.excel.utils.ExcelUtil;
|
|
|
import com.sckw.product.model.GoodsListExport;
|
|
|
@@ -141,8 +142,9 @@ public class KwpGoodsController {
|
|
|
* @return: com.sckw.core.web.response.HttpResult
|
|
|
*/
|
|
|
@GetMapping("/batchTakeOffShelves")
|
|
|
- public HttpResult batchTakeOffShelves(@RequestParam List<Long> ids) {
|
|
|
- kwpGoodsService.batchTakeOffShelves(ids);
|
|
|
+ public HttpResult batchTakeOffShelves(@RequestParam String ids) {
|
|
|
+ List<Long> goodIds = StringUtils.splitStrToList(ids, ",", Long.class);
|
|
|
+ kwpGoodsService.batchTakeOffShelves(goodIds);
|
|
|
return HttpResult.ok("批量下架成功");
|
|
|
}
|
|
|
|
|
|
@@ -154,8 +156,9 @@ public class KwpGoodsController {
|
|
|
* @return: com.sckw.core.web.response.HttpResult
|
|
|
*/
|
|
|
@GetMapping("/batchDelete")
|
|
|
- public HttpResult batchDelete(@RequestParam List<Long> ids) {
|
|
|
- kwpGoodsService.batchDelete(ids);
|
|
|
+ public HttpResult batchDelete(@RequestParam String ids) {
|
|
|
+ List<Long> goodIds = StringUtils.splitStrToList(ids, ",", Long.class);
|
|
|
+ kwpGoodsService.batchDelete(goodIds);
|
|
|
return HttpResult.ok("批量删除成功");
|
|
|
}
|
|
|
|