You've already forked mine_clearance
32 lines
925 B
XML
32 lines
925 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.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>
|