|
@@ -63,7 +63,6 @@ public class GoodsCategoryMgrController extends BaseApiController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/items")
|
|
|
- @PreAuthorize("@ss.hasPermi('business:category:list')")
|
|
|
public AjaxResult items(@RequestBody JSONObject param) {
|
|
|
List<GoodsCategory> categoryList = goodsCategoryService.list(
|
|
|
new LambdaQueryWrapper<GoodsCategory>().orderByDesc(GoodsCategory::getSort));
|
|
@@ -153,7 +152,7 @@ public class GoodsCategoryMgrController extends BaseApiController {
|
|
|
return error(ErrorCodeEnum.ERROR_CODE_1001);
|
|
|
}
|
|
|
int cnt = goodsService.count(new LambdaQueryWrapper<Goods>()
|
|
|
- .eq(Goods::getCategoryId, goodsCategory.getCategoryId()).eq(Goods::getIsDeleted, 1));
|
|
|
+ .eq(Goods::getCategoryId, goodsCategory.getCategoryId()).eq(Goods::getIsDeleted, 0));
|
|
|
if (cnt > 0) {
|
|
|
return error(ErrorCodeEnum.ERROR_CODE_1024);
|
|
|
}
|