forum-backend/target/classes/mapper/BmsTipMapper.xml

11 lines
396 B
XML
Raw Normal View History

2023-06-14 20:12:48 +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="com.yovinchen.forum.mapper.BmsTipMapper">
<select id="getRandomTip" resultType="com.yovinchen.forum.model.entity.BmsTip">
select *
from bms_tip
order by rand()
limit 1
</select>
</mapper>