Commit b8da1772 by 墨竹

refactor:修改可能会导致查询全表sql

parent 5badab5a
...@@ -315,10 +315,7 @@ ...@@ -315,10 +315,7 @@
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from tab_haoban_staff from tab_haoban_staff
where status_flag = 1 where status_flag = 1 and wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
and wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
</if>
<if test="staffName != null and staffName != ''"> <if test="staffName != null and staffName != ''">
and staff_name like CONCAT('%',#{staffName,jdbcType=VARCHAR},'%') and staff_name like CONCAT('%',#{staffName,jdbcType=VARCHAR},'%')
</if> </if>
......
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