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
e9e0e483
Commit
e9e0e483
authored
Jul 29, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ec7ca7be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
MyWalletDetailBiz.java
.../github/wxiaoqi/security/admin/biz/MyWalletDetailBiz.java
+3
-1
MyWaterBiz.java
...ava/com/github/wxiaoqi/security/admin/biz/MyWaterBiz.java
+5
-3
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWalletDetailBiz.java
View file @
e9e0e483
...
...
@@ -17,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.util.StringUtils
;
import
tk.mybatis.mapper.entity.Example
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Comparator
;
...
...
@@ -34,8 +35,9 @@ import java.util.stream.Collectors;
@Transactional
@Service
@Data
public
class
MyWalletDetailBiz
extends
BaseBiz
<
MyWalletDetailMapper
,
MyWalletDetail
>
{
public
class
MyWalletDetailBiz
extends
BaseBiz
<
MyWalletDetailMapper
,
MyWalletDetail
>
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
public
PageDataVO
<
WalletDetailPageVo
>
findWalletDetailPage
(
Integer
userId
,
Integer
pageNo
,
Integer
pageSize
){
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWaterBiz.java
View file @
e9e0e483
...
...
@@ -185,13 +185,15 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>implements Seri
public
void
updTodayAmount
(){
Example
example
=
new
Example
(
MyWallet
.
class
);
example
.
createCriteria
().
andGreaterThan
(
"todayAmount"
,
0
).
andEqualTo
(
"isFrozen"
,
0
);
List
<
MyWallet
>
list
=
mapper
.
selectByExample
(
example
);
List
<
MyWallet
>
list
=
selectByExample
(
example
);
log
.
info
(
"---钱包定时处理今日收益updTodayAmount----size==="
+
list
.
size
());
if
(
list
.
size
()>
0
){
for
(
MyWallet
myWallet:
list
){
log
.
info
(
"---钱包定时处理今日收益updTodayAmount----userId==="
+
myWallet
.
getUserId
());
myWallet
.
setTodayAmount
(
new
BigDecimal
(
"0.00"
));
mapper
.
updMyWater
(
myWallet
);
MyWallet
myWallet1
=
new
MyWallet
();
myWallet1
.
setId
(
myWallet
.
getId
());
myWallet1
.
setTodayAmount
(
new
BigDecimal
(
"0.00"
));
updateSelectiveById
(
myWallet1
);
}
}
...
...
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