2023-01-03 15:34:43 +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="io.renren.modules.date_snapshot.dao.SysDateSnapshotDao">
|
|
|
|
|
|
|
|
<resultMap type="io.renren.modules.date_snapshot.entity.SysDateSnapshotEntity" id="sysDateSnapshotMap">
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<result property="type" column="type"/>
|
|
|
|
<result property="creator" column="creator"/>
|
|
|
|
<result property="createDate" column="create_date"/>
|
|
|
|
<result property="snapshot" column="snapshot"
|
|
|
|
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
|
|
|
</resultMap>
|
|
|
|
|
2023-01-04 14:45:55 +08:00
|
|
|
<resultMap type="io.renren.modules.date_snapshot.dto.SysDateSnapshotDTO" id="sysDateSnapshotDtoMap">
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<result property="type" column="type"/>
|
|
|
|
<result property="creator" column="creator"/>
|
|
|
|
<result property="createDate" column="create_date"/>
|
|
|
|
<result property="snapshot" column="snapshot"
|
|
|
|
typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
|
|
|
</resultMap>
|
|
|
|
|
2023-01-04 17:42:58 +08:00
|
|
|
<select id="selectForFlag" resultMap="sysDateSnapshotDtoMap">
|
2023-01-04 15:14:39 +08:00
|
|
|
SELECT
|
|
|
|
*
|
|
|
|
FROM
|
|
|
|
sys_date_snapshot
|
|
|
|
WHERE
|
|
|
|
type = ${type}
|
|
|
|
ORDER BY
|
|
|
|
create_date DESC
|
|
|
|
LIMIT 1;
|
|
|
|
</select>
|
|
|
|
|
2023-01-03 15:34:43 +08:00
|
|
|
</mapper>
|