houzhongjian
2024-07-23 a6de490948278991e47952e90671ddba4555e9a2
提交 | 用户 | 时间
a6de49 1 <?xml version="1.0" encoding="UTF-8"?>
H 2 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
4 <mapper namespace="com.iailab.module.device.dao.DeviceAbnormalHistoryDao">
5     <insert id="insertHistory" parameterType="map">
6         insert into `t_device_abnormal_history` (`total_count`, `abnormal_count`, `create_date`)
7         VALUES (#{total_count}, #{abnormal_count}, SYSDATE())
8     </insert>
9     <select id="getlist" resultType="com.iailab.module.device.dto.DeviceAbnormalHistoryDTO">
10         select * from t_device_abnormal_history where create_date between #{startDate} and #{endDate}
11     </select>
12 </mapper>