| | |
| | | AND type = #{type} |
| | | </select> |
| | | |
| | | <select id="selectWarningDetailByMap" parameterType="java.util.Map" resultMap="WarningVoResult"> |
| | | <select id="selectWarningDetailByMap_old" parameterType="java.util.Map" resultMap="WarningVoResult"> |
| | | SELECT location_name, su_yuan_id, value |
| | | FROM warning_detail |
| | | WHERE date_format(create_time, '%Y%m%d%H%I%S') >= date_format(#{startTime}, '%Y%m%d%H%I%S') |
| | |
| | | AND type = #{type} |
| | | </select> |
| | | |
| | | <select id="selectWarningDetailByMap" parameterType="java.util.Map" resultMap="WarningVoResult"> |
| | | select location_name, su_yuan_id, value |
| | | from warning_detail |
| | | where create_time between #{startTime} and #{endTime} and type = #{type}; |
| | | </select> |
| | | |
| | | <select id="selectWarningDayCountByMap_old" parameterType="java.util.Map" resultType="java.util.Map"> |
| | | SELECT date_format(create_time,'%Y%m%d') AS createTime, count(id) AS num |
| | | FROM warning_detail |