B端 部分接口
This commit is contained in:
@@ -233,6 +233,12 @@
|
||||
<if test="record.closeUserId != null">
|
||||
close_user_id = #{record.closeUserId},
|
||||
</if>
|
||||
<if test="record.joinBlackReason != null">
|
||||
join_black_reason = #{record.joinBlackReason},
|
||||
</if>
|
||||
<if test="record.removeBlackReason != null">
|
||||
remove_black_reason = #{record.removeBlackReason},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{record.id}
|
||||
</update>
|
||||
@@ -336,4 +342,45 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getBlackList" resultType="com.cool.store.dto.partner.PartnerBlackListDTO" >
|
||||
select
|
||||
b.partner_id as partnerId,
|
||||
b.mobile as mobile,
|
||||
b.username as partnerUserName,
|
||||
a.id as lineId,
|
||||
a.create_time as createTime,
|
||||
a.close_user_id as closeUserId,
|
||||
a.close_time as closeTime,
|
||||
a.join_black_reason as joinBlackReason
|
||||
from hy_partner_line_info a inner join hy_partner_user_info b where a.partner_id = b.partner_id
|
||||
where deleted = 0
|
||||
and line_status = 3
|
||||
<if test="keyWord!=null and keyWord !=''">
|
||||
and (b.username like concat('%', #{keyWord}, '%') or b.mobile like concat('%', #{keyWord}, '%'))
|
||||
</if>
|
||||
<if test="intentArea!=null and intentArea!=''">
|
||||
and b.want_shop_area = #{intentArea}
|
||||
</if>
|
||||
<if test="acceptAdjustType!=null">
|
||||
and b.accept_adjust_type =#{acceptAdjustType}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<update id="joinAndRemoveBlack">
|
||||
update hy_partner_line_info
|
||||
<set>
|
||||
<if test="line_status != null">
|
||||
line_status = #{status},
|
||||
</if>
|
||||
<if test="joinCause != null and joinCause!=''">
|
||||
join_black_reason = #{joinCause},
|
||||
</if>
|
||||
<if test="removeReason != null and removeReason!=''">
|
||||
remove_black_reason = #{removeReason},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{lineId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user