|
@@ -21,10 +21,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
<result property="noticeType" column="notice_type" />
|
|
|
<result property="taskId" column="task_id" />
|
|
|
+ <result property="taskStatus" column="task_status" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectNoticeVo">
|
|
|
- select notice_id, title, content, is_publish, publish_time, click_num, upload_photo, publish_by, create_by, create_time, notice_type , update_by, update_time, pub_organize, pub_organizeId from hndj_daily_notice
|
|
|
+ select notice_id, title, content, is_publish, publish_time, click_num, upload_photo, publish_by, create_by, create_time, notice_type , update_by, update_time, pub_organize, pub_organizeId ,task_status from hndj_daily_notice
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectNoticeList" parameterType="Notice" resultMap="NoticeResult">
|
|
@@ -45,8 +46,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null "> and h.create_time = #{createTime}</if>
|
|
|
<if test="updateBy != null "> and h.update_by = #{updateBy}</if>
|
|
|
<if test="updateTime != null "> and h.update_time = #{updateTime}</if>
|
|
|
+ <if test="taskStatus != null and taskStatus != ''"> and h.task_status = #{taskStatus}</if>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
- ${params.dataScope}
|
|
|
+ /*${params.dataScope}*/
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -66,7 +68,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertNotice" parameterType="Notice" useGeneratedKeys="true" keyProperty="noticeId">
|
|
|
- insert into hndj_daily_notice <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ insert into hndj_daily_notice
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="noticeId != null ">notice_id,</if>
|
|
|
<if test="title != null and title != ''">title,</if>
|
|
|
<if test="content != null and content != ''">content,</if>
|
|
@@ -78,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
<if test="createTime != null ">create_time,</if>
|
|
|
<if test="noticeType != null ">notice_type,</if>
|
|
|
+ <if test="taskStatus != null and taskStatus != ''">task_status,</if>
|
|
|
<!-- <if test="taskId != null ">task_id,</if>-->
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -92,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
<if test="createTime != null ">#{createTime},</if>
|
|
|
<if test="noticeType != null ">#{noticeType},</if>
|
|
|
+ <if test="taskStatus != null and taskStatus != ''">#{taskStatus},</if>
|
|
|
<!-- <if test="taskId != null ">#{taskId},</if>-->
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -109,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null ">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
|
|
<if test="noticeType != null ">notice_type = #{noticeType},</if>
|
|
|
+ <if test="taskStatus != null and taskStatus != ''">task_status = #{taskStatus},</if>
|
|
|
<!-- <if test="taskId != null ">task_id = #{taskId},</if>-->
|
|
|
</trim>
|
|
|
where notice_id = #{noticeId}
|