资产授权
parent
87a53df451
commit
72120028c7
|
@ -0,0 +1,81 @@
|
|||
package com.muyu.source.domain;
|
||||
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author Lenovo
|
||||
* @ Tool:IntelliJ IDEA
|
||||
* @ Author:CHX
|
||||
* @ Date:2024-09-02-18:57
|
||||
* @ Version:1.0
|
||||
* @ Description:用户
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class SysUser extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Excel(
|
||||
name = "部门编号",
|
||||
targetAttr = "deptName",
|
||||
type = Excel.Type.EXPORT
|
||||
)
|
||||
private Long deptId;
|
||||
@Excel(
|
||||
name = "用户编号",
|
||||
targetAttr = "deptName",
|
||||
type = Excel.Type.EXPORT
|
||||
)
|
||||
private Long userId;
|
||||
@Excel(
|
||||
name = "登录名称"
|
||||
)
|
||||
private String userName;
|
||||
@Excel(
|
||||
name = "用户名称"
|
||||
)
|
||||
private String nickName;
|
||||
@Excel(
|
||||
name = "用户邮箱"
|
||||
)
|
||||
private String email;
|
||||
@Excel(
|
||||
name = "手机号码"
|
||||
)
|
||||
private String phonenumber;
|
||||
@Excel(
|
||||
name = "用户性别",
|
||||
readConverterExp = "0=男,1=女,2=未知"
|
||||
)
|
||||
private String sex;
|
||||
private String avatar;
|
||||
private String password;
|
||||
@Excel(
|
||||
name = "帐号状态",
|
||||
readConverterExp = "0=正常,1=停用"
|
||||
)
|
||||
private String status;
|
||||
private String delFlag;
|
||||
@Excel(
|
||||
name = "最后登录IP",
|
||||
type = Excel.Type.EXPORT
|
||||
)
|
||||
private String loginIp;
|
||||
@Excel(
|
||||
name = "最后登录时间",
|
||||
width = 30.0,
|
||||
dateFormat = "yyyy-MM-dd HH:mm:ss",
|
||||
type = Excel.Type.EXPORT
|
||||
)
|
||||
private Date loginDate;
|
||||
}
|
|
@ -3,7 +3,6 @@ package com.muyu.source.controller;
|
|||
import com.dtflys.forest.springboot.annotation.ForestScannerRegister;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.source.domain.rep.AssetAuthorizationRep;
|
||||
import com.muyu.source.domain.req.AssetAuthorizationReq;
|
||||
import com.muyu.source.service.AssetAuthorizationService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package com.muyu.source.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.common.system.domain.SysUser;
|
||||
import com.muyu.source.domain.SysUser;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,16 +3,14 @@ package com.muyu.source.service.Impl;
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.common.system.domain.SysUser;
|
||||
import com.muyu.source.domain.AssetAuthorization;
|
||||
import com.muyu.source.domain.rep.AssetAuthorizationRep;
|
||||
import com.muyu.source.domain.req.AssetAuthorizationReq;
|
||||
import com.muyu.source.mapper.AssetAuthorizationMapper;
|
||||
import com.muyu.source.mapper.UserMapper;
|
||||
import com.muyu.source.service.AssetAuthorizationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.muyu.source.domain.SysUser;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
|
Loading…
Reference in New Issue