|
@@ -17,10 +17,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
<result property="eventId" column="event_id"/>
|
|
<result property="eventId" column="event_id"/>
|
|
<result property="reserveplanType" column="reserveplan_type"/>
|
|
<result property="reserveplanType" column="reserveplan_type"/>
|
|
|
|
+ <result property="isGroupNotice" column="is_group_notice"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectNoticeVo">
|
|
<sql id="selectNoticeVo">
|
|
- select t.dept_id,event_id,reserveplan_type,
|
|
|
|
|
|
+ select t.dept_id,event_id,reserveplan_type,t.is_group_notice,
|
|
(select dept_name from sys_dept where dept_id=t.dept_id) dept_name,
|
|
(select dept_name from sys_dept where dept_id=t.dept_id) dept_name,
|
|
t.create_user_id, t.notice_id, ifnull(t.notice_title,"") notice_title, ifnull(t.notice_type,"") notice_type,
|
|
t.create_user_id, t.notice_id, ifnull(t.notice_title,"") notice_title, ifnull(t.notice_type,"") notice_type,
|
|
ifnull(t.notice_content,"") notice_content, t.status, t.create_by, t.create_time, t.update_by, t.update_time, t.remark
|
|
ifnull(t.notice_content,"") notice_content, t.status, t.create_by, t.create_time, t.update_by, t.update_time, t.remark
|
|
@@ -42,6 +43,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="noticeType != null and noticeType != ''">
|
|
<if test="noticeType != null and noticeType != ''">
|
|
AND notice_type = #{noticeType}
|
|
AND notice_type = #{noticeType}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isGroupNotice != null and isGroupNotice != ''">
|
|
|
|
+ AND is_group_notice = #{isGroupNotice}
|
|
|
|
+ </if>
|
|
<if test="createBy != null and createBy != ''">
|
|
<if test="createBy != null and createBy != ''">
|
|
AND create_by like concat('%', #{createBy}, '%')
|
|
AND create_by like concat('%', #{createBy}, '%')
|
|
</if>
|
|
</if>
|
|
@@ -49,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
order by create_time desc
|
|
order by create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <insert id="insertNotice" parameterType="SysNotice">
|
|
|
|
|
|
+ <insert id="insertNotice" parameterType="SysNotice" useGeneratedKeys="true" keyProperty="noticeId">
|
|
insert into sys_notice (
|
|
insert into sys_notice (
|
|
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
|
|
<if test="noticeTitle != null and noticeTitle != '' ">notice_title, </if>
|
|
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
|
|
<if test="noticeType != null and noticeType != '' ">notice_type, </if>
|
|
@@ -59,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="eventId != null and eventId != ''">event_id,</if>
|
|
<if test="eventId != null and eventId != ''">event_id,</if>
|
|
<if test="reserveplanType != null and reserveplanType != ''">reserveplan_type,</if>
|
|
<if test="reserveplanType != null and reserveplanType != ''">reserveplan_type,</if>
|
|
|
|
+ <if test="isGroupNotice != null and isGroupNotice != ''">is_group_notice,</if>
|
|
|
|
|
|
create_time
|
|
create_time
|
|
)values(
|
|
)values(
|
|
@@ -70,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="eventId != null and eventId != ''">#{eventId},</if>
|
|
<if test="eventId != null and eventId != ''">#{eventId},</if>
|
|
<if test="reserveplanType != null and reserveplanType != ''">#{reserveplanType},</if>
|
|
<if test="reserveplanType != null and reserveplanType != ''">#{reserveplanType},</if>
|
|
|
|
+ <if test="isGroupNotice != null and isGroupNotice != ''">#{isGroupNotice},</if>
|
|
sysdate()
|
|
sysdate()
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
@@ -82,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="noticeContent != null">notice_content = #{noticeContent}, </if>
|
|
<if test="noticeContent != null">notice_content = #{noticeContent}, </if>
|
|
<if test="status != null and status != ''">status = #{status}, </if>
|
|
<if test="status != null and status != ''">status = #{status}, </if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
|
+ <if test="isGroupNotice != null and isGroupNotice != ''">is_group_notice = #{isGroupNotice},</if>
|
|
update_time = sysdate()
|
|
update_time = sysdate()
|
|
</set>
|
|
</set>
|
|
where notice_id = #{noticeId}
|
|
where notice_id = #{noticeId}
|