소스 검색

Merge remote-tracking branch 'origin/information' into information

zoujiajian 2 년 전
부모
커밋
d7486a08dd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      netflix-web/src/main/java/com/cyksj/web/controller/manage/information/CmsInformationController.java

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/manage/information/CmsInformationController.java

@@ -164,7 +164,7 @@ public class CmsInformationController {
      */
     @DeleteMapping("/del/category/{id}")
     public Result<String> delCategoryById(@PathVariable Long id) {
-        int count = informationService.count(Wrappers.lambdaQuery(Information.class).apply("JSON_CONTAINS(category_id,'\"" + id + "\"')").eq(Information::getDeleted, true));
+        int count = informationService.count(Wrappers.lambdaQuery(Information.class).apply("JSON_CONTAINS(category_ids,'\"" + id + "\"')").eq(Information::getDeleted, true));
         if (count > 0){
             throw BusinessRuntimeException.getInstance("该类型下存在文章,无法删除");
         }