You've already forked mine_clearance
项目上传
This commit is contained in:
31
basics/src/main/resources/mapper/NoticeMapper.xml
Normal file
31
basics/src/main/resources/mapper/NoticeMapper.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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.lightyears.basics.mapper.NoticeMapper">
|
||||
<select id="getList" resultType="com.lightyears.common.domain.dto.NoticeDto">
|
||||
SELECT
|
||||
id,
|
||||
title,
|
||||
type,
|
||||
`status`,
|
||||
create_date as createDate
|
||||
FROM
|
||||
sl_notice
|
||||
WHERE
|
||||
`status` IN (0, 1)
|
||||
<if test="type != null and type > -1">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="playerId != null and playerId > 0">
|
||||
and player_id = #{playerId}
|
||||
</if>
|
||||
order by create_date desc
|
||||
</select>
|
||||
<select id="getContent" resultType="String">
|
||||
SELECT
|
||||
content
|
||||
FROM
|
||||
sl_notice
|
||||
WHERE
|
||||
id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user