<?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>
|