解决用户被禁用之后单据不展示的bug

This commit is contained in:
季圣华
2021-11-03 00:00:21 +08:00
parent df6a80c390
commit 9905063c80
3 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
<select id="selectByConditionLog" parameterType="com.jsh.erp.datasource.entities.LogExample" resultMap="ResultExMap">
select l.*,u.username userName
FROM jsh_log l
left join jsh_user u on l.user_id = u.id and ifnull(u.status,'0') not in('1','2')
left join jsh_user u on l.user_id = u.id and ifnull(u.Status,'0') !='1'
where 1=1
<if test="operation != null">
<bind name="bindOperation" value="'%'+operation+'%'"/>
@@ -43,7 +43,7 @@
SELECT
COUNT(1)
FROM jsh_log l
left join jsh_user u on l.user_id = u.id and ifnull(u.status,'0') not in('1','2')
left join jsh_user u on l.user_id = u.id and ifnull(u.Status,'0') !='1'
WHERE 1=1
<if test="operation != null">
<bind name="bindOperation" value="'%'+operation+'%'"/>