Files
CyyNote/cyynote-backend/target/classes/wood/SqlMapper.xml
T
2026-04-29 14:58:02 +08:00

31 lines
930 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<mapper namespace="webapp.dso"
db="db">
<sql id="appx_get" return="int" remarks="随便取条数据的ID">
select app_id from appx limit 1
</sql>
<sql id="appx_get0" return="Integer" remarks="随便取条数据的ID">
<![CDATA[
select app_id from appx where app_id < 1 limit 1
]]>
</sql>
<sql id="appx_get2" return="AppxModel" remarks="根据id取条数据">
select * from appx where app_id = @{app_id:int} limit 1
</sql>
<sql id="appx_getlist" return="List[AppxModel]">
select * from appx where app_id > @{app_id:int} order by app_id asc limit 4
</sql>
<sql id="appx_getids" return="List[Integer]">
select app_id from appx limit 4
</sql>
<sql id="appx_getids2" return="Set[Integer]">
select app_id from appx limit 4
</sql>
</mapper>