fxkh-txl-service/src/main/resources/mapper/ERuleMapper.xml

26 lines
913 B
XML
Raw Normal View History

2023-09-13 17:15:39 +08:00
<?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
2023-09-14 10:58:35 +08:00
SHZH_IOT.E_RULE E
2023-09-13 17:15:39 +08:00
WHERE 1=1 E.DEL = 1
<if test="findDto.stm != null and findDto.stm != '' and findDto.etm != null and findDto.etm != ''">
AND E.CREATETIME &gt;= '${findDto.stm}' and E.CREATETIME &lt;=
'${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>