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
1e0eabc8
Commit
1e0eabc8
authored
Jul 29, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
ee300577
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
MyWaterBiz.java
...ava/com/github/wxiaoqi/security/admin/biz/MyWaterBiz.java
+3
-0
RentDepositJobHandler.java
...aoqi/security/admin/jobhandler/RentDepositJobHandler.java
+6
-6
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWaterBiz.java
View file @
1e0eabc8
...
...
@@ -9,6 +9,7 @@ import com.github.wxiaoqi.security.admin.mapper.MyWalletMapper;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.xxfc.platform.activity.feign.ActivityFeign
;
import
com.xxl.job.core.log.XxlJobLogger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -186,9 +187,11 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{
example
.
createCriteria
().
andGreaterThan
(
"todayAmount"
,
0
).
andEqualTo
(
"isFrozen"
,
0
);
List
<
MyWallet
>
list
=
selectByExample
(
example
);
log
.
info
(
"---钱包定时处理今日收益updTodayAmount----size==="
+
list
.
size
());
XxlJobLogger
.
log
(
"---钱包定时处理今日收益updTodayAmount----size==="
+
list
.
size
());
if
(
list
.
size
()>
0
){
for
(
MyWallet
myWallet:
list
){
log
.
info
(
"---钱包定时处理今日收益updTodayAmount----userId==="
+
myWallet
.
getUserId
());
XxlJobLogger
.
log
(
"---钱包定时处理今日收益updTodayAmount----userId==="
+
myWallet
.
getUserId
());
MyWallet
myWallet1
=
new
MyWallet
();
myWallet1
.
setId
(
myWallet
.
getId
());
myWallet1
.
setTodayAmount
(
new
BigDecimal
(
"0.00"
));
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/jobhandler/RentDepositJobHandler.java
View file @
1e0eabc8
...
...
@@ -19,18 +19,18 @@ import java.io.Serializable;
*/
@JobHandler
(
value
=
"walletHandler"
)
@Component
//
@Slf4j
@Slf4j
public
class
RentDepositJobHandler
extends
IJobHandler
{
//
@Autowired
//
MyWaterBiz myWaterBiz;
@Autowired
MyWaterBiz
myWaterBiz
;
@Override
public
ReturnT
<
String
>
execute
(
String
var1
)
{
try
{
XxlJobLogger
.
log
(
"-----定时器进入---walletHandler---"
);
//
log.info("-----定时器进入---walletHandler---");
//
myWaterBiz.updTodayAmount();
XxlJobLogger
.
log
(
"-----定时器进入---walletHandler---"
);
log
.
info
(
"-----定时器进入---walletHandler---"
);
myWaterBiz
.
updTodayAmount
();
ReturnT
returnT
=
new
ReturnT
();
returnT
.
setCode
(
100
);
returnT
.
setMsg
(
"成功"
);
...
...
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