| | |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncVehicleFromHKServiceImpl; |
| | | 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.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "停车场接口") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/timer/park") |
| | | public class HkParkTimerController extends BaseController { |
| | |
| | | @ApiOperation("开启定时车辆包期授权") |
| | | @PostMapping("/syncParkBookData") |
| | | public ApiResponse syncParkBookData() { |
| | | log.info("定时任务执行开始:syncParkBookData-车辆包期授权"); |
| | | hkSyncParkService.syncParkBookData(); |
| | | return ApiResponse.success("开启定时车辆包期授权成功"); |
| | | } |
| | | @ApiOperation("开启定时查询车辆查询") |
| | | @PostMapping("/syncVehicleUpdateData") |
| | | public ApiResponse syncVehicleUpdateData() { |
| | | log.info("定时任务执行开始:syncVehicleUpdateData-查询车辆"); |
| | | hkSyncVehicleFromHKService.syncVehicleUpdateData(new Date(System.currentTimeMillis()-24*60*60*1000)); |
| | | return ApiResponse.success("开启定时查询车辆查询成功"); |
| | | } |