Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-supervisor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 92ccce11
authored
Mar 13, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]督导管理团队业绩以及个人业绩、优秀案例管理
1 parent
a862dc63
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
602 additions
and
0 deletions
src/main/java/cn/com/glsx/dj/supervisor/config/DubboConfig.java
src/main/java/cn/com/glsx/dj/supervisor/constant/RopConstants.java
src/main/java/cn/com/glsx/dj/supervisor/controller/ExcellentCaseReviewController.java
src/main/java/cn/com/glsx/dj/supervisor/request/EmployeeBehaviorRequest.java
src/main/java/cn/com/glsx/dj/supervisor/request/EmployeePerformanceRequest.java
src/main/java/cn/com/glsx/dj/supervisor/request/EmployeeStoreTransferRequest.java
src/main/java/cn/com/glsx/dj/supervisor/request/ExcellentCaseReviewQueryRequest.java
src/main/java/cn/com/glsx/dj/supervisor/request/ExcellentCaseReviewRequest.java
src/main/java/cn/com/glsx/dj/supervisor/request/ExcellentCaseSubmitRequest.java
src/main/java/cn/com/glsx/dj/supervisor/utils/CommonUtil.java
src/main/java/cn/com/glsx/dj/supervisor/utils/LoginSourceTypeEnum.java
src/main/java/cn/com/glsx/dj/supervisor/utils/LoginUserDTO.java
src/main/java/cn/com/glsx/dj/supervisor/config/DubboConfig.java
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
config
;
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
config
;
import
cn.com.glsx.dj.supervisor.remote.ExcellentCaseReviewRemote
;
import
cn.com.glsx.dj.supervisor.remote.SupervisorWarningBaselineConfigRemote
;
import
cn.com.glsx.dj.supervisor.remote.SupervisorWarningBaselineConfigRemote
;
import
org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory
;
import
org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -34,5 +35,9 @@ public class DubboConfig {
...
@@ -34,5 +35,9 @@ public class DubboConfig {
public
SupervisorWarningBaselineConfigRemote
supervisorWarningBaselineConfigRemote
(){
public
SupervisorWarningBaselineConfigRemote
supervisorWarningBaselineConfigRemote
(){
return
factory
.
builder
(
SupervisorWarningBaselineConfigRemote
.
class
).
check
(
false
).
timeout
(
30000
).
build
();
return
factory
.
builder
(
SupervisorWarningBaselineConfigRemote
.
class
).
check
(
false
).
timeout
(
30000
).
build
();
}
}
@Bean
public
ExcellentCaseReviewRemote
ExcellentCaseReviewRemote
(){
return
factory
.
builder
(
ExcellentCaseReviewRemote
.
class
).
check
(
false
).
timeout
(
30000
).
build
();
}
}
}
src/main/java/cn/com/glsx/dj/supervisor/constant/RopConstants.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
constant
;
public
interface
RopConstants
{
/** 登录信息session**/
final
String
LOGIN_SESSION
=
"ROP_USER"
;
/** 登录令牌存贮有效期(单位:秒)**/
final
int
LOGIN_TOKEN_EXPIRE_TIME
=
5
*
60
;
/** 登录跳转地址**/
final
String
LOGIN_REDIRECT_URL
=
"/loginByToken?token="
;
/** WEB SOCKET SESSION缓存前缀**/
final
String
LOGIN_WS_SESSION_PREFIX
=
"SMARTCARLIFE_LOGIN_WS_SESSION_"
;
/**选择登录令牌 **/
public
static
final
String
LOGIN_SELECT_TOKEN
=
"SMARTCARLIFE_LOGIN_SELECT_"
;
}
src/main/java/cn/com/glsx/dj/supervisor/controller/ExcellentCaseReviewController.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
controller
;
import
cn.com.glsx.dj.supervisor.dto.ExcellentCaseDetailDTO
;
import
cn.com.glsx.dj.supervisor.dto.ExcellentCaseReviewQueryDTO
;
import
cn.com.glsx.dj.supervisor.dto.ExcellentCaseReviewReqDTO
;
import
cn.com.glsx.dj.supervisor.dto.ExcellentCaseSubmitDTO
;
import
cn.com.glsx.dj.supervisor.remote.ExcellentCaseReviewRemote
;
import
cn.com.glsx.dj.supervisor.request.ExcellentCaseReviewQueryRequest
;
import
cn.com.glsx.dj.supervisor.request.ExcellentCaseReviewRequest
;
import
cn.com.glsx.dj.supervisor.request.ExcellentCaseSubmitRequest
;
import
cn.com.glsx.dj.supervisor.utils.CommonUtil
;
import
cn.com.glsx.dj.supervisor.utils.LoginUserDTO
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.github.pagehelper.Page
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.session.Session
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.List
;
/**
* 优秀案例审核控制器
* <p>
* 提供优秀案例审核的RESTful API接口
* 包括案例提交、查询、审核、录音下载等功能
* 所有接口需要用户登录后才能访问
* </p>
*
* @author zhouhb
* @since 2026-03-12
*/
@Slf4j
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
NO
)
@Api
(
"优秀案例审核管理"
)
public
class
ExcellentCaseReviewController
{
@Autowired
private
ExcellentCaseReviewRemote
excellentCaseReviewRemote
;
/**
* 查询优秀案例列表(分页)
* <p>
* 支持多条件筛选:驻店人员姓名、门店名称、客户类别、提交人姓名、审核状态
* 需要登录权限
* </p>
*
* @param request 查询请求,包含查询条件和分页信息
* @return 分页的案例列表
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.excellent.case.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"查询优秀案例列表"
)
public
RopResponse
<
Page
<
ExcellentCaseDetailDTO
>>
queryExcellentCaseList
(
ExcellentCaseReviewQueryRequest
request
)
{
RpcPagination
<
ExcellentCaseReviewQueryDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
ExcellentCaseReviewQueryDTO
.
class
);
RpcResponse
<
Page
<
ExcellentCaseDetailDTO
>>
result
=
excellentCaseReviewRemote
.
queryExcellentCaseList
(
pagination
);
if
(
result
.
isSuccess
())
{
return
RopResponse
.
success
(
result
.
getResult
());
}
else
{
return
RopResponse
.
error
(
result
.
getError
(),
result
.
getMessage
());
}
}
/**
* 查询优秀案例详情
* <p>
* 根据案例ID查询完整的案例信息,包括案例详情、审核信息等
* 需要登录权限
* </p>
*
* @param request 查询请求,包含案例ID
* @return 案例详情
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.excellent.case.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"查询优秀案例详情"
)
public
RopResponse
<
ExcellentCaseDetailDTO
>
getExcellentCaseDetail
(
ExcellentCaseReviewRequest
request
)
{
RpcResponse
<
ExcellentCaseDetailDTO
>
result
=
excellentCaseReviewRemote
.
getExcellentCaseDetail
(
request
.
getId
());
if
(
result
.
isSuccess
())
{
return
RopResponse
.
success
(
result
.
getResult
());
}
else
{
return
RopResponse
.
error
(
result
.
getError
(),
result
.
getMessage
());
}
}
/**
* 审核通过优秀案例
* <p>
* 将案例状态从"待审核"更新为"通过"
* 只有待审核状态的案例才能进行审核操作
* 需要登录权限
* </p>
*
* @param request 审核请求,包含案例ID和审核意见
* @return 审核结果
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.excellent.case.approve"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"审核通过优秀案例"
)
public
RopResponse
<
Boolean
>
approveExcellentCase
(
ExcellentCaseReviewRequest
request
)
{
ExcellentCaseReviewReqDTO
reviewDTO
=
CommonUtil
.
convertRequest
(
ExcellentCaseReviewReqDTO
.
class
);
LoginUserDTO
loginUser
=
CommonUtil
.
getLoginUser
();
if
(
loginUser
==
null
){
return
RopResponse
.
error
(
"请登录"
);
}
RpcResponse
<
Boolean
>
result
=
excellentCaseReviewRemote
.
approveExcellentCase
(
reviewDTO
,
loginUser
.
getUserName
(),
loginUser
.
getUuid
());
if
(
result
.
isSuccess
())
{
return
RopResponse
.
success
(
result
.
getResult
());
}
else
{
return
RopResponse
.
error
(
result
.
getError
(),
result
.
getMessage
());
}
}
/**
* 审核驳回优秀案例
* <p>
* 将案例状态从"待审核"更新为"驳回"
* 只有待审核状态的案例才能进行驳回操作
* 需要登录权限
* </p>
*
* @param request 审核请求,包含案例ID和审核意见
* @return 审核结果
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.excellent.case.reject"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"审核驳回优秀案例"
)
public
RopResponse
<
Boolean
>
rejectExcellentCase
(
ExcellentCaseReviewRequest
request
)
{
ExcellentCaseReviewReqDTO
reviewDTO
=
CommonUtil
.
convertRequest
(
ExcellentCaseReviewReqDTO
.
class
);
LoginUserDTO
loginUser
=
CommonUtil
.
getLoginUser
();
if
(
loginUser
==
null
){
return
RopResponse
.
error
(
"请登录"
);
}
RpcResponse
<
Boolean
>
result
=
excellentCaseReviewRemote
.
rejectExcellentCase
(
reviewDTO
,
loginUser
.
getUserName
(),
loginUser
.
getUuid
());
if
(
result
.
isSuccess
())
{
return
RopResponse
.
success
(
result
.
getResult
());
}
else
{
return
RopResponse
.
error
(
result
.
getError
(),
result
.
getMessage
());
}
}
/**
* 下载优秀案例录音
* <p>
* 根据案例ID获取录音文件的URL
* 用于已审核通过或驳回的案例下载录音
* 需要登录权限
* </p>
*
* @param request 下载请求,包含案例ID
* @return 录音文件的URL
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.excellent.case.download"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"下载优秀案例录音"
)
public
RopResponse
<
String
>
downloadRecording
(
ExcellentCaseReviewRequest
request
)
{
RpcResponse
<
String
>
result
=
excellentCaseReviewRemote
.
downloadRecording
(
request
.
getId
());
if
(
result
.
isSuccess
())
{
return
RopResponse
.
success
(
result
.
getResult
());
}
else
{
return
RopResponse
.
error
(
result
.
getError
(),
result
.
getMessage
());
}
}
/**
* 查询客户类别列表
* <p>
* 获取系统中已有的所有客户类别,用于下拉选择
* 需要登录权限
* </p>
*
* @param request 查询请求
* @return 客户类别列表
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.excellent.case.categories"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"查询客户类别列表"
)
public
RopResponse
<
List
<
String
>>
queryCustomerCategories
(
ExcellentCaseReviewRequest
request
)
{
RpcResponse
<
List
<
String
>>
result
=
excellentCaseReviewRemote
.
queryCustomerCategories
();
if
(
result
.
isSuccess
())
{
return
RopResponse
.
success
(
result
.
getResult
());
}
else
{
return
RopResponse
.
error
(
result
.
getError
(),
result
.
getMessage
());
}
}
}
src/main/java/cn/com/glsx/dj/supervisor/request/EmployeeBehaviorRequest.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
request
;
import
com.rop.AbstractRopRequest
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 个人行为分析数据请求类
* <p>
* 包含个人行为分析数据查询的请求参数
* 支持场景、时间维度的查询
* </p>
*
* @author zhouhb
* @since 2026-03-12
*/
@Data
public
class
EmployeeBehaviorRequest
extends
AbstractRopRequest
{
/**
* 员工ID
*/
private
String
employeeId
;
/**
* 督导ID
*/
private
Long
supervisorId
;
/**
* 场景
*/
private
String
scene
;
/**
* 开始日期
*/
private
String
startDate
;
/**
* 结束日期
*/
private
String
endDate
;
/**
* 门店ID
*/
private
Integer
merchantId
;
}
src/main/java/cn/com/glsx/dj/supervisor/request/EmployeePerformanceRequest.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
request
;
import
com.rop.AbstractRopRequest
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 个人业绩数据请求类
* <p>
* 包含个人业绩数据查询的请求参数
* 支持场景、时间、门店维度的查询
* </p>
*
* @author zhouhb
* @since 2026-03-12
*/
@Data
public
class
EmployeePerformanceRequest
extends
AbstractRopRequest
{
/**
* 员工ID
*/
private
String
employeeId
;
/**
* 督导ID
*/
private
Long
supervisorId
;
/**
* 场景
*/
private
String
scene
;
/**
* 开始日期
*/
private
String
startDate
;
/**
* 结束日期
*/
private
String
endDate
;
/**
* 门店ID
*/
private
Integer
merchantId
;
}
src/main/java/cn/com/glsx/dj/supervisor/request/EmployeeStoreTransferRequest.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
request
;
import
com.rop.AbstractRopRequest
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* 员工调店记录请求类
* <p>
* 包含员工调店记录查询的请求参数
* </p>
*
* @author zhouhb
* @since 2026-03-12
*/
@Data
public
class
EmployeeStoreTransferRequest
extends
AbstractRopRequest
{
/**
* 员工ID
*/
private
String
employeeId
;
/**
* 督导ID
*/
private
Long
supervisorId
;
}
src/main/java/cn/com/glsx/dj/supervisor/request/ExcellentCaseReviewQueryRequest.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
request
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
public
class
ExcellentCaseReviewQueryRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"驻店人员姓名,模糊匹配"
)
private
String
staffName
;
@ApiModelProperty
(
notes
=
"接待门店名称,模糊匹配"
)
private
String
merchantName
;
@ApiModelProperty
(
notes
=
"客户类别"
)
private
String
customerCategory
;
@ApiModelProperty
(
notes
=
"提交人姓名,模糊匹配"
)
private
String
submitterName
;
@ApiModelProperty
(
notes
=
"审核状态:0-待审核,1-通过,2-驳回"
)
private
Integer
reviewStatus
;
@ApiModelProperty
(
notes
=
"页码"
)
private
Integer
pageNum
;
@ApiModelProperty
(
notes
=
"每页大小"
)
private
Integer
pageSize
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/dj/supervisor/request/ExcellentCaseReviewRequest.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
request
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
ExcellentCaseReviewRequest
extends
AbstractRopRequest
{
@NotNull
(
message
=
"案例ID不能为空"
)
@ApiModelProperty
(
notes
=
"案例ID"
,
required
=
true
)
private
Long
id
;
@ApiModelProperty
(
notes
=
"审核意见"
)
private
String
reviewComment
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/dj/supervisor/request/ExcellentCaseSubmitRequest.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
request
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
@Data
public
class
ExcellentCaseSubmitRequest
extends
AbstractRopRequest
{
@NotBlank
(
message
=
"案例标题不能为空"
)
@ApiModelProperty
(
notes
=
"案例标题"
,
required
=
true
)
private
String
caseTitle
;
@NotBlank
(
message
=
"驻店人员姓名不能为空"
)
@ApiModelProperty
(
notes
=
"驻店人员姓名"
,
required
=
true
)
private
String
staffName
;
@NotBlank
(
message
=
"驻店人员手机号不能为空"
)
@ApiModelProperty
(
notes
=
"驻店人员手机号"
,
required
=
true
)
private
String
staffPhone
;
@NotNull
(
message
=
"门店ID不能为空"
)
@ApiModelProperty
(
notes
=
"门店ID"
,
required
=
true
)
private
Integer
merchantId
;
@NotBlank
(
message
=
"门店名称不能为空"
)
@ApiModelProperty
(
notes
=
"门店名称"
,
required
=
true
)
private
String
merchantName
;
@NotBlank
(
message
=
"客户类别不能为空"
)
@ApiModelProperty
(
notes
=
"客户类别"
,
required
=
true
)
private
String
customerCategory
;
@NotBlank
(
message
=
"案例描述不能为空"
)
@ApiModelProperty
(
notes
=
"案例描述"
,
required
=
true
)
private
String
caseDescription
;
@NotBlank
(
message
=
"录音URL不能为空"
)
@ApiModelProperty
(
notes
=
"录音URL"
,
required
=
true
)
private
String
recordingUrl
;
@ApiModelProperty
(
notes
=
"录音时长(秒)"
)
private
Integer
recordingDuration
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/dj/supervisor/utils/CommonUtil.java
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
utils
;
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
utils
;
import
cn.com.glsx.dj.supervisor.constant.RopConstants
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.AbstractRopRequest
;
import
com.rop.AbstractRopRequest
;
import
com.rop.RopRequestContext
;
import
com.rop.RopRequestContext
;
import
com.rop.session.SimpleSession
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.oreframework.redis.service.RedisService
;
import
org.oreframework.redis.service.RedisService
;
...
@@ -183,4 +185,22 @@ public class CommonUtil {
...
@@ -183,4 +185,22 @@ public class CommonUtil {
}
}
return
list
.
isEmpty
()
?
null
:
list
;
return
list
.
isEmpty
()
?
null
:
list
;
}
}
public
static
LoginUserDTO
getLoginUser
(){
RopRequestContext
content
=
ThreadLocalCache
.
getRopRequestContext
();
if
(
content
==
null
){
return
null
;
}
try
{
SimpleSession
session
=
(
SimpleSession
)
content
.
getSession
();
if
(
session
==
null
)
{
return
null
;
}
LoginUserDTO
loginUser
=
(
LoginUserDTO
)
session
.
getAttribute
(
RopConstants
.
LOGIN_SESSION
);
return
loginUser
;
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
(),
e
);
}
return
null
;
}
}
}
src/main/java/cn/com/glsx/dj/supervisor/utils/LoginSourceTypeEnum.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
utils
;
public
enum
LoginSourceTypeEnum
{
/**
* D+平台
*/
D_PLUS
((
byte
)
0
,
"D+平台"
),
/**
* 服务商saas
*/
PARTNER_SAAS
((
byte
)
1
,
"服务商saas"
)
;
private
byte
value
;
private
String
displayName
;
LoginSourceTypeEnum
(
Byte
value
,
String
displayName
)
{
this
.
value
=
value
;
this
.
displayName
=
displayName
;
}
public
byte
getValue
()
{
return
value
;
}
public
String
getDisplayName
()
{
return
displayName
;
}
public
static
LoginSourceTypeEnum
getByValue
(
Byte
value
){
if
(
value
!=
null
)
{
for
(
LoginSourceTypeEnum
temp:
LoginSourceTypeEnum
.
values
())
{
if
(
temp
.
getValue
()
==
value
.
byteValue
())
{
return
temp
;
}
}
}
return
null
;
}
}
src/main/java/cn/com/glsx/dj/supervisor/utils/LoginUserDTO.java
0 → 100644
View file @
92ccce1
package
cn
.
com
.
glsx
.
dj
.
supervisor
.
utils
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.util.List
;
import
lombok.Data
;
import
lombok.ToString
;
/**
* @Title: LoginUserDTO.java !!!所有改动必须同步修改rop-common项目同名类
* @Description: 嘀加智享车生活rop登录用户信息
* @author caiym
* @date 2020年12月08日 10:29
* @version V1.0.0
* @Company: didihu.com.cn
* @Copyright Copyright (c) 2020
*/
@Data
@ToString
public
class
LoginUserDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3255611510352134004L
;
/** 有效的账号状态 **/
public
static
final
int
ENABLED_STATUS
=
2
;
public
static
final
int
ADMIN
=
1
;
@ApiModelProperty
(
notes
=
"登录类型2.员工 1.商户"
)
private
Integer
userType
;
@ApiModelProperty
(
notes
=
"用户名"
)
private
String
loginAccout
;
@ApiModelProperty
(
notes
=
"姓名"
)
private
String
userName
;
private
String
merchantName
;
private
Integer
bussinessId
;
private
Integer
accountLevel
;
private
Integer
status
;
@ApiModelProperty
(
notes
=
"商户号"
)
private
Integer
merchantId
;
private
String
phone
;
private
String
openId
;
@ApiModelProperty
(
notes
=
"渠道类型"
)
private
String
channelType
;
@ApiModelProperty
(
notes
=
"商户模式 1.集团版 2.门店版"
)
private
Integer
merchantModel
;
@ApiModelProperty
(
notes
=
"是否超管(1:是否,0:否)"
)
private
Integer
isAdmin
;
@ApiModelProperty
(
notes
=
"sap编码"
)
private
String
sapCode
;
@ApiModelProperty
(
notes
=
"企微id"
)
private
String
entmicroId
;
@ApiModelProperty
(
notes
=
"账号唯一id"
)
private
String
uuid
;
@ApiModelProperty
(
notes
=
"头像"
)
private
String
staffAvatar
;
private
Byte
loginSource
=
LoginSourceTypeEnum
.
D_PLUS
.
getValue
();
@ApiModelProperty
(
notes
=
"登录角色 3-区域督导 4-广联销售"
)
private
Integer
loginRole
;
@ApiModelProperty
(
notes
=
"广联数科下角色名称"
)
private
String
roleName
;
/**
* 用户数据权限商户ID
*/
private
List
<
Integer
>
permissionMerchantIds
;
private
List
<
String
>
merchantAccountList
;
@ApiModelProperty
(
notes
=
"登录角色在2.1业务角色权限导流方商户ID"
)
private
List
<
Integer
>
scene0PermissionMerchantIds
;
@ApiModelProperty
(
notes
=
"登录角色在1.1业务角色权限导流方商户ID"
)
private
List
<
Integer
>
scene1PermissionMerchantIds
;
public
boolean
isEnabled
(){
if
(
this
.
status
!=
null
&&
this
.
status
==
ENABLED_STATUS
){
return
true
;
}
return
false
;
}
public
boolean
curIsAdmin
(){
if
(
this
.
isAdmin
!=
null
&&
this
.
isAdmin
==
ADMIN
){
return
true
;
}
return
false
;
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment