| | |
| | | <select id="selectIdByPhone" resultType="java.lang.Long"> |
| | | select user_id from sys_user where phonenumber = #{phonenumber} and status = 0 and del_flag = 0 |
| | | </select> |
| | | <select id="selectUserListByIds" resultType="com.ruoyi.common.core.domain.entity.SysUser"> |
| | | select * from sys_user where open_id IS NOT NULL AND user_id in |
| | | <foreach item="userId" collection="userIds" separator="," close=")" open="("> |
| | | #{userId} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <insert id="insertUser" parameterType="com.ruoyi.common.core.domain.entity.SysUser" useGeneratedKeys="true" keyProperty="userId"> |
| | | <insert id="insertUser" parameterType="com.ruoyi.common.core.domain.entity.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> |