|
@@ -17,10 +17,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="readType" column="read_type"/>
|
|
|
+ <result property="annoType" column="anno_type"/>
|
|
|
+ <result property="bindId" column="bind_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAnnouncementVo">
|
|
|
- select id, announcement_title, announcement_body, validity_start_time, validity_end_time, announcement_img, user_id, create_by, create_time, update_by, update_time from jnb_announcement
|
|
|
+ select id, announcement_title, announcement_body, validity_start_time, validity_end_time, announcement_img, user_id, create_by, create_time, update_by, update_time, anno_type, bind_id from jnb_announcement
|
|
|
</sql>
|
|
|
|
|
|
<sql id="selectList">
|
|
@@ -60,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
a.validity_end_time,
|
|
|
a.announcement_img,
|
|
|
a.user_id,
|
|
|
+ a.anno_type,
|
|
|
+ a.bind_id,
|
|
|
uc.nick_name as create_by,
|
|
|
a.create_time,
|
|
|
uu.nick_name as update_by,
|
|
@@ -84,6 +88,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
+ <if test="annoType != null and annoType != ''">anno_type,</if>
|
|
|
+ <if test="bindId != null and bindId != ''">bind_id,</if>
|
|
|
del_flag,
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -98,6 +104,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="annoType != null and annoType != ''">#{annoType},</if>
|
|
|
+ <if test="bindId != null and bindId != ''">#{bindId},</if>
|
|
|
1,
|
|
|
</trim>
|
|
|
</insert>
|