|
@@ -42,10 +42,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="welcomeJson" column="welcome_json" />
|
|
|
<result property="corpId" column="corp_id" />
|
|
|
<result property="informationId" column="information_id" />
|
|
|
+ <result property="sort" column="sort" />
|
|
|
</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 from qw_contact_way
|
|
|
+ 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
|
|
|
+ from qw_contact_way
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectQwContactWayList" parameterType="QwContactWay" resultMap="QwContactWayResult">
|
|
@@ -82,7 +84,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>
|
|
|
- </where> order by id desc
|
|
|
+ </where> order by sort asc,create_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectQwContactWayById" parameterType="Long" resultMap="QwContactWayResult">
|
|
@@ -206,6 +208,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="welcomeJson != null">welcome_json = #{welcomeJson},</if>
|
|
|
<if test="corpId != null">corp_id = #{corpId},</if>
|
|
|
<if test="informationId != null">information_id = #{informationId},</if>
|
|
|
+ <if test="sort != null">sort = #{sort},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|