| | |
| | | package com.doumee.api; |
| | | |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.service.business.JkCabinetLogService; |
| | | import com.doumee.service.business.JkCustomerService; |
| | | import com.doumee.service.business.impl.JkCabinetGridServiceImpl; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.apache.shiro.mgt.DefaultSecurityManager; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | */ |
| | | @Api(tags = "钥匙柜定时器") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping("/timer/jkCabinet") |
| | | public class JkCabinetTimerController extends BaseController { |
| | | @Autowired |
| | |
| | | @ApiOperation("定时发送钥匙未及时归还通知") |
| | | @PostMapping("/timeOutUnBackAlarm") |
| | | public ApiResponse timeOutUnBackAlarm() { |
| | | log.error("定时发送钥匙未及时归还通知开始" + DateUtil.getCurrDateTime() ); |
| | | jkCabinetLogService.timeOutUnBackAlarm(impl); |
| | | log.error("定时发送钥匙未及时归还通知结束" + DateUtil.getCurrDateTime() ); |
| | | return ApiResponse.success("定时发送钥匙未及时归还通知"); |
| | | } |
| | | |