日志查询接口:支持显示已经被删除的用户的用户名

This commit is contained in:
jishenghua
2024-02-21 23:42:31 +08:00
parent 5fc14dcfb0
commit 8b2dee6318

View File

@@ -9,7 +9,7 @@
<select id="selectByConditionLog" parameterType="com.jsh.erp.datasource.entities.LogExample" resultMap="ResultExMap"> <select id="selectByConditionLog" parameterType="com.jsh.erp.datasource.entities.LogExample" resultMap="ResultExMap">
select l.*,u.login_name,u.username userName select l.*,u.login_name,u.username userName
FROM jsh_log l FROM jsh_log l
left join jsh_user u on l.user_id = u.id and ifnull(u.Status,'0') !='1' left join jsh_user u on l.user_id = u.id
left join jsh_tenant t on l.tenant_id=t.tenant_id left join jsh_tenant t on l.tenant_id=t.tenant_id
where 1=1 where 1=1
<if test="operation != null"> <if test="operation != null">
@@ -49,7 +49,7 @@
SELECT SELECT
COUNT(1) COUNT(1)
FROM jsh_log l FROM jsh_log l
left join jsh_user u on l.user_id = u.id and ifnull(u.Status,'0') !='1' left join jsh_user u on l.user_id = u.id
left join jsh_tenant t on l.tenant_id=t.tenant_id left join jsh_tenant t on l.tenant_id=t.tenant_id
WHERE 1=1 WHERE 1=1
<if test="operation != null"> <if test="operation != null">