Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
Details
Activity
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
licc
data-server
Commits
aa408647
Commit
aa408647
authored
Mar 11, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试定时任务 2
parent
b6f153c9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
202 additions
and
27 deletions
+202
-27
MonthTaskService.java
.../main/java/cn/wisenergy/service/app/MonthTaskService.java
+0
-8
AccountServiceImpl.java
...ava/cn/wisenergy/service/app/impl/AccountServiceImpl.java
+5
-2
MonthTaskServiceImpl.java
...a/cn/wisenergy/service/app/impl/MonthTaskServiceImpl.java
+189
-10
AccountController.java
...wisenergy/web/admin/controller/app/AccountController.java
+1
-1
LastAccountController.java
...nergy/web/admin/controller/app/LastAccountController.java
+7
-6
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/MonthTaskService.java
View file @
aa408647
package
cn
.
wisenergy
.
service
.
app
;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.model.app.OrderInfo
;
import
java.util.List
;
/**
*@ Description: 月定时任务接口定义
...
...
@@ -13,11 +10,6 @@ import java.util.List;
*/
public
interface
MonthTaskService
{
/**
* 订单返佣-月任务
* @return true or false
*/
R
<
Boolean
>
orderRebate
();
/**
* 收益和业绩统计(月度肥料)-月任务
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/AccountServiceImpl.java
View file @
aa408647
...
...
@@ -70,8 +70,8 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
@XxlJob
(
value
=
"orderRebateDayTask"
)
@Override
public
R
<
Boolean
>
orderRebate
()
{
log
.
info
(
"
测试执行定时任务,三分钟执行一次
"
);
//获取返佣订单
log
.
info
(
"
订单返佣接口定时-日任务
"
);
//
//
获取返佣订单
List
<
OrderInfo
>
list
=
orderMapper
.
getListBySuccessTime
(
new
Date
());
log
.
info
(
"shop-mall[]AccountServiceImpl[]orderRebate[]input.param.list:{}"
,
list
.
size
());
if
(
CollectionUtils
.
isEmpty
(
list
))
{
...
...
@@ -114,9 +114,11 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
return
R
.
ok
(
accountInfo
);
}
@XxlJob
(
value
=
"monthManureDayTask"
)
@Override
public
R
<
Boolean
>
performanceCount
()
{
//获取本月订单
log
.
info
(
"月度肥料定时-日任务"
);
List
<
OrderInfo
>
list
=
orderMapper
.
getByCreateTime
(
new
Date
());
log
.
info
(
"shop-mall[]AccountServiceImpl[]performanceCount[]input.param.list:{}"
,
list
.
size
());
if
(
CollectionUtils
.
isEmpty
(
list
))
{
...
...
@@ -211,6 +213,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, AccountInfo>
return
list
;
}
@XxlJob
(
value
=
"growthAwardDayTask"
)
@Override
public
R
<
Boolean
>
progressPrizeCount
()
{
log
.
info
(
"shop-mall[]AccountServiceImpl[]performanceCount[]input.method"
);
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/MonthTaskServiceImpl.java
View file @
aa408647
This diff is collapsed.
Click to expand it.
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/AccountController.java
View file @
aa408647
...
...
@@ -19,7 +19,7 @@ import java.util.List;
/**
* @author 86187
*/
@Api
(
tags
=
"账户管
路
"
)
@Api
(
tags
=
"账户管
理
"
)
@RestController
@RequestMapping
(
"/account"
)
@Slf4j
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/LastAccountController.java
View file @
aa408647
...
...
@@ -2,6 +2,7 @@ package cn.wisenergy.web.admin.controller.app;
import
cn.wisenergy.service.app.AccountService
;
import
cn.wisenergy.service.app.MonthTaskService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -20,11 +21,11 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
public
class
LastAccountController
{
@Autowired
private
AccountService
account
Service
;
private
MonthTaskService
monthTask
Service
;
//
@ApiOperation(value = "复制表-结构和数据", notes = "复制表-结构和数据", httpMethod = "PUT")
//
@PutMapping("/add")
// public void copyTable()
{
// account
Service.mirrorImage();
//
}
@ApiOperation
(
value
=
"复制表-结构和数据"
,
notes
=
"复制表-结构和数据"
,
httpMethod
=
"PUT"
)
@PutMapping
(
"/add"
)
public
void
copyTable
()
{
monthTask
Service
.
mirrorImage
();
}
}
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