| | |
| | | Assert.hasValue(os[0], (osIndex + 1) + "车牌号不能为空"); |
| | | Assert.hasValue(os[1], (osIndex + 1) + "业主不能为空"); |
| | | // Assert.hasValue(os[2], (osIndex + 1) + "手机号不能为空"); |
| | | Assert.hasValue(os[3], (osIndex + 1) + "车辆品牌不能为空"); |
| | | Assert.hasValue(os[4], (osIndex + 1) + "车辆类型不能为空"); |
| | | Assert.hasValue(os[5], (osIndex + 1) + "颜色不能为空"); |
| | | Assert.hasValue(os[6], (osIndex + 1) + "停车场不能为空"); |
| | | Assert.hasValue(os[7], (osIndex + 1) + "车位不能为空"); |
| | | // Assert.hasValue(os[3], (osIndex + 1) + "车辆品牌不能为空"); |
| | | // Assert.hasValue(os[4], (osIndex + 1) + "车辆类型不能为空"); |
| | | // Assert.hasValue(os[5], (osIndex + 1) + "颜色不能为空"); |
| | | // Assert.hasValue(os[6], (osIndex + 1) + "停车场不能为空"); |
| | | // Assert.hasValue(os[7], (osIndex + 1) + "车位不能为空"); |
| | | Assert.hasValue(os[8], (osIndex + 1) + "起租时间不能为空"); |
| | | Assert.hasValue(os[9], (osIndex + 1) + "截止时间不能为空"); |
| | | Assert.hasValue(os[10], (osIndex + 1) + "停车场类型不能为空"); |
| | | // Assert.hasValue(os[10], (osIndex + 1) + "停车场类型不能为空"); |
| | | Assert.hasValue(os[11], (osIndex + 1) + "车位类型不能为空"); |
| | | String startTime = excelDoubleToDate(os[8].toString()); |
| | | String endTime = excelDoubleToDate(os[9].toString()); |
| | |
| | | importOwnerCar.setCarNum(os[0].toString().trim()); |
| | | importOwnerCar.setOwnerName(os[1].toString().trim()); |
| | | importOwnerCar.setLink(os[2] == null ? "" : os[2].toString().trim()); |
| | | importOwnerCar.setCarBrand(os[3].toString().trim()); |
| | | importOwnerCar.setCarType(os[4].toString().trim()); |
| | | importOwnerCar.setCarColor(os[5].toString().trim()); |
| | | importOwnerCar.setAreaNum(os[6].toString().trim()); |
| | | importOwnerCar.setCarBrand(os[3] == null ? "" : os[3].toString().trim()); |
| | | importOwnerCar.setCarType(os[4] == null ? "" : os[4].toString().trim()); |
| | | importOwnerCar.setCarColor(os[5] == null ? "" : os[5].toString().trim()); |
| | | importOwnerCar.setAreaNum(os[6] == null ? "" : os[6].toString().trim()); |
| | | //获取车位 |
| | | String parkingLot = os[7].toString().trim(); |
| | | String parkingLot = os[7] == null ? "" : os[7].toString().trim(); |
| | | importOwnerCar.setNum(parkingLot); |
| | | importOwnerCar.setLogStartTime(startTime); |
| | | importOwnerCar.setLogEndTime(endTime); |
| | | importOwnerCar.setTypeCd(os[10].toString().trim()); |
| | | importOwnerCar.setTypeCd(os[10] == null ? "" : os[10].toString().trim()); |
| | | importOwnerCar.setSpaceSate(os[11].toString().trim()); |
| | | importOwnerCar.setCommunityId(result.getCommunityId()); |
| | | importOwnerCar.setUserId(result.getUserId()); |
| | |
| | | */ |
| | | private void validateCarInfo(List<OwnerCarDto> ownerCars) { |
| | | for (OwnerCarDto ownerCarDto : ownerCars) { |
| | | |
| | | if ("".equals(ownerCarDto.getTypeCd()) || ownerCarDto.getTypeCd() == null) { |
| | | continue; |
| | | } |
| | | if (!"1001".equals(ownerCarDto.getTypeCd()) && !"2001".equals(ownerCarDto.getTypeCd())) { |
| | | throw new IllegalArgumentException(ownerCarDto.getCarNum() + "停车场类型应填写 1001(地上停车场)或者 2001 (地下停车场)"); |
| | | } |