|
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="status" column="status" />
|
|
<result property="status" column="status" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
|
|
+ <result property="releaseTime" column="release_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
@@ -20,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectNoticeVo">
|
|
<sql id="selectNoticeVo">
|
|
- select d.notice_id, d.notice_title, d.notice_type, d.notice_content, d.status, d.create_by, d.create_time, d.update_by, d.update_time, d.remark, d.is_pinned, d.dept_id
|
|
|
|
|
|
+ select d.notice_id, d.release_time, d.notice_title, d.notice_type, d.notice_content, d.status, d.create_by, d.create_time, d.update_by, d.update_time, d.remark, d.is_pinned, d.dept_id
|
|
from sys_notice d
|
|
from sys_notice d
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
@@ -67,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
<if test="deptId != null">dept_id,</if>
|
|
|
|
+ <if test="releaseTime != null">release_time,</if>
|
|
create_time
|
|
create_time
|
|
)values(
|
|
)values(
|
|
<if test="noticeId != null and noticeId != '' ">#{noticeId}, </if>
|
|
<if test="noticeId != null and noticeId != '' ">#{noticeId}, </if>
|
|
@@ -77,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
<if test="deptId != null">#{deptId},</if>
|
|
|
|
+ <if test="releaseTime != null">#{releaseTime},</if>
|
|
sysdate
|
|
sysdate
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
@@ -91,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="isPinned != null and isPinned != ''">is_pinned = #{isPinned},</if>
|
|
<if test="isPinned != null and isPinned != ''">is_pinned = #{isPinned},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
+ <if test="releaseTime != null">release_time = #{releaseTime},</if>
|
|
update_time = sysdate
|
|
update_time = sysdate
|
|
</set>
|
|
</set>
|
|
where notice_id = #{noticeId}
|
|
where notice_id = #{noticeId}
|