| | |
| | | <if test="messageRecord.source!=null and messageRecord.source!=''"> |
| | | and source = #{messageRecord.source} |
| | | </if> |
| | | |
| | | <if test="messageRecord.createTime != null"> |
| | | AND DATE_FORMAT(create_time,'%Y-%m-%d') = DATE_FORMAT(#{messageRecord.createTime},'%Y-%m-%d') |
| | | </if> |
| | | |
| | | |
| | | ORDER BY ID DESC |
| | | </select> |
| | | |
| | | <!--查询状态为2且,7天后的时间比现在大的数据--> |
| | | <select id="getNoAlertRes" resultType="java.lang.String"> |
| | | select |
| | | wm_concat(res_guid) |
| | | from ywxt.sm_message_record |
| | | where alert_status = 2 |
| | | and add_days(update_time,7)>= now() |
| | | and theme = #{ruleName} |
| | | </select> |
| | | </mapper> |