| | |
| | | TParkingRecord parkingRecord = new TParkingRecord(); |
| | | parkingRecord.setLicensePlate(order.getPlate()); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); |
| | | String code = "TC" + Math.random() * 1000 + sdf.format(new Date()); |
| | | String code = "TC" + Double.valueOf(Math.random() * 1000).intValue() + sdf.format(new Date()); |
| | | parkingRecord.setCode(code); |
| | | parkingRecord.setVehicleColor(order.getPlateColor()); |
| | | TParkingLot data = parkingLotClient.getParkingLotByAppKey(order.getAppkey()).getData(); |
| | |
| | | TParkingRecord parkingRecord = new TParkingRecord(); |
| | | parkingRecord.setLicensePlate(order.getPlatenumber()); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); |
| | | String code = "TC" + Math.random() * 1000 + sdf.format(new Date()); |
| | | String code = "TC" + Double.valueOf(Math.random() * 1000).intValue() + sdf.format(new Date()); |
| | | parkingRecord.setCode(code); |
| | | parkingRecord.setVehicleColor(order.getPlatecolor()); |
| | | TParkingLot data = parkingLotClient.getParkingLotByAppKey(order.getAppkey()).getData(); |