| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.dao.admin.response.VisitEventDTO; |
| | | import com.doumee.dao.business.model.CarEvent; |
| | | import com.doumee.dao.business.model.VisitEvent; |
| | | import com.doumee.dao.system.vo.VisitEventVo; |
| | | import com.doumee.service.business.VisitEventService; |
| | | import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | |
| | | |
| | | @Autowired |
| | | private VisitEventService visitEventService; |
| | | @Autowired |
| | | private HkSyncVisitServiceImpl hkSyncVisitService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(visitEventService.findById(id)); |
| | | } |
| | | |
| | | @ApiOperation("根据日期(starttime)同步过车数据") |
| | | @PostMapping("/syncByDate") |
| | | @RequiresPermissions("business:carevent:sync") |
| | | public ApiResponse syncByDate(@RequestBody VisitEvent param) { |
| | | hkSyncVisitService.syncVisitRecords(param.getCreateDate()); |
| | | return ApiResponse.success(null); |
| | | } |
| | | } |