| | |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.system.ProjectDeptListVO"> |
| | | select t1.*,count(t2.user_id) as userCount from |
| | | t_project_dept t1 |
| | | left join sys_user t2 on t2.deptId = t1.id |
| | | left join sys_user t2 on t2.deptId = t1.id and t2.deptType =1 |
| | | where 1=1 |
| | | <if test="query.projectName != null and query.projectName != ''"> |
| | | and t1.project_name like concat('%',#{query.projectName},'%') |
| | | <if test="query.deptName != null and query.deptName != ''"> |
| | | and t1.project_name like concat('%',#{query.deptName},'%') |
| | | </if> |
| | | <if test="query.status != null and query.status != ''"> |
| | | and t1.status = #{query.status} |
| | | </if> |
| | | and t1.`disabled` = = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | and t2.deptType =1 |
| | | and t1.`disabled` = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | |
| | | group by t1.id |
| | | order by t1.create_time desc |
| | | </select> |