Sfoglia il codice sorgente

Merge branch 'cachealert1016' into uat

njs 2 anni fa
parent
commit
07c36cff7a

+ 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">