| | |
| | | u.phonenumber, u.sex, u.status, |
| | | u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark from sys_user u |
| | | where u.del_flag = '0' |
| | | <if test="orgid != null"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="userId != null"> |
| | | AND u.user_id = #{userId} |
| | | </if> |
| | |
| | | |
| | | <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"> |