28 lines
1000 B
XML
28 lines
1000 B
XML
|
<?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="net.shapelight.modules.ten.dao.TenDoorCardDao">
|
||
|
|
||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||
|
<resultMap type="net.shapelight.modules.vo.TenDoorCardVo" id="tenDoorCardMap">
|
||
|
<result property="doorCard" column="door_card"/>
|
||
|
<result property="validBegin" column="valid_begin"/>
|
||
|
<result property="validEnd" column="valid_end"/>
|
||
|
<result property="cellId" column="cell_id"/>
|
||
|
<result property="lastUpdateTime" column="last_update_time"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<select id="findUpdate" resultMap="tenDoorCardMap">
|
||
|
select * from ten_door_card
|
||
|
where 1=1 and trim(door_card) != ''
|
||
|
<if test="cellId != null and cellId!=''">
|
||
|
and cell_id = #{cellId}
|
||
|
</if>
|
||
|
<if test="lastUpdateTime != null and lastUpdateTime!=''">
|
||
|
and last_update_time > #{lastUpdateTime}
|
||
|
</if>
|
||
|
</select>
|
||
|
|
||
|
|
||
|
</mapper>
|