| | |
| | | package com.doumee.api; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.service.business.impl.hksync.HkSyncEmpowerServiceImpl; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.impl.hksync.HkSyncParkServiceImpl; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncVehicleFromHKServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | private HkSyncParkServiceImpl hkSyncParkService; |
| | | |
| | | @ApiOperation("开启定时车辆包期授权") |
| | | @GetMapping("/syncParkBookData") |
| | | @PostMapping("/syncParkBookData") |
| | | public ApiResponse syncParkBookData() { |
| | | hkSyncParkService.syncParkBookData(); |
| | | return ApiResponse.success("开启定时车辆包期授权成功"); |
| | | } |
| | | @ApiOperation("开启定时查询车辆查询") |
| | | @GetMapping("/syncVehicleUpdateData") |
| | | @PostMapping("/syncVehicleUpdateData") |
| | | public ApiResponse syncVehicleUpdateData() { |
| | | hkSyncVehicleFromHKService.syncVehicleUpdateData(new Date(System.currentTimeMillis()-24*60*60*1000)); |
| | | return ApiResponse.success("开启定时查询车辆查询成功"); |