get token
This commit is contained in:
parent
517b804dbd
commit
852705bff1
|
|
@ -1,301 +0,0 @@
|
||||||
package com.bonus.canteen.core.auth.user.entity;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
|
||||||
import com.bonus.canteen.core.common.encrypt.SM4EncDecHandler;
|
|
||||||
import io.swagger.annotations.ApiModel;
|
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
//@TableName(
|
|
||||||
// value = "sys_user",
|
|
||||||
// autoResultMap = true
|
|
||||||
//)
|
|
||||||
@ApiModel("商家管理员用户信息")
|
|
||||||
public class MgrUser extends Model<MgrUser> {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
// @TableId
|
|
||||||
@ApiModelProperty("主键id")
|
|
||||||
private Long id;
|
|
||||||
@ApiModelProperty("用户编号")
|
|
||||||
private Long userId;
|
|
||||||
@ApiModelProperty("用户名")
|
|
||||||
private String username;
|
|
||||||
@ApiModelProperty("密码")
|
|
||||||
private String password;
|
|
||||||
private Long custId;
|
|
||||||
private Long areaId;
|
|
||||||
@ApiModelProperty("真实姓名")
|
|
||||||
// @TableField(
|
|
||||||
// value = "real_name",
|
|
||||||
// typeHandler = SM4EncDecHandler.class
|
|
||||||
// )
|
|
||||||
private String realName;
|
|
||||||
@ApiModelProperty("随机盐")
|
|
||||||
private String salt;
|
|
||||||
@ApiModelProperty("电话号码")
|
|
||||||
// @TableField(
|
|
||||||
// value = "phone",
|
|
||||||
// typeHandler = SM4EncDecHandler.class
|
|
||||||
// )
|
|
||||||
private String phone;
|
|
||||||
@ApiModelProperty("电话号码后缀")
|
|
||||||
// @TableField(
|
|
||||||
// value = "phone_suffix",
|
|
||||||
// typeHandler = SM4EncDecHandler.class
|
|
||||||
// )
|
|
||||||
private String phoneSuffix;
|
|
||||||
@ApiModelProperty("操作员头像")
|
|
||||||
private String avatar;
|
|
||||||
@ApiModelProperty("部门id")
|
|
||||||
private Long deptId;
|
|
||||||
@ApiModelProperty("用户类型(0-本地用户, 1-AD账户)")
|
|
||||||
private Integer userType;
|
|
||||||
@ApiModelProperty("激活标识")
|
|
||||||
private String lockFlag;
|
|
||||||
@ApiModelProperty("标识")
|
|
||||||
private Integer delFlag;
|
|
||||||
@ApiModelProperty("微信登录openId")
|
|
||||||
private String wxOpenid;
|
|
||||||
@ApiModelProperty("小程序openId")
|
|
||||||
private String miniOpenid;
|
|
||||||
@ApiModelProperty("QQ openId")
|
|
||||||
private String qqOpenid;
|
|
||||||
@ApiModelProperty("码云标识")
|
|
||||||
private String giteeLogin;
|
|
||||||
@ApiModelProperty("开源中国标识")
|
|
||||||
private String oscId;
|
|
||||||
@ApiModelProperty("乐观锁")
|
|
||||||
private Integer revision;
|
|
||||||
@ApiModelProperty("创建人")
|
|
||||||
private String crby;
|
|
||||||
@ApiModelProperty("创建时间")
|
|
||||||
private LocalDateTime crtime;
|
|
||||||
@ApiModelProperty("更新人")
|
|
||||||
private String upby;
|
|
||||||
@ApiModelProperty("更新时间")
|
|
||||||
private LocalDateTime uptime;
|
|
||||||
@ApiModelProperty("最新登录时间")
|
|
||||||
private LocalDateTime loginTime;
|
|
||||||
@ApiModelProperty("是否修改过密码")
|
|
||||||
private Integer editFlag;
|
|
||||||
|
|
||||||
public Long getId() {
|
|
||||||
return this.id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getUserId() {
|
|
||||||
return this.userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUsername() {
|
|
||||||
return this.username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPassword() {
|
|
||||||
return this.password;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getCustId() {
|
|
||||||
return this.custId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getAreaId() {
|
|
||||||
return this.areaId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRealName() {
|
|
||||||
return this.realName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSalt() {
|
|
||||||
return this.salt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPhone() {
|
|
||||||
return this.phone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPhoneSuffix() {
|
|
||||||
return this.phoneSuffix;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAvatar() {
|
|
||||||
return this.avatar;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getDeptId() {
|
|
||||||
return this.deptId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getUserType() {
|
|
||||||
return this.userType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLockFlag() {
|
|
||||||
return this.lockFlag;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getDelFlag() {
|
|
||||||
return this.delFlag;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getWxOpenid() {
|
|
||||||
return this.wxOpenid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMiniOpenid() {
|
|
||||||
return this.miniOpenid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getQqOpenid() {
|
|
||||||
return this.qqOpenid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getGiteeLogin() {
|
|
||||||
return this.giteeLogin;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOscId() {
|
|
||||||
return this.oscId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getRevision() {
|
|
||||||
return this.revision;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCrby() {
|
|
||||||
return this.crby;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LocalDateTime getCrtime() {
|
|
||||||
return this.crtime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUpby() {
|
|
||||||
return this.upby;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LocalDateTime getUptime() {
|
|
||||||
return this.uptime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LocalDateTime getLoginTime() {
|
|
||||||
return this.loginTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getEditFlag() {
|
|
||||||
return this.editFlag;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(final Long id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUserId(final Long userId) {
|
|
||||||
this.userId = userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsername(final String username) {
|
|
||||||
this.username = username;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPassword(final String password) {
|
|
||||||
this.password = password;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCustId(final Long custId) {
|
|
||||||
this.custId = custId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAreaId(final Long areaId) {
|
|
||||||
this.areaId = areaId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRealName(final String realName) {
|
|
||||||
this.realName = realName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSalt(final String salt) {
|
|
||||||
this.salt = salt;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPhone(final String phone) {
|
|
||||||
this.phone = phone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPhoneSuffix(final String phoneSuffix) {
|
|
||||||
this.phoneSuffix = phoneSuffix;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAvatar(final String avatar) {
|
|
||||||
this.avatar = avatar;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDeptId(final Long deptId) {
|
|
||||||
this.deptId = deptId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUserType(final Integer userType) {
|
|
||||||
this.userType = userType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLockFlag(final String lockFlag) {
|
|
||||||
this.lockFlag = lockFlag;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDelFlag(final Integer delFlag) {
|
|
||||||
this.delFlag = delFlag;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setWxOpenid(final String wxOpenid) {
|
|
||||||
this.wxOpenid = wxOpenid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMiniOpenid(final String miniOpenid) {
|
|
||||||
this.miniOpenid = miniOpenid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setQqOpenid(final String qqOpenid) {
|
|
||||||
this.qqOpenid = qqOpenid;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setGiteeLogin(final String giteeLogin) {
|
|
||||||
this.giteeLogin = giteeLogin;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOscId(final String oscId) {
|
|
||||||
this.oscId = oscId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRevision(final Integer revision) {
|
|
||||||
this.revision = revision;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCrby(final String crby) {
|
|
||||||
this.crby = crby;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCrtime(final LocalDateTime crtime) {
|
|
||||||
this.crtime = crtime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUpby(final String upby) {
|
|
||||||
this.upby = upby;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUptime(final LocalDateTime uptime) {
|
|
||||||
this.uptime = uptime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLoginTime(final LocalDateTime loginTime) {
|
|
||||||
this.loginTime = loginTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEditFlag(final Integer editFlag) {
|
|
||||||
this.editFlag = editFlag;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
package com.bonus.canteen.core.auth.user.mapper;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.bonus.canteen.core.auth.role.dto.MgrRoleUserDTO;
|
|
||||||
import com.bonus.canteen.core.auth.role.vo.MgrRoleUserVO;
|
|
||||||
import com.bonus.canteen.core.auth.user.entity.MgrUser;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Mapper
|
|
||||||
public interface MgrUserMapper {
|
|
||||||
// Page<MgrUserPageVO> selectRolePage(Page<MgrUserPageVO> page, @Param("userPageDTO") MgrUserPageDTO userPageDTO);
|
|
||||||
|
|
||||||
// List<MgrRoleUserVO> selectAllUserByRoleCode(MgrRoleUserDTO deliveryUserDTO);
|
|
||||||
|
|
||||||
// MgrUserDetailVO selectUserInfoByUserId(@Param("userId") Long userId, @Param("delFlag") Integer delFlag);
|
|
||||||
//
|
|
||||||
// @Select({"select count(0) from alloc_canteen where cust_id = #{userId};"})
|
|
||||||
// int checkCountBasicsDdiningUserId(Long userId);
|
|
||||||
//
|
|
||||||
// @Select({"select count(0) from alloc_stall where cust_id = #{userId};"})
|
|
||||||
// int checkBasicsShopstallsUserId(Long userId);
|
|
||||||
//
|
|
||||||
// @Select({"select count(0) from drp_warehouse where user_id = #{userId};"})
|
|
||||||
// int checkDrpWarehouse(Long userId);
|
|
||||||
//
|
|
||||||
// @Select({"select user_id, real_name from mgr_user ${ew.customSqlSegment}"})
|
|
||||||
// MgrUserIdNameVO selectIdAndRealNameByWrapper(@Param("ew") Wrapper<MgrUser> wrapper);
|
|
||||||
//
|
|
||||||
// @Select({"select dining_id as canteen_id, shopstall_id from basics_shopstalls ${ew.customSqlSegment}"})
|
|
||||||
// List<EffCanteenVO> selectShopstallByWrapper(@Param("ew") Wrapper<?> wrapper);
|
|
||||||
//
|
|
||||||
// @Select({"select canteen_id, shopstall_id from mkt_effective_detail ${ew.customSqlSegment}"})
|
|
||||||
// List<EffCanteenVO> selectCanteenByWrapper(@Param("ew") Wrapper<?> wrapper);
|
|
||||||
//
|
|
||||||
// @Select({"select 1 from mkt_effective ${ew.customSqlSegment}"})
|
|
||||||
// Integer selectExistFromMktEffectiveByWrapper(@Param("ew") Wrapper<?> wrapper);
|
|
||||||
//
|
|
||||||
// List<MgrUserIdNameVO> listUserByIdAndRole(@Param("userId") Long userId, @Param("roleCode") String roleCode, @Param("delFlag") Integer delFlag);
|
|
||||||
//
|
|
||||||
// Long selectUserIdByCustId(@Param("custId") Long custId);
|
|
||||||
//
|
|
||||||
// String selectUserNameIdByCustId(@Param("custId") Long custId);
|
|
||||||
//
|
|
||||||
// Long selectCustIdByUserId(@Param("userId") Long userId);
|
|
||||||
//
|
|
||||||
// List<MgrRoleUserVO> getUserExcludeSupplier(@Param("delFlag") Integer delFlag);
|
|
||||||
//
|
|
||||||
// MgrUser getUserByRoleCode(@Param("roleCode") String roleCode);
|
|
||||||
//
|
|
||||||
// List<MgrUser> queryByRoles(@Param("roles") List<Long> roles);
|
|
||||||
//
|
|
||||||
// List<MgrRoleUserVO> queryMgrUserIdListByCustIdList(@Param("custIdList") List<Long> custIdList);
|
|
||||||
//
|
|
||||||
// List<MgrRoleUserVO> queryCanteenManagerMgrUserList(@Param("caneenIdList") List<Long> caneenIdList);
|
|
||||||
//
|
|
||||||
// MgrUser getUserByRoleCodeExcludeUserName(@Param("roleCode") String roleCode, @Param("excludeUserName") String excludeUserName);
|
|
||||||
}
|
|
||||||
|
|
@ -1,269 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.bonus.canteen.core.auth.user.mapper.MgrUserMapper">
|
|
||||||
<!-- <resultMap id="mgrUserMap" type="com.bonus.canteen.core.auth.user.entity.MgrUser">-->
|
|
||||||
<!-- <id property="id" column="id"/>-->
|
|
||||||
<!-- <result property="userId" column="user_id"/>-->
|
|
||||||
<!-- <result property="username" column="username"/>-->
|
|
||||||
<!-- <result property="password" column="password"/>-->
|
|
||||||
<!-- <result property="realName" column="real_name"/>-->
|
|
||||||
<!-- <result property="salt" column="salt"/>-->
|
|
||||||
<!-- <result property="phone" column="phone"/>-->
|
|
||||||
<!-- <result property="avatar" column="avatar"/>-->
|
|
||||||
<!-- <result property="deptId" column="dept_id"/>-->
|
|
||||||
<!-- <result property="lockFlag" column="lock_flag"/>-->
|
|
||||||
<!-- <result property="delFlag" column="del_flag"/>-->
|
|
||||||
<!-- <result property="wxOpenid" column="wx_openid"/>-->
|
|
||||||
<!-- <result property="miniOpenid" column="mini_openid"/>-->
|
|
||||||
<!-- <result property="qqOpenid" column="qq_openid"/>-->
|
|
||||||
<!-- <result property="giteeLogin" column="gitee_login"/>-->
|
|
||||||
<!-- <result property="oscId" column="osc_id"/>-->
|
|
||||||
<!-- <result property="revision" column="revision"/>-->
|
|
||||||
<!-- <result property="crby" column="crby"/>-->
|
|
||||||
<!-- <result property="crtime" column="crtime"/>-->
|
|
||||||
<!-- <result property="upby" column="upby"/>-->
|
|
||||||
<!-- <result property="uptime" column="uptime"/>-->
|
|
||||||
<!-- </resultMap>-->
|
|
||||||
|
|
||||||
<!--<!– <resultMap id="mgrUserPageVOMap" type="com.bonus.canteen.core.auth.user.vo.MgrUserPageVO">–>-->
|
|
||||||
<!--<!– <result property="userId" column="user_id"/>–>-->
|
|
||||||
<!--<!– <result property="custId" column="cust_id"/>–>-->
|
|
||||||
<!--<!– <result property="areaId" column="area_id"/>–>-->
|
|
||||||
<!--<!– <result property="areaName" column="area_name"/>–>-->
|
|
||||||
<!--<!– <result property="username" column="username"/>–>-->
|
|
||||||
<!--<!– <result property="realName" column="real_name"/>–>-->
|
|
||||||
<!--<!– <result property="phone" column="phone"/>–>-->
|
|
||||||
<!--<!– <result property="avatar" column="avatar"/>–>-->
|
|
||||||
<!--<!– <result property="lockFlag" column="lock_flag"/>–>-->
|
|
||||||
<!--<!– <result property="wxOpenid" column="wx_openid"/>–>-->
|
|
||||||
<!--<!– <result property="miniOpenid" column="mini_openid"/>–>-->
|
|
||||||
<!--<!– <result property="qqOpenid" column="qq_openid"/>–>-->
|
|
||||||
<!--<!– <result property="giteeLogin" column="gitee_login"/>–>-->
|
|
||||||
<!--<!– <result property="oscId" column="osc_id"/>–>-->
|
|
||||||
<!--<!– <result property="crby" column="crby"/>–>-->
|
|
||||||
<!--<!– <result property="crtime" column="crtime"/>–>-->
|
|
||||||
<!--<!– <result property="upby" column="upby"/>–>-->
|
|
||||||
<!--<!– <result property="uptime" column="uptime"/>–>-->
|
|
||||||
<!--<!– <result property="loginTime" column="login_time"/>–>-->
|
|
||||||
<!--<!– <collection property="roleList" ofType="net.xnzn.core.auth.user.vo.MgrUserRolePageVO">–>-->
|
|
||||||
<!--<!– <result property="roleId" column="role_id"/>–>-->
|
|
||||||
<!--<!– <result property="roleName" column="role_name"/>–>-->
|
|
||||||
<!--<!– <result property="roleCode" column="role_code"/>–>-->
|
|
||||||
<!--<!– <result property="roleDesc" column="role_desc"/>–>-->
|
|
||||||
<!--<!– </collection>–>-->
|
|
||||||
<!--<!– </resultMap>–>-->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <!– 分页获取操作员信息 –>-->
|
|
||||||
<!-- <select id="selectRolePage" resultMap="mgrUserPageVOMap">-->
|
|
||||||
<!-- SELECT mu.user_id,-->
|
|
||||||
<!-- mu.cust_id,-->
|
|
||||||
<!-- mu.area_id,-->
|
|
||||||
<!-- mu.username,-->
|
|
||||||
<!-- mu.real_name,-->
|
|
||||||
<!-- mu.phone,-->
|
|
||||||
<!-- mu.avatar,-->
|
|
||||||
<!-- mu.user_type,-->
|
|
||||||
<!-- mu.lock_flag,-->
|
|
||||||
<!-- mu.mini_openid,-->
|
|
||||||
<!-- mu.qq_openid,-->
|
|
||||||
<!-- mu.gitee_login,-->
|
|
||||||
<!-- mu.osc_id,-->
|
|
||||||
<!-- mu.crby,-->
|
|
||||||
<!-- mu.crtime,-->
|
|
||||||
<!-- mu.upby,-->
|
|
||||||
<!-- mu.uptime,-->
|
|
||||||
<!-- aa.area_name,-->
|
|
||||||
<!-- mu.login_time-->
|
|
||||||
<!-- FROM mgr_user mu-->
|
|
||||||
<!-- LEFT JOIN alloc_area aa ON mu.area_id = aa.area_id-->
|
|
||||||
<!-- WHERE mu.del_flag = #{userPageDTO.delFlag}-->
|
|
||||||
<!-- AND EXISTS(SELECT NULL-->
|
|
||||||
<!-- FROM mgr_user_role mur-->
|
|
||||||
<!-- left join mgr_role mr on mur.role_id = mr.role_id-->
|
|
||||||
<!-- WHERE mu.user_id = mur.user_id-->
|
|
||||||
<!-- AND mr.role_code != #{userPageDTO.roleCode})-->
|
|
||||||
<!-- <if test="userPageDTO.username != null and userPageDTO.username != ''">-->
|
|
||||||
<!-- AND username = #{userPageDTO.username}-->
|
|
||||||
<!-- </if>-->
|
|
||||||
<!-- <if test="userPageDTO.realName != null and userPageDTO.realName != ''">-->
|
|
||||||
<!-- AND real_name = #{userPageDTO.realName,typeHandler=net.xnzn.core.common.encrypt.SM4EncDecHandler}-->
|
|
||||||
<!-- </if>-->
|
|
||||||
<!-- <if test="userPageDTO.phone != null and userPageDTO.phone != ''">-->
|
|
||||||
<!-- AND phone = #{userPageDTO.phone,typeHandler=net.xnzn.core.common.encrypt.SM4EncDecHandler}-->
|
|
||||||
<!-- </if>-->
|
|
||||||
|
|
||||||
<!-- <if test="userPageDTO.keyword != null and userPageDTO.keyword != ''">-->
|
|
||||||
<!-- AND concat(IFNULL(real_name, ''), IFNULL(phone, ''), IFNULL(phone_suffix, '')) like concat('%', #{userPageDTO.keyword,typeHandler=net.xnzn.core.common.encrypt.SM4EncDecHandler}, '%')-->
|
|
||||||
<!-- </if>-->
|
|
||||||
|
|
||||||
<!-- <if test="userPageDTO.areaIdList != null and userPageDTO.areaIdList.size() != 0">-->
|
|
||||||
<!-- AND mu.area_id IN-->
|
|
||||||
<!-- <foreach collection="userPageDTO.areaIdList" item="item" index="index" open="("-->
|
|
||||||
<!-- separator="," close=")">-->
|
|
||||||
<!-- #{item}-->
|
|
||||||
<!-- </foreach>-->
|
|
||||||
<!-- </if>-->
|
|
||||||
|
|
||||||
<!-- <if test="userPageDTO.authAreaIdList != null and userPageDTO.authAreaIdList.size() != 0">-->
|
|
||||||
<!-- AND EXISTS (SELECT NULL-->
|
|
||||||
<!-- FROM mgr_user_role mur-->
|
|
||||||
<!-- left join mgr_role_area mra on mur.role_id = mra.role_id-->
|
|
||||||
<!-- WHERE mu.user_id = mur.user_id-->
|
|
||||||
<!-- AND mra.data_id IN-->
|
|
||||||
<!-- <foreach collection="userPageDTO.authAreaIdList" item="item" index="index" open="("-->
|
|
||||||
<!-- separator="," close=")">-->
|
|
||||||
<!-- #{item}-->
|
|
||||||
<!-- </foreach>-->
|
|
||||||
<!-- AND mra.half_select = 1)-->
|
|
||||||
<!-- </if>-->
|
|
||||||
<!-- ORDER BY mu.id DESC-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- 查询指定角色所有用户信息 -->
|
|
||||||
<!-- <select id="selectAllUserByRoleCode" resultType="com.bonus.canteen.core.auth.role.vo.MgrRoleUserVO">-->
|
|
||||||
<!-- SELECT mu.user_id userId,-->
|
|
||||||
<!-- mu.user_name username,-->
|
|
||||||
<!-- mu.nick_name realName-->
|
|
||||||
<!-- FROM sys_user mu-->
|
|
||||||
<!-- LEFT JOIN sys_user ci ON mu.cust_id = ci.cust_id-->
|
|
||||||
<!-- where mu.del_flag = #{delFlag}-->
|
|
||||||
<!--<!– <if test="roleCode != null and roleCode != ''">–>-->
|
|
||||||
<!--<!– AND ci.job = #{roleCode}–>-->
|
|
||||||
<!--<!– </if>–>-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <!– –>-->
|
|
||||||
<!-- <select id="selectUserInfoByUserId" resultType="net.xnzn.core.auth.user.vo.MgrUserDetailVO">-->
|
|
||||||
<!-- select user_id userId,-->
|
|
||||||
<!-- username,-->
|
|
||||||
<!-- real_name realName,-->
|
|
||||||
<!-- cust_id,-->
|
|
||||||
<!-- area_id,-->
|
|
||||||
<!-- phone,-->
|
|
||||||
<!-- avatar-->
|
|
||||||
<!-- from mgr_user-->
|
|
||||||
<!-- where user_id = #{userId}-->
|
|
||||||
<!-- and del_flag = #{delFlag}-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <select id="listUserByIdAndRole" resultType="net.xnzn.core.auth.user.vo.MgrUserIdNameVO">-->
|
|
||||||
<!-- SELECT mu.user_id userId,-->
|
|
||||||
<!-- mu.real_name realName-->
|
|
||||||
<!-- FROM mgr_user mu-->
|
|
||||||
<!-- LEFT JOIN cust_info ci ON mu.cust_id = ci.cust_id-->
|
|
||||||
<!-- where mu.del_flag = #{delFlag}-->
|
|
||||||
<!-- AND ci.job = #{roleCode}-->
|
|
||||||
<!-- AND mu.user_id = #{userId}-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="selectUserIdByCustId" resultType="java.lang.Long">-->
|
|
||||||
<!-- SELECT user_id-->
|
|
||||||
<!-- FROM mgr_user-->
|
|
||||||
<!-- WHERE cust_id = #{custId}-->
|
|
||||||
<!-- AND del_flag = 2-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="selectCustIdByUserId" resultType="java.lang.Long">-->
|
|
||||||
<!-- SELECT t1.cust_id-->
|
|
||||||
<!-- FROM mgr_user t1-->
|
|
||||||
<!-- LEFT JOIN cust_info t2 ON t1.cust_id = t2.cust_id-->
|
|
||||||
<!-- WHERE t1.user_id = #{userId}-->
|
|
||||||
<!-- AND (t2.cust_state = 1 OR t1.cust_id = -2)-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="getUserExcludeSupplier" resultType="net.xnzn.core.auth.role.vo.MgrRoleUserVO">-->
|
|
||||||
<!-- SELECT mu.user_id userId,-->
|
|
||||||
<!-- mu.username,-->
|
|
||||||
<!-- mu.real_name realName-->
|
|
||||||
<!-- FROM mgr_user mu-->
|
|
||||||
<!-- LEFT JOIN drp_supplier ds ON ds.supplier_user_id = mu.user_id-->
|
|
||||||
<!-- WHERE mu.del_flag = #{delFlag}-->
|
|
||||||
<!-- AND ds.supplier_user_id IS NULL;-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="selectUserNameIdByCustId" resultType="java.lang.String">-->
|
|
||||||
<!-- SELECT username-->
|
|
||||||
<!-- FROM mgr_user-->
|
|
||||||
<!-- WHERE cust_id = #{custId}-->
|
|
||||||
<!-- AND del_flag = 2-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="getUserByRoleCode" resultType="net.xnzn.core.auth.user.entity.MgrUser">-->
|
|
||||||
<!-- SELECT t1.user_id,-->
|
|
||||||
<!-- t1.username-->
|
|
||||||
<!-- FROM mgr_user t1-->
|
|
||||||
<!-- INNER JOIN mgr_user_role t2 ON t1.user_id = t2.user_id-->
|
|
||||||
<!-- INNER JOIN mgr_role t3 ON t2.role_id = t3.role_id-->
|
|
||||||
<!-- WHERE t1.del_flag = 2-->
|
|
||||||
<!-- AND t3.del_flag = 2-->
|
|
||||||
<!-- AND t3.role_code = #{roleCode}-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="queryByRoles" resultType="net.xnzn.core.auth.user.entity.MgrUser">-->
|
|
||||||
<!-- SELECT t1.user_id,-->
|
|
||||||
<!-- t1.username-->
|
|
||||||
<!-- FROM mgr_user t1-->
|
|
||||||
<!-- INNER JOIN mgr_user_role t2 ON t1.user_id = t2.user_id-->
|
|
||||||
<!-- WHERE t1.del_flag = 2-->
|
|
||||||
<!-- and t2.role_id in-->
|
|
||||||
<!-- <foreach collection="roles" item="role" open="(" close=")" separator=",">-->
|
|
||||||
<!-- #{role}-->
|
|
||||||
<!-- </foreach>-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="queryMgrUserIdListByCustIdList" resultType="net.xnzn.core.auth.role.vo.MgrRoleUserVO">-->
|
|
||||||
<!-- SELECT user_id, username, real_name-->
|
|
||||||
<!-- FROM mgr_user-->
|
|
||||||
<!-- WHERE cust_id IN-->
|
|
||||||
<!-- <foreach collection="custIdList" item="custId" open="(" close=")" separator=",">-->
|
|
||||||
<!-- #{custId}-->
|
|
||||||
<!-- </foreach>-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="queryCanteenManagerMgrUserList" resultType="net.xnzn.core.auth.role.vo.MgrRoleUserVO">-->
|
|
||||||
<!-- SELECT t1.user_id, t1.username, t1.real_name-->
|
|
||||||
<!-- FROM mgr_user t1-->
|
|
||||||
<!-- WHERE exists(SELECT NULL-->
|
|
||||||
<!-- FROM alloc_canteen t2 WHERE t1.cust_id = t2.cust_id-->
|
|
||||||
<!-- AND t2.canteen_id IN-->
|
|
||||||
<!-- <foreach collection="caneenIdList" item="canteenId" open="(" close=")" separator=",">-->
|
|
||||||
<!-- #{canteenId}-->
|
|
||||||
<!-- </foreach>-->
|
|
||||||
<!-- )-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<!-- <select id="getUserByRoleCodeExcludeUserName" resultType="net.xnzn.core.auth.user.entity.MgrUser">-->
|
|
||||||
<!-- SELECT t1.user_id,-->
|
|
||||||
<!-- t1.username-->
|
|
||||||
<!-- FROM mgr_user t1-->
|
|
||||||
<!-- INNER JOIN mgr_user_role t2 ON t1.user_id = t2.user_id-->
|
|
||||||
<!-- INNER JOIN mgr_role t3 ON t2.role_id = t3.role_id-->
|
|
||||||
<!-- WHERE t1.del_flag = 2-->
|
|
||||||
<!-- AND t3.del_flag = 2-->
|
|
||||||
<!-- AND t3.role_code = #{roleCode}-->
|
|
||||||
<!-- AND t1.username != #{excludeUserName}-->
|
|
||||||
<!-- </select>-->
|
|
||||||
</mapper>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue