diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index 40070fc..d9bcf12 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -320,8 +320,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SUM (CASE WHEN examine = 2 THEN 1 ELSE 0 END) AS ydj, SUM (CASE WHEN examine = 3 THEN 1 ELSE 0 END) AS ysb, SUM (CASE WHEN examine = 0 THEN 1 ELSE 0 END) AS ysh, - (SELECT SUM (CASE WHEN leavestate = 1 THEN 1 ELSE 0 END) - FROM td_leave t where t.user_id=s.user_id) as ylz + ( SELECT SUM ( CASE WHEN leavestate = 1 THEN 1 ELSE 0 END ) FROM td_leave t ) + as ylz FROM ${prefix}sys_user s