rtos-mini-service4/mapper/target/classes/mappers/admin/NoviceIntroductionAdminMapp...

21 lines
667 B
XML

<?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.haitongauto.mapper.admin.NoviceIntroductionAdminMapper">
<!--根据分类sort获取操作说明: sort-->
<select id="getNoviceIntroductionBySort" resultType="com.haitongauto.models.pojo.NoviceIntroduction">
select
id,
sort,
title,
content,
sequence_number,
create_time
from applet_novice_introduction
where is_del=0 and sort=#{sort}
order by create_time desc
limit 1
</select>
</mapper>