|
|
@@ -43,10 +43,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="corpId" column="corp_id" />
|
|
|
<result property="informationId" column="information_id" />
|
|
|
<result property="sort" column="sort" />
|
|
|
+ <result property="isExclusive" column="is_exclusive" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectQwContactWayVo">
|
|
|
- select id, type,corp_id,information_id, name,welcome_json, remark, skip_verify, state, user_ids, add_num, delete_num, num, qr_code, config_id, is_del, create_time, company_id, is_welcome, text_content, image_pic_url, is_user_limit, is_span_welcome, is_close_welcome, close_welcome_word, is_tag, tags, is_remark, remark_status, description, is_description, spare_user_ids, group_id, user_limit_json, user_time_json, user_type,sort
|
|
|
+ select id, type,corp_id,information_id, name,welcome_json, remark, skip_verify, state, user_ids, add_num, delete_num, num, qr_code,
|
|
|
+ config_id, is_del, create_time, company_id, is_welcome, text_content, image_pic_url, is_user_limit, is_span_welcome, is_close_welcome,
|
|
|
+ close_welcome_word, is_tag, tags, is_remark, remark_status, description, is_description, spare_user_ids, group_id, user_limit_json,
|
|
|
+ user_time_json, user_type,sort,is_exclusive
|
|
|
from qw_contact_way
|
|
|
</sql>
|
|
|
|
|
|
@@ -84,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userLimitJson != null and userLimitJson != ''"> and user_limit_json = #{userLimitJson}</if>
|
|
|
<if test="userTimeJson != null and userTimeJson != ''"> and user_time_json = #{userTimeJson}</if>
|
|
|
<if test="userType != null "> and user_type = #{userType}</if>
|
|
|
+ <if test="isExclusive != null "> and is_exclusive = #{isExclusive}</if>
|
|
|
</where> order by sort asc,create_time desc
|
|
|
</select>
|
|
|
|
|
|
@@ -130,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="welcomeJson != null">welcome_json,</if>
|
|
|
<if test="corpId != null">corp_id,</if>
|
|
|
<if test="informationId != null">information_id,</if>
|
|
|
+ <if test="isExclusive != null">is_exclusive,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="type != null">#{type},</if>
|
|
|
@@ -167,6 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="welcomeJson != null">#{welcomeJson},</if>
|
|
|
<if test="corpId != null">#{corpId},</if>
|
|
|
<if test="informationId != null">#{informationId},</if>
|
|
|
+ <if test="isExclusive != null">#{isExclusive},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -209,6 +216,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="corpId != null">corp_id = #{corpId},</if>
|
|
|
<if test="informationId != null">information_id = #{informationId},</if>
|
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
|
+ <if test="isExclusive != null">is_exclusive = #{isExclusive},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|