|
@@ -23,6 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="openId" column="open_id" />
|
|
<result property="openId" column="open_id" />
|
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
|
+
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
<result property="isSex" column="is_Sex"/>
|
|
<result property="isSex" column="is_Sex"/>
|
|
<result property="userState" column="user_state"/>
|
|
<result property="userState" column="user_state"/>
|
|
@@ -94,6 +96,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where u.open_id = #{openId} and u.del_flag = '0'
|
|
where u.open_id = #{openId} and u.del_flag = '0'
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectAppleUserByAppId" parameterType="String" resultMap="SysUserResult">
|
|
|
|
+ <include refid="selectUserVo" />
|
|
|
|
+ where u.app_id = #{appId} and u.del_flag = '0'
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
|
<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
|
|
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
|
|
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
|
|
from sys_user u
|
|
from sys_user u
|
|
@@ -151,7 +158,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1
|
|
select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
|
|
|
|
|
+
|
|
|
|
+ <insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
|
insert into sys_user(
|
|
insert into sys_user(
|
|
<if test="userId != null and userId != 0">user_id,</if>
|
|
<if test="userId != null and userId != 0">user_id,</if>
|
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|
|
<if test="deptId != null and deptId != 0">dept_id,</if>
|
|
@@ -165,7 +173,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="status != null and status != ''">status,</if>
|
|
<if test="status != null and status != ''">status,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="openId != null and openId != ''">open_id,</if>
|
|
<if test="openId != null and openId != ''">open_id,</if>
|
|
- <if test="remark != null and remark != ''">remark,</if>
|
|
|
|
|
|
+ <if test="appId != null and appId != ''">app_id,</if>
|
|
|
|
+
|
|
|
|
+ <if test="remark != null and remark != ''">remark,</if>
|
|
create_time
|
|
create_time
|
|
)values(
|
|
)values(
|
|
<if test="userId != null and userId != ''">#{userId},</if>
|
|
<if test="userId != null and userId != ''">#{userId},</if>
|
|
@@ -180,6 +190,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="status != null and status != ''">#{status},</if>
|
|
<if test="status != null and status != ''">#{status},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="openId != null and openId != ''">#{openId},</if>
|
|
<if test="openId != null and openId != ''">#{openId},</if>
|
|
|
|
+ <if test="appId != null and appId != ''">#{appId},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
sysdate()
|
|
sysdate()
|
|
)
|
|
)
|