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
650ef5bd
...
650ef5bddbe588f0936cb3ea748adc67b7ea4dca
authored
2022-06-30 10:25:54 +0800
by
xianghan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.添加UserTvBuilder中platform字段
1 parent
d51e654c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 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 @
650ef5b
...
...
@@ -24,28 +24,13 @@ 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
){
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
());
}
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
){
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,6 +40,7 @@ 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
);
...
...
Please
register
or
sign in
to post a comment