| | |
| | | </select> |
| | | <select id="selectAllList" resultType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | select * from sys_user |
| | | where del_flag = 0 |
| | | |
| | | </select> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.system.SysUserVO"> |
| | | select u.user_id AS userId, u.deptId AS deptId, u.user_name AS userName, u.nick_name AS nickName, u.email AS email, u.avatar AS avatar,u.disable_remark AS disableRemark, |
| | |
| | | left join sys_role r on r.role_id = ur.role_id |
| | | LEFT JOIN t_template t1 on t1.id = u.templateId |
| | | WHERE u.del_flag = 0 |
| | | |
| | | <if test="query.patrolInspectorIds != null and query.patrolInspectorIds.size()>0"> |
| | | AND u.user_id IN |
| | | <foreach collection="query.patrolInspectorIds" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="query.nickName != null and query.nickName != ''"> |
| | | AND u.nick_name LIKE concat('%',#{query.nickName},'%') |
| | | </if> |
| | |
| | | u.login_date AS loginDate, u.create_by AS createBy, u.create_time AS createTime, u.remark AS remark,u.templateId |
| | | from sys_user u where u.templateId = #{templateId} and u.status = 0 and u.del_flag = 0 |
| | | </select> |
| | | <select id="selectUserByDeptId" resultType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | select * from sys_user |
| | | where deptId = #{id} |
| | | and status = 0 |
| | | and del_flag = 0 |
| | | </select> |
| | | <select id="pageListReport" resultType="com.ruoyi.system.applet.vo.TaskFinishListVO"> |
| | | select t1.*,t1.user_id as userId from |
| | | sys_user t1 |
| | | where 1=1 |
| | | <if test="query.projectIds != null and query.projectIds.size()>0"> |
| | | AND t1.deptId IN |
| | | <foreach collection="query.projectIds" separator="," item="id" open="(" close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | and t1.status = '0' |
| | | and t1.del_flag = '0' |
| | | and t1.dept_type = 1 |
| | | </select> |
| | | |
| | | <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId"> |
| | | insert into sys_user( |