| | |
| | | <result property="userType" column="user_type"/> |
| | | <result property="searchscope" column="searchscope"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <association property="dept" column="dept_id" javaType="com.ruoyi.common.core.domain.entity.SysDept" |
| | | resultMap="deptResult"/> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> |
| | |
| | | u.create_time, |
| | | u.remark, |
| | | u.guid, |
| | | u.orgid, |
| | | d.dept_id, |
| | | d.parent_id, |
| | | d.ancestors, |
| | |
| | | where u.del_flag = '0' |
| | | <if test="userId != null"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | |
| | | where u.del_flag = '0' |
| | | <if test="userId != null"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | |
| | | |
| | | <select id="selectUserByUserNameByCondition" parameterType="String" resultMap="SysUserResult"> |
| | | <include refid="selectUserVo"/> |
| | | <where> |
| | | u.del_flag = '0' |
| | | where 1=1 |
| | | AND u.del_flag = '0' |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name = #{userName} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="deptId != null and deptId != ''"> |
| | | AND u.dept_id = #{deptId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectUserById" parameterType="Long" resultMap="SysUserResult"> |
| | |
| | | <if test="jobPhone != null and jobPhone != ''">job_phone,</if> |
| | | <if test="birthday != null ">birthday,</if> |
| | | <if test="hisUserId != null and hisUserId != ''">his_user_id,</if> |
| | | <if test="orgid != null and orgid != ''">orgid,</if> |
| | | <if test="deptCode != null and deptCode != ''">dept_code,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | create_time |
| | |
| | | <if test="jobPhone != null and jobPhone != ''">#{jobPhone},</if> |
| | | <if test="birthday != null and birthday != ''">#{birthday},</if> |
| | | <if test="hisUserId != null and hisUserId != ''">#{hisUserId},</if> |
| | | <if test="orgid != null and orgid != ''">#{orgid},</if> |
| | | <if test="deptCode != null and deptCode != ''">#{deptCode},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | sysdate() |
| | |
| | | <if test="idCard != null and idCard != ''">id_card=#{idCard},</if> |
| | | <if test="jobPhone != null and jobPhone != ''">job_phone=#{jobPhone},</if> |
| | | <if test="birthday != null ">birthday=#{birthday},</if> |
| | | <if test="orgid != null ">orgid=#{orgid},</if> |
| | | <if test="title != null and title != ''"> |
| | | title = #{title}, |
| | | </if> |