feat: 通知公告模块
通知公告模块编写。 完成代码生成部分的bug修改
This commit is contained in:
67
src/main/resources/mapper/NoticeMapper.xml
Normal file
67
src/main/resources/mapper/NoticeMapper.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<?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.youlai.system.mapper.NoticeMapper">
|
||||
|
||||
<!-- 获取通知公告分页列表 -->
|
||||
<select id="getNoticePage" resultType="com.youlai.system.model.vo.NoticeVO">
|
||||
SELECT
|
||||
title,
|
||||
content,
|
||||
notice_type,
|
||||
release,
|
||||
priority,
|
||||
tar_type,
|
||||
send_status,
|
||||
send_time
|
||||
FROM
|
||||
sys_notice
|
||||
<where>
|
||||
<if test="queryParams.id != null">
|
||||
AND id = #{queryParams.id}
|
||||
</if>
|
||||
<if test="queryParams.title != null and queryParams.title != ''">
|
||||
AND title = #{queryParams.title}
|
||||
</if>
|
||||
<if test="queryParams.content != null and queryParams.content != ''">
|
||||
AND content = #{queryParams.content}
|
||||
</if>
|
||||
<if test="queryParams.noticeType != null">
|
||||
AND notice_type = #{queryParams.noticeType}
|
||||
</if>
|
||||
<if test="queryParams.release != null">
|
||||
AND release = #{queryParams.release}
|
||||
</if>
|
||||
<if test="queryParams.priority != null">
|
||||
AND priority = #{queryParams.priority}
|
||||
</if>
|
||||
<if test="queryParams.tarType != null">
|
||||
AND tar_type = #{queryParams.tarType}
|
||||
</if>
|
||||
<if test="queryParams.sendStatus != null">
|
||||
AND send_status = #{queryParams.sendStatus}
|
||||
</if>
|
||||
<if test="queryParams.sendTime != null">
|
||||
AND send_time = #{queryParams.sendTime}
|
||||
</if>
|
||||
<if test="queryParams.recallTime != null">
|
||||
AND recall_time = #{queryParams.recallTime}
|
||||
</if>
|
||||
<if test="queryParams.createBy != null">
|
||||
AND create_by = #{queryParams.createBy}
|
||||
</if>
|
||||
<if test="queryParams.createTime != null">
|
||||
AND create_time = #{queryParams.createTime}
|
||||
</if>
|
||||
<if test="queryParams.updateBy != null">
|
||||
AND update_by = #{queryParams.updateBy}
|
||||
</if>
|
||||
<if test="queryParams.updateTime != null">
|
||||
AND update_time = #{queryParams.updateTime}
|
||||
</if>
|
||||
<if test="queryParams.isDelete != null">
|
||||
AND is_delete = #{queryParams.isDelete}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
34
src/main/resources/mapper/NoticeStatusMapper.xml
Normal file
34
src/main/resources/mapper/NoticeStatusMapper.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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.youlai.system.mapper.NoticeStatusMapper">
|
||||
|
||||
<!-- 获取用户公告状态分页列表 -->
|
||||
<select id="getNoticeStatusPage" resultType="com.youlai.system.model.vo.NoticeStatusVO">
|
||||
SELECT
|
||||
id,
|
||||
notice_id,
|
||||
user_id,
|
||||
read_status,
|
||||
read_tiem
|
||||
FROM
|
||||
sys_notice_status
|
||||
<where>
|
||||
<if test="queryParams.id != null">
|
||||
AND id = #{queryParams.id}
|
||||
</if>
|
||||
<if test="queryParams.noticeId != null">
|
||||
AND notice_id = #{queryParams.noticeId}
|
||||
</if>
|
||||
<if test="queryParams.userId != null">
|
||||
AND user_id = #{queryParams.userId}
|
||||
</if>
|
||||
<if test="queryParams.readStatus != null">
|
||||
AND read_status = #{queryParams.readStatus}
|
||||
</if>
|
||||
<if test="queryParams.readTiem != null">
|
||||
AND read_tiem = #{queryParams.readTiem}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user