소스 검색

修复bug

云殇忆 1 년 전
부모
커밋
cb17a7988e
1개의 변경된 파일2개의 추가작업 그리고 10개의 파일을 삭제
  1. 2 10
      ruoyi-demo/src/main/java/com/ruoyi/demo/utils/CategoryUtil.java

+ 2 - 10
ruoyi-demo/src/main/java/com/ruoyi/demo/utils/CategoryUtil.java

@@ -134,17 +134,9 @@ public class CategoryUtil {
         if (sub.equals("00")){
             QueryWrapper<TypeBy> queryWrapper = new QueryWrapper<>();
             if (mid.equals("00")){
-                queryWrapper.likeRight("type_code_by",big).and(addrCategoryQueryWrapper -> {
-                    addrCategoryQueryWrapper.ne("mid_category","");
-                }).and(addrCategoryQueryWrapper -> {
-                    addrCategoryQueryWrapper.ne("sub_category","");
-                });
+                queryWrapper.likeRight("type_code_by",big);
             }else{
-                queryWrapper.likeRight("type_code_by",big+mid).and(addrCategoryQueryWrapper -> {
-                    addrCategoryQueryWrapper.ne("mid_category","");
-                }).and(addrCategoryQueryWrapper -> {
-                    addrCategoryQueryWrapper.ne("sub_category","");
-                });
+                queryWrapper.likeRight("type_code_by",big+mid);
             }
             List<TypeBy> typeByList = byDao.selectList(queryWrapper);
             for (TypeBy typeBy : typeByList){