| | |
| | | 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.status = 0 and u.del_flag = 0 |
| | | <if test="projectIds != null and projectIds.size() > 0"> |
| | | and u.dept_id in |
| | | and u.deptId in |
| | | <foreach item="item" collection="projectIds" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | <select id="selectUserCount" resultType="java.lang.Integer"> |
| | | select count(1) from sys_user where status = 0 and del_flag = 0 |
| | | <if test="deptType != null"> |
| | | and deptType = #{deptType} |
| | | </if> |
| | | <if test="projectIds != null and projectIds.size() > 0"> |
| | | and deptId in |
| | | <foreach item="item" collection="projectIds" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | |
| | | <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId"> |
| | | <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId"> |
| | | insert into sys_user( |
| | | <if test="userId != null and userId != 0">user_id,</if> |
| | | <if test="deptId != null and deptId != 0">dept_id,</if> |