Przeglądaj źródła

开SQL日志,修BUG

dzk 1 rok temu
rodzic
commit
747ff07c59

+ 1 - 1
ruoyi-admin/src/main/resources/application.yml

@@ -165,7 +165,7 @@ mybatis-plus:
     # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
     # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
     # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
-    logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
+    logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
 #  global-config:
 #    # 是否打印 Logo banner
 #    banner: true

+ 1 - 0
ruoyi-demo/src/main/java/com/ruoyi/demo/service/impl/BrandServiceImpl.java

@@ -115,6 +115,7 @@ public class BrandServiceImpl implements BrandService {
         // 是否已经关注
         QueryWrapper<AttentionPool> queryWrapper = new QueryWrapper<>();
         queryWrapper.eq("brand_id", brandId)
+            .eq("user_id", userId)
             .eq("wd_id", "");
         AttentionPool pool = attentionPoolDao.selectOne(queryWrapper);
         BrandInfo info = new BrandInfo(brand,null);

+ 4 - 6
ruoyi-demo/src/main/java/com/ruoyi/demo/service/impl/ChannelMapServiceImpl.java

@@ -230,8 +230,8 @@ public class ChannelMapServiceImpl implements ChannelMapService {
         int total = 0;
         List<WdInfo> wdInfos = wdInfoDao.selectList(queryWrapper2);
         for (WdInfo wdInfo : wdInfos) {
-            statistics.put(wdInfo.getAddrCode().substring(0,2),statistics.get(wdInfo.getAddrCode().substring(0,2))+wdInfo.getAudit());
-            total+=+wdInfo.getAudit();
+            statistics.put(wdInfo.getAddrCode().substring(0,2),statistics.get(wdInfo.getAddrCode().substring(0,2)) + wdInfo.getAudit());
+            total += wdInfo.getAudit();
         }
 
 
@@ -671,7 +671,7 @@ public class ChannelMapServiceImpl implements ChannelMapService {
         }
 
         //搜索字段
-        if (channelMapAceeptVo.getSearchText() != null && !channelMapAceeptVo.getSearchText() .trim().equals("")) {
+        if (channelMapAceeptVo.getSearchText() != null && !channelMapAceeptVo.getSearchText().trim().equals("")) {
             queryWrapper.and(originWdInfoQueryWrapper -> {
                 originWdInfoQueryWrapper.like("wd_name", channelMapAceeptVo.getSearchText() );
             });
@@ -720,9 +720,7 @@ public class ChannelMapServiceImpl implements ChannelMapService {
             }
         });
         List<AddrCategory> addrCategories1 = addrCategoryDao.selectList(queryWrapper1);
-        List<String> collect = addrCategories1.stream().map(item -> {
-            return item.getAddrCode();
-        }).collect(Collectors.toList());
+        List<String> collect = addrCategories1.stream().map(AddrCategory::getAddrCode).collect(Collectors.toList());
 
         return collect;
     }