Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
56e57d3e
Commit
56e57d3e
authored
Jan 08, 2020
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wallet_detail' into dev
parents
4f9d00c3
2424713b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
UserMemberSaveDTO.java
.../github/wxiaoqi/security/admin/dto/UserMemberSaveDTO.java
+5
-0
BaseUserMemberExportBiz.java
...b/wxiaoqi/security/admin/biz/BaseUserMemberExportBiz.java
+4
-0
No files found.
ace-modules/ace-admin-api/src/main/java/com/github/wxiaoqi/security/admin/dto/UserMemberSaveDTO.java
View file @
56e57d3e
...
...
@@ -2,6 +2,7 @@ package com.github.wxiaoqi.security.admin.dto;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.util.StringUtils
;
/**
* @author libin
...
...
@@ -43,4 +44,8 @@ public class UserMemberSaveDTO {
*/
@ApiModelProperty
(
value
=
"剩余天数"
)
private
Integer
source
;
public
String
getPhone
()
{
return
StringUtils
.
hasText
(
phone
)?
phone
.
trim
():
""
;
}
}
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/BaseUserMemberExportBiz.java
View file @
56e57d3e
...
...
@@ -19,6 +19,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StringUtils
;
import
tk.mybatis.mapper.entity.Example
;
import
java.time.Instant
;
...
...
@@ -88,6 +89,7 @@ public class BaseUserMemberExportBiz extends BaseBiz<BaseUserMemberExportMapper,
.
discount
(
level
==
null
?
0
:
level
.
getDiscount
()
==
null
?
0
:
level
.
getDiscount
())
.
status
(
hasUsed
?
1
:
0
)
.
userId
(
hasUsed
?
phoneAndUserIdMap
.
get
(
userMemberSaveDTO
.
getPhone
()):
null
)
.
source
(
0
)
.
crtId
(
userId
)
.
crtName
(
name
)
.
crtTime
(
Instant
.
now
().
toEpochMilli
())
...
...
@@ -153,6 +155,7 @@ public class BaseUserMemberExportBiz extends BaseBiz<BaseUserMemberExportMapper,
Integer
memberLevel
,
Integer
discount
,
AtomicInteger
counter
,
Map
<
Integer
,
UserMemberDTO
>
numAndUserMemberMap
)
{
for
(
String
[]
data
:
userMemberData
)
{
String
phone
=
data
[
0
];
phone
=
StringUtils
.
hasText
(
phone
)?
phone
.
trim
():
""
;
String
memberLevelName
=
data
[
1
];
String
memberName
=
data
[
2
];
String
totalNumber
=
data
[
3
];
...
...
@@ -197,6 +200,7 @@ public class BaseUserMemberExportBiz extends BaseBiz<BaseUserMemberExportMapper,
.
userId
(
hasUsed
?
phoneAndUserIdMap
.
get
(
phone
):
null
)
.
crtId
(
userId
)
.
memberName
(
memberName
)
.
source
(
0
)
.
crtName
(
userName
)
.
crtTime
(
Instant
.
now
().
toEpochMilli
())
.
verificationTime
(
hasUsed
?
Instant
.
now
().
toEpochMilli
():
null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment