| | |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | | import com.walker.web.ResponseValue; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | |
| | | * @Author 卢庆阳 |
| | | * @Date 2023/10/23 |
| | | */ |
| | | @Api(value = "物品分类", tags = "物品分类") |
| | | // @Api(value = "物品分类", tags = "物品分类") |
| | | @RestController |
| | | @RequestMapping("/pc/base/category") |
| | | public class BaseCategoryController extends BaseController { |
| | |
| | | return ResponseValue.error("分类下有商品在用,不允许删除"); |
| | | } |
| | | // 查询分类下是否有子级分类 |
| | | BaseCategory baseCategory1 = new BaseCategory(); |
| | | baseCategory1.setFatherCategoryId(param2.getId()); |
| | | List<BaseCategory> select = this.baseCategoryService.select(baseCategory1); |
| | | List<BaseCategory> select = this.baseCategoryService.selectByFatherId(param2.getId()); |
| | | if (!CollectionUtils.isEmpty(select)) { |
| | | return ResponseValue.error("分类下有子级分类在用,不允许删除"); |
| | | } |