燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-06-09 498718ad129e8a9010e6f2af2fde2f9d4508fd32
src/main/resources/mapping/WarningDetailMapper.xml
@@ -27,7 +27,7 @@
      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') &gt;= date_format(#{startTime}, '%Y%m%d%H%I%S')
@@ -35,6 +35,12 @@
      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