Commit 4660ffb6 authored by licc's avatar licc

新增月,定时任务

parent 5d78256d
...@@ -34,6 +34,7 @@ import java.util.Map; ...@@ -34,6 +34,7 @@ import java.util.Map;
/** /**
* Created by m1991 on 2021/3/2 13:35 * Created by m1991 on 2021/3/2 13:35
* @author 86187
*/ */
@Api(tags = "登录/注册") @Api(tags = "登录/注册")
@Slf4j @Slf4j
...@@ -48,16 +49,13 @@ public class LoginController { ...@@ -48,16 +49,13 @@ public class LoginController {
@Autowired @Autowired
private UserService usersService; private UserService usersService;
// @Autowired
// private Result result;
/** /**
* 手机登录接口 * 手机登录接口
* *
* @param userId * @param userId 用户id
* @param sms * @param sms 短信验证码
* @return * @return 返回结果
* @throws Exception * @throws Exception 异常
*/ */
@ApiOperation(value = "登录", notes = "登录", httpMethod = "POST", produces = "application/json;charset=UTF-8") @ApiOperation(value = "登录", notes = "登录", httpMethod = "POST", produces = "application/json;charset=UTF-8")
...@@ -74,7 +72,6 @@ public class LoginController { ...@@ -74,7 +72,6 @@ public class LoginController {
map.put("code", "1003"); map.put("code", "1003");
map.put("msg", "验证码错误"); map.put("msg", "验证码错误");
// throw new BaseException(ResultEnum.FAIL_VERIFY);
return map; return map;
} }
redisUtils.delete(key); redisUtils.delete(key);
...@@ -197,7 +194,7 @@ public class LoginController { ...@@ -197,7 +194,7 @@ public class LoginController {
/** /**
* 退出登录 * 退出登录
* *
* @param request * @param token
* @return * @return
*/ */
@ApiOperation(value = "退出登录", produces = "application/json", notes = "退出登录") @ApiOperation(value = "退出登录", produces = "application/json", notes = "退出登录")
......
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");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment