Forráskód Böngészése

缓存每个用户针对每个弹框的一次的清缓存

njs 1 éve
szülő
commit
810187d73c

+ 1 - 0
suishenbang-system/src/main/resources/mapper/system/AlertLogMapper.xml

@@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="isCacheType !=null and  isCacheType == '0'.toString()">
             and DATE_FORMAT(create_time,'%Y%m%d') = DATE_FORMAT(NOW(),'%Y%m%d')
         </if>
+        limit 1
     </select>
 
     <insert id="insertAlertLog" parameterType="AlertLog" useGeneratedKeys="true" keyProperty="alertLogId">