You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?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.epmet.dao.MemoWorkDiaryDao">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getPage" resultType="com.epmet.dto.MemoWorkDiaryDTO">
|
|
|
|
|
SELECT
|
|
|
|
|
a.ID,
|
|
|
|
|
a.CUSTOMER_ID,
|
|
|
|
|
a.WORK_TYPE,
|
|
|
|
|
a.CONTENT,
|
|
|
|
|
b.REMIND_TIME,
|
|
|
|
|
a.CREATED_TIME
|
|
|
|
|
FROM memo_work_diary a
|
|
|
|
|
INNER JOIN memo_attr b ON a.ID = b.ID AND b.DEL_FLAG = '0'
|
|
|
|
|
WHERE
|
|
|
|
|
a.DEL_FLAG = '0'
|
|
|
|
|
AND a.CREATED_BY = #{userId}
|
|
|
|
|
<if test='null != content and "" != content'>
|
|
|
|
|
AND a.CONTENT LIKE concat('%', #{content}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test='null != workType and "" != workType'>
|
|
|
|
|
AND a.WORK_TYPE LIKE concat('%', #{workType}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test='null != startTime and "" != startTime'>
|
|
|
|
|
AND DATE_FORMAT(a.CREATED_TIME, "%Y-%m-%d") >= #{startTime}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='null != endTime and "" != endTime'>
|
|
|
|
|
AND DATE_FORMAT(a.CREATED_TIME, "%Y-%m-%d") <= #{endTime}
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY a.CREATED_TIME DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|