|
@@ -25,6 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="dingDeptId" column="ding_dept_id" />
|
|
|
<result property="dingUnionId" column="ding_union_id"/>
|
|
|
+ <result property="nlpName" column="nlp_name"/>
|
|
|
+ <result property="nlpPwd" column="nlp_pwd"/>
|
|
|
<association property="dept" javaType="SysDept" resultMap="deptResult" />
|
|
|
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
|
|
</resultMap>
|
|
@@ -51,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<sql id="selectUserVo">
|
|
|
select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
|
|
|
d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,
|
|
|
- r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status
|
|
|
+ r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status, u.nlp_name, u.nlp_pwd
|
|
|
from sys_user u
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
|
left join sys_user_role ur on u.user_id = ur.user_id
|
|
@@ -59,7 +61,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
|
|
|
- select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
|
|
|
+ select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader ,
|
|
|
+ u.nlp_name, u.nlp_pwd
|
|
|
+ from sys_user u
|
|
|
left join sys_dept d on u.dept_id = d.dept_id
|
|
|
where u.del_flag = '0'
|
|
|
<if test="userId != null and userId != 0">
|
|
@@ -160,6 +164,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
<if test="dingDeptId != null and dingDeptId != ''">ding_dept_id,</if>
|
|
|
<if test="dingUnionId != null and dingUnionId != ''">ding_union_id,</if>
|
|
|
+ <if test="nlpName != null and nlpName != ''">nlp_name,</if>
|
|
|
+ <if test="nlpPwd != null and nlpPwd != ''">nlp_pwd,</if>
|
|
|
create_time
|
|
|
)values(
|
|
|
<if test="userId != null and userId != ''">#{userId},</if>
|
|
@@ -176,7 +182,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
<if test="dingDeptId != null and dingDeptId != ''">#{dingDeptId},</if>
|
|
|
<if test="dingUnionId != null and dingUnionId != ''">#{dingUnionId},</if>
|
|
|
- sysdate()
|
|
|
+ <if test="nlpName != null and nlpName != ''">#{nlpName},</if>
|
|
|
+ <if test="nlpPwd != null and nlpPwd != ''">#{nlpPwd},</if>
|
|
|
+ sysdate()
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -198,7 +206,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="dingDeptId != null and dingDeptId != ''">ding_dept_id = #{dingDeptId},</if>
|
|
|
<if test="dingUnionId != null and dingUnionId != ''">ding_union_id = #{dingUnionId},</if>
|
|
|
- update_time = sysdate()
|
|
|
+ <if test="nlpName != null and nlpName != ''">nlp_name = #{nlpName},</if>
|
|
|
+ <if test="nlpPwd != null and nlpPwd != ''">nlp_pwd = #{nlpPwd},</if>
|
|
|
+ update_time = sysdate()
|
|
|
</set>
|
|
|
where user_id = #{userId}
|
|
|
</update>
|