瀏覽代碼

修复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){