提交 6d927f2c authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 77867070
......@@ -14,6 +14,8 @@ import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
......@@ -70,6 +72,7 @@ import tk.mybatis.mapper.entity.Example;
@RestController
@RequestMapping("/fg/personal-center")
@Api(description = "个人中心")
@EnableScheduling
public class PersonalCenterConteroller {
private final static Logger logger = LoggerFactory.getLogger(PersonalCenterConteroller.class);
@Autowired
......@@ -393,9 +396,7 @@ public class PersonalCenterConteroller {
*
* @return
*/
@Scheduled(cron = "0 0 0 /1 * ?")
@ApiOperation(value = "修改vip状态)", notes = "修改vip状态")
@PostMapping(value = "/update/vip/status")
@Scheduled(cron="0 0 1 * * ?")
public CallBack<Boolean> updateVipMember() {
Example example = new Example(PersonalMember.class);
example.createCriteria().andEqualTo("vip", 1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论