26 lines
913 B
XML
26 lines
913 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="com.whdc.mapper.ERuleMapper">
|
|
|
|
<select id="page" resultType="com.whdc.model.entity.ERule">
|
|
SELECT
|
|
E.*
|
|
FROM
|
|
SHZH_IOT.E_RULE E
|
|
WHERE 1=1 E.DEL = 1
|
|
<if test="findDto.stm != null and findDto.stm != '' and findDto.etm != null and findDto.etm != ''">
|
|
AND E.CREATETIME >= '${findDto.stm}' and E.CREATETIME <=
|
|
'${findDto.etm}'
|
|
</if>
|
|
<if test="findDto.name != null and findDto.name != '' ">
|
|
AND E.NAME LIKE CONCAT('%', #{findDto.name}, '%')
|
|
</if>
|
|
<if test="findDto.item != null and findDto.item != '' ">
|
|
AND E.ITEM = #{findDto.item}
|
|
</if>
|
|
ORDER BY E.CREATETIME DESC
|
|
</select>
|
|
|
|
|
|
</mapper>
|