소스 검색

弹框修改

njs 1 년 전
부모
커밋
7b71123e26
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      suishenbang-system/src/main/resources/mapper/system/AlertConfigurationMapper.xml

+ 3 - 2
suishenbang-system/src/main/resources/mapper/system/AlertConfigurationMapper.xml

@@ -47,8 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="userType !=null and userType !='' and userType !='2'.toString() ">
           and ( user_type =#{userType}  or user_type ='2')
         </if>
-        AND now() >=alert_start_time
-        AND alert_end_time > now()
+
 
     </select>
     
@@ -63,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="userType !=null and userType !=''  ">
             and ( user_type =#{userType}  or user_type ='2')
         </if>
+        AND now() >=alert_start_time
+        AND alert_end_time > now()
     </select>
 
     <insert id="insertAlertConfiguration" parameterType="AlertConfiguration" useGeneratedKeys="true" keyProperty="alertId">