Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
向汉
/
uc-engine
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
504ee492
...
504ee4920d6cc74902433f413572f4f469bacf66
authored
2022-06-30 10:45:39 +0800
by
xianghan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.添加UserTvBuilder中platform字段
1 parent
b3ece12e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
member-service-impl/src/main/java/com/topdraw/business/module/user/iptv/domain/UserTvBuilder.java
member-service-impl/src/main/java/com/topdraw/business/module/user/iptv/domain/UserTvBuilder.java
View file @
504ee49
...
...
@@ -24,28 +24,17 @@ public class UserTvBuilder {
private
static
final
String
DEFAULT_CREATE_BY
=
"system"
;
private
static
final
String
DEFAULT_UPDATE_BY
=
"system"
;
public
static
UserTv
build
(
UserTv
userTv
){
return
build
(
userTv
.
getMemberId
(),
userTv
.
getMemberCode
(),
userTv
.
getId
(),
userTv
.
getPlatformAccount
(),
userTv
.
getNickname
(),
userTv
.
getUsername
(),
userTv
.
getLoginDays
(),
userTv
.
getStatus
(),
userTv
.
getContinueDays
(),
userTv
.
getCreateBy
(),
userTv
.
getUpdateBy
(),
userTv
.
getVisUserId
());
}
public
static
UserTv
build
(
Long
memberId
,
String
memberCode
,
UserTv
userTv
){
return
build
(
memberId
,
memberCode
,
userTv
.
getId
(),
userTv
.
getPlatformAccount
(),
userTv
.
getNickname
(),
userTv
.
getUsername
(),
userTv
.
getLoginDays
(),
userTv
.
getStatus
(),
userTv
.
getContinueDays
(),
userTv
.
getCreateBy
(),
userTv
.
getUpdateBy
(),
userTv
.
getVisUserId
());
}
public
static
UserTv
build
(
String
memberCode
,
UserTv
userTv
){
return
build
(
null
,
memberCode
,
userTv
.
getId
(),
userTv
.
getPlatformAccount
(),
userTv
.
getNickname
(),
userTv
.
getUsername
(),
userTv
.
getLoginDays
(),
userTv
.
getStatus
(),
userTv
.
getContinueDays
(),
userTv
.
getCreateBy
(),
userTv
.
getUpdateBy
(),
userTv
.
getVisUserId
());
}
public
static
UserTv
build
(
Member
member
,
UserTv
userTv
){
return
build
(
member
.
getId
()
,
member
.
getCode
(),
userTv
.
getId
(),
userTv
.
getPlatformAccount
(),
userTv
.
getNickname
(),
userTv
.
getUsername
(),
userTv
.
getLoginDays
(),
userTv
.
getStatus
(),
userTv
.
getContinueDays
(),
userTv
.
getCreateBy
(),
userTv
.
getUpdateBy
(),
userTv
.
getVisUserId
());
userTv
.
getLoginDays
(),
userTv
.
getStatus
(),
userTv
.
getContinueDays
(),
userTv
.
getCreateBy
(),
userTv
.
getUpdateBy
(),
userTv
.
getVisUserId
(),
userTv
.
getPlatform
(),
userTv
.
getPassword
(),
userTv
.
getGroups
());
}
public
static
UserTv
build
(
Long
memberId
,
String
memberCode
,
Long
id
,
String
platformAccount
,
String
nickname
,
String
username
,
Integer
loginDays
,
Integer
status
,
Integer
continueDays
,
String
createBy
,
String
updateBy
,
Long
visUserId
){
Integer
loginDays
,
Integer
status
,
Integer
continueDays
,
String
createBy
,
String
updateBy
,
Long
visUserId
,
String
platform
,
String
password
,
String
groups
){
Assert
.
notNull
(
memberId
,
GlobeExceptionMsg
.
MEMBER_ID_IS_NULL
);
Assert
.
notNull
(
memberCode
,
GlobeExceptionMsg
.
MEMBER_CODE_IS_NULL
);
Assert
.
notNull
(
platformAccount
,
GlobeExceptionMsg
.
IPTV_PLATFORM_ACCOUNT_IS_NULL
);
...
...
@@ -55,10 +44,13 @@ public class UserTvBuilder {
UserTv
userTv
=
new
UserTv
();
userTv
.
setId
(
id
);
userTv
.
setPlatformAccount
(
platformAccount
);
userTv
.
setPlatform
(
platform
);
userTv
.
setMemberCode
(
memberCode
);
userTv
.
setMemberId
(
memberId
);
userTv
.
setNickname
(
StringUtils
.
isBlank
(
nickname
)?
platformAccount:
nickname
);
userTv
.
setUsername
(
StringUtils
.
isBlank
(
username
)?
platformAccount:
username
);
userTv
.
setPassword
(
password
);
userTv
.
setGroups
(
groups
);
userTv
.
setLoginDays
(
Objects
.
nonNull
(
loginDays
)?
loginDays:
DEFAULT_VALUE
);
userTv
.
setLoginType
(
DEFAULT_VALUE
);
userTv
.
setStatus
(
Objects
.
nonNull
(
status
)?
status:
DEFAULT_VALUE
);
...
...
Please
register
or
sign in
to post a comment