Commit 5fd05f25 by naan1993

修复一处sql错误

parent 06a3be80
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
or name like CONCAT('%',#{name},'%')) or name like CONCAT('%',#{name},'%'))
</if> </if>
<if test="deptid != null and deptid != 0"> <if test="deptid != null and deptid != 0">
and deptid = #{deptid} or deptid in ( select id from dept where pids like CONCAT('%[', #{deptid}, ']%') ) and (deptid = #{deptid} or deptid in ( select id from dept where pids like CONCAT('%[', #{deptid}, ']%') ))
</if> </if>
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''"> <if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
and (createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59')) and (createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
......
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