| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.dao.business.model.Cars; |
| | | import com.doumee.service.business.CarsService; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncVehicleFromHKServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | |
| | | |
| | | @Autowired |
| | | private CarsService carsService; |
| | | @Autowired |
| | | private HkSyncVehicleFromHKServiceImpl hkSyncVehicleFromHKService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | |
| | | carsService.updateById(cars); |
| | | return ApiResponse.success(null); |
| | | } |
| | | @ApiOperation("全量同步车辆信息") |
| | | @PostMapping("/sync") |
| | | @RequiresPermissions("business:cars:sync") |
| | | public ApiResponse sync(@RequestBody Cars cars) { |
| | | hkSyncVehicleFromHKService.syncVehicleData(); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("分页查询") |
| | | @PostMapping("/page") |