<?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="cn.gistack.sm.waterKnowledge.mapper.TechnicalSpecificationMapper">
|
|
<!--自定义分页列表查询-->
|
<select id="getPage" resultType="cn.gistack.sm.waterKnowledge.entity.TechnicalSpecification">
|
SELECT * FROM SM_TECHNICAL_SPECIFICATION
|
WHERE IS_DELETED = 0
|
<if test="ts.title != null and ts.title !='' ">
|
AND title LIKE CONCAT('%',#{ts.title},'%')
|
</if>
|
<if test="ts.startTime != null and ts.startTime !='' ">
|
and DATE_FORMAT(create_time,'%Y-%m-%d') = #{ts.startTime}
|
</if>
|
ORDER BY create_time DESC
|
</select>
|
</mapper>
|