|  |  | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.dao.business.model.Cars; | 
 |  |  | import com.doumee.service.business.CarsService; | 
 |  |  | import com.doumee.service.business.ParkBookService; | 
 |  |  | import com.doumee.service.business.impl.hksync.fhk.HkSyncVehicleFromHKServiceImpl; | 
 |  |  | import io.swagger.annotations.*; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private CarsService carsService; | 
 |  |  |     @Autowired | 
 |  |  |     private ParkBookService parkBookService; | 
 |  |  |     @Autowired | 
 |  |  |     private HkSyncVehicleFromHKServiceImpl hkSyncVehicleFromHKService; | 
 |  |  |  | 
 |  |  | 
 |  |  |     }) | 
 |  |  |     @CloudRequiredPermission("business:cars:create") | 
 |  |  |     public ApiResponse<String> importExcel (@ApiParam(value = "file") MultipartFile file, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
 |  |  |         return ApiResponse.success(carsService.importBatch(file,this.getLoginUser(token))); | 
 |  |  |         List<Cars> carsList = carsService.importBatch(file,this.getLoginUser(token)); | 
 |  |  |         //异步更新车辆授权数据 | 
 |  |  |         carsService.dealCarsAuthBiz(carsList); | 
 |  |  |         return ApiResponse.success("导入成功"); | 
 |  |  |     } | 
 |  |  | } |