| | |
| | | and username = #{username} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <!-- 修改用户部门code --> |
| | | <update id="updateUserDepart"> |
| | | UPDATE sys_user SET org_code = #{orgCode} where username = #{username} |
| | |
| | | <select id="getUserByPhone" resultType="org.jeecg.modules.system.entity.SysUser"> |
| | | select * from sys_user where phone = #{phone} and del_flag = 0 |
| | | </select> |
| | | |
| | | |
| | | <!-- 根据邮箱查询用户信息 --> |
| | | <select id="getUserByEmail" resultType="org.jeecg.modules.system.entity.SysUser"> |
| | | select * from sys_user where email = #{email} and del_flag = 0 |
| | |
| | | #{roleCode} |
| | | </foreach> |
| | | </select> |
| | | </mapper> |
| | | <select id="getUserByWorkShopDepartId" resultType="org.jeecg.modules.system.entity.SysUser"> |
| | | select * from sys_user where del_flag = 0 and id in (select user_id from eam_base_factory_user where factory_id = #{baseFactoryId}) |
| | | <if test="username!=null and username!=''"> |
| | | and username = #{username} |
| | | </if> |
| | | </select> |
| | | </mapper> |