Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shop-Mall
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
shop-Mall
Commits
4660ffb6
Commit
4660ffb6
authored
Mar 15, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增月,定时任务
parent
5d78256d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
9 deletions
+50
-9
LoginController.java
...n/wisenergy/web/admin/controller/app/LoginController.java
+6
-9
MonthTaskController.java
...senergy/web/admin/controller/app/MonthTaskController.java
+44
-0
No files found.
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/LoginController.java
View file @
4660ffb6
...
...
@@ -34,6 +34,7 @@ import java.util.Map;
/**
* Created by m1991 on 2021/3/2 13:35
* @author 86187
*/
@Api
(
tags
=
"登录/注册"
)
@Slf4j
...
...
@@ -48,16 +49,13 @@ public class LoginController {
@Autowired
private
UserService
usersService
;
// @Autowired
// private Result result;
/**
* 手机登录接口
*
* @param userId
* @param sms
* @return
* @throws Exception
* @param userId
用户id
* @param sms
短信验证码
* @return
返回结果
* @throws Exception
异常
*/
@ApiOperation
(
value
=
"登录"
,
notes
=
"登录"
,
httpMethod
=
"POST"
,
produces
=
"application/json;charset=UTF-8"
)
...
...
@@ -74,7 +72,6 @@ public class LoginController {
map
.
put
(
"code"
,
"1003"
);
map
.
put
(
"msg"
,
"验证码错误"
);
// throw new BaseException(ResultEnum.FAIL_VERIFY);
return
map
;
}
redisUtils
.
delete
(
key
);
...
...
@@ -197,7 +194,7 @@ public class LoginController {
/**
* 退出登录
*
* @param
request
* @param
token
* @return
*/
@ApiOperation
(
value
=
"退出登录"
,
produces
=
"application/json"
,
notes
=
"退出登录"
)
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/MonthTaskController.java
0 → 100644
View file @
4660ffb6
package
cn
.
wisenergy
.
web
.
admin
.
controller
.
app
;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.service.app.MonthTaskService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author 86187
*/
@Api
(
tags
=
"月度任务管理"
)
@RestController
@RequestMapping
(
"/task"
)
@Slf4j
public
class
MonthTaskController
{
@Autowired
private
MonthTaskService
monthTaskService
;
@ApiOperation
(
value
=
"月度肥料--月定时任务"
,
notes
=
"月度肥料--月定时任务"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/monthManure"
)
public
R
<
Boolean
>
monthManure
()
{
return
monthTaskService
.
performanceCount
();
}
@ApiOperation
(
value
=
"最大进步奖--月定时任务"
,
notes
=
"最大进步奖--月定时任务"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/growAward"
)
public
R
<
Boolean
>
growAward
()
{
return
monthTaskService
.
progressPrizeCount
();
}
@ApiOperation
(
value
=
""
,
notes
=
"账户表镜像---每月更新一次,保存上一个的数据"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/mirrorImage"
)
public
R
<
String
>
mirrorImage
()
{
monthTaskService
.
mirrorImage
();
return
R
.
ok
(
"success"
);
}
}
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