| | |
| | | sys_alarm |
| | | WHERE |
| | | 1 = 1 |
| | | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and alarmTime>=#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and alarmTime<=#{endTime} |
| | | </if> |
| | | |
| | | AND jtype = 0 |
| | | AND waringType IN ( "安装任务" ) UNION ALL |
| | | SELECT |
| | |
| | | sys_alarm |
| | | WHERE |
| | | 1 = 1 |
| | | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and alarmTime>=#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and alarmTime<=#{endTime} |
| | | </if> |
| | | |
| | | AND jtype = 2 |
| | | AND waringType IN ( "安装任务" ) |
| | | </select> |
| | |
| | | sys_alarm |
| | | WHERE |
| | | 1 = 1 |
| | | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and alarmTime>=#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and alarmTime<=#{endTime} |
| | | </if> |
| | | |
| | | AND jtype = 0 |
| | | AND waringType IN ( "紧急求救" ) UNION ALL |
| | | SELECT |
| | |
| | | sys_alarm |
| | | WHERE |
| | | 1 = 1 |
| | | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and alarmTime>=#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and alarmTime<=#{endTime} |
| | | </if> |
| | | |
| | | AND jtype = 1 |
| | | AND waringType IN ( "紧急求救" ) |
| | | UNION ALL |
| | |
| | | sys_alarm |
| | | WHERE |
| | | 1 = 1 |
| | | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and alarmTime>=#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and alarmTime<=#{endTime} |
| | | </if> |
| | | |
| | | AND jtype = 2 |
| | | AND waringType IN ( "紧急求救" ) |
| | | </select> |
| | |
| | | sys_alarm |
| | | WHERE |
| | | 1 = 1 |
| | | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and alarmTime>=#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and alarmTime<=#{endTime} |
| | | </if> |
| | | |
| | | AND alarmbs = 0 |
| | | AND waringType IN ( "紧急求救" ) UNION ALL |
| | | SELECT |
| | |
| | | sys_alarm |
| | | WHERE |
| | | 1 = 1 |
| | | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and alarmTime>=#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and alarmTime<=#{endTime} |
| | | </if> |
| | | |
| | | AND alarmbs = 1 |
| | | AND waringType IN ( "紧急求救" ) |
| | | UNION ALL |
| | |
| | | sys_alarm |
| | | WHERE |
| | | 1 = 1 |
| | | |
| | | <if test="beginTime!=null and beginTime!=''"> |
| | | and alarmTime>=#{beginTime} |
| | | </if> |
| | | <if test="endTime!=null and endTime!=''"> |
| | | and alarmTime<=#{endTime} |
| | | </if> |
| | | |
| | | AND alarmbs = 2 |
| | | AND waringType IN ( "紧急求救" ) |
| | | </select> |
| | |
| | | WHERE |
| | | |
| | | <if test="alarm.securityArr!=null and alarm.securityArr!=''"> |
| | | securityId = "" or securityId IS NULL |
| | | (securityId = "" or securityId IS NULL) |
| | | AND jtype != 2 |
| | | AND securityArr LIKE concat('%',#{alarm.securityArr},'%') |
| | | </if> |
| | | |