diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml index fca0b1ae..13cd5c5b 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml @@ -157,6 +157,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/XhpcUserPrivilegeMapper.xml b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/XhpcUserPrivilegeMapper.xml index 72d1ed2b..c16136d0 100644 --- a/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/XhpcUserPrivilegeMapper.xml +++ b/ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/XhpcUserPrivilegeMapper.xml @@ -37,11 +37,12 @@ select - charging_station_id chargingStationId, `name `,operator_id operatorId + charging_station_id chargingStationId, `name`,operator_id operatorId from xhpc_charging_station WHERE del_flag = 0 diff --git a/xhpc-modules/xhpc-user/src/main/resources/mapper/XhpcUserMapper.xml b/xhpc-modules/xhpc-user/src/main/resources/mapper/XhpcUserMapper.xml index 58ac629f..2a5a6262 100644 --- a/xhpc-modules/xhpc-user/src/main/resources/mapper/XhpcUserMapper.xml +++ b/xhpc-modules/xhpc-user/src/main/resources/mapper/XhpcUserMapper.xml @@ -42,7 +42,7 @@ sex = #{sex}, avatar = #{avatar}, password = #{password}, - data_power_type = #{dataPowerType}, + data_power_type = #{dataPowerType}, status = #{status}, del_flag = #{delFlag}, login_ip = #{loginIp}, @@ -88,7 +88,7 @@ select su.user_id userId,su.user_name userName, - su.nick_name nickName, su.email,su.sex, + su.nick_name nickName, su.email,su.sex,su.avatar, su.create_by createBy ,su.create_time createTime,xo.operator_id operatorId, xo.`name` operatorName,su.`status` , CASE WHEN su.`status` = 0 THEN '正常' else '禁用' end statusName, @@ -238,7 +238,7 @@ user_id, dept_id, user_name, - user_type, + user_type, nick_name, email, avatar, @@ -256,7 +256,7 @@ #{userId}, #{deptId}, #{userName}, - #{userTpe}, + #{userType}, #{nickName}, #{email}, #{avatar}, @@ -273,30 +273,6 @@ ) - - update sys_user - - dept_id = #{deptId}, - user_name = #{userName}, - nick_name = #{nickName}, - email = #{email}, - phonenumber = #{phonenumber}, - operator_id = #{operatorId}, - internet_user_id = #{internetUserId}, - data_power_type = #{dataPowerType}, - sex = #{sex}, - avatar = #{avatar}, - password = #{password}, - status = #{status}, - login_ip = #{loginIp}, - login_date = #{loginDate}, - update_by = #{updateBy}, - remark = #{remark}, - update_time = sysdate() - - where user_id = #{userId} - - insert into sys_user_role(user_id, role_id) values