Commit b8da1772 by 墨竹

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

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