Commit fdb09d6a by 墨竹

fix:优化好友列表sql

parent 1a85025c
...@@ -419,14 +419,13 @@ ...@@ -419,14 +419,13 @@
<select id="listByWxEnterpriseIdAndWxUserIdAndStatus" resultMap="BaseResultMap"> <select id="listByWxEnterpriseIdAndWxUserIdAndStatus" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from tab_haoban_external_clerk_related force index (staff_id) from tab_haoban_external_clerk_related
where staff_id = #{staffId,jdbcType=VARCHAR} where staff_id = #{staffId,jdbcType=VARCHAR}
and wx_enterprise_id = #{wxEnterpriseId} and wx_enterprise_id = #{wxEnterpriseId}
and status_flag in and status_flag in
<foreach collection="statusFlags" item="item" separator="," open="(" close=")"> <foreach collection="statusFlags" item="item" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>
order by update_time desc
</select> </select>
<update id="pushExternalByRelationKey"> <update id="pushExternalByRelationKey">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment