yumeng 4 years ago
parent
commit
7f0fb8656e

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysBaseApiImpl.java

@@ -124,7 +124,7 @@ public class SysBaseApiImpl implements ISysBaseApi {
     }
 
     @Override
-//    @Cacheable(cacheNames = CacheConstant.SYS_USERS_CACHE, key = "#username")
+    @Cacheable(cacheNames = CacheConstant.SYS_USERS_CACHE, key = "#username")
     public LoginUser getUserByName(String username) {
         if (oConvertUtils.isEmpty(username)) {
             return null;

+ 4 - 4
module-alarm/src/main/java/cn/com/ctop/alarm/modules/mapper/xml/RuleAccountThresholdMapper.xml

@@ -9,13 +9,13 @@
     </select>
     <select id="selectGroupIdsByAccountId" resultType="java.lang.Long">
        SELECT group_id FROM `ctop_rule_account_threshold`
-        WHERE (batch_no !='' and batch_no is null)
+        WHERE (batch_no !='' and batch_no is not null)
         and  account_id = #{accountId}
         group by group_id
     </select>
     <select id="selectbatchNosByGroupIdId" resultType="java.lang.String">
        SELECT batch_no FROM `ctop_rule_account_threshold`
-        WHERE  (batch_no !='' and batch_no is null)
+        WHERE  (batch_no !='' and batch_no is not null)
         and account_id = #{accountId}
         and group_id = #{groupId}
         GROUP BY batch_no
@@ -28,10 +28,10 @@
     </select>
 
     <select id="getBatchNo" resultType="java.lang.String">
-    select   batch_no from ctop_rule_account_threshold
+    select batch_no from ctop_rule_account_threshold
     where  account_id = #{accountId}
     and group_id = #{groupId}
-    and (batch_no !='' and batch_no is null)
+    and (batch_no !='' and batch_no is not null)
     group by batch_no
     </select>
 </mapper>