share-platform/renren-admin/src/main/resources/mapper/reminders/TRemindersDao.xml

36 lines
1.6 KiB
XML
Raw Normal View History

<?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="io.renren.modules.reminders.dao.TRemindersDao">
<resultMap type="io.renren.modules.reminders.entity.TRemindersEntity" id="tRemindersMap">
<result property="id" column="id"/>
<result property="instanceId" column="instance_id"/>
<result property="processTaskId" column="process_task_id"/>
<result property="processTaskStats" column="process_task_stats"/>
<result property="applyNumber" column="apply_number"/>
<result property="processType" column="process_type"/>
<result property="sponsor" column="sponsor"
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
<result property="recipient" column="recipient"
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
<result property="remindersTime" column="reminders_time"/>
<result property="content" column="content"/>
<result property="additional1" column="additional1"/>
<result property="additional2" column="additional2"/>
<result property="additional3" column="additional3"/>
</resultMap>
2022-12-01 14:21:44 +08:00
<select id="selectRemindersTime" resultType="java.util.Map">
SELECT
DATE_FORMAT( reminders_time, '%Y-%m-%d' ) AS reminders_time
FROM
t_reminders
WHERE
process_task_id = #{taskId}
ORDER BY
create_date DESC
LIMIT 1;
</select>
</mapper>