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