| | |
| | | model.addAttribute("companyMoney",""); |
| | | } |
| | | TPubTransactionDetails pubTransactionDetailDriver = tPubTransactionDetails.stream().filter(e -> e.getOrderType().equals(2)).findFirst().orElse(null); |
| | | if(Objects.nonNull(pubTransactionDetailCompany)){ |
| | | if(Objects.nonNull(pubTransactionDetailDriver)){ |
| | | model.addAttribute("driverMoney",pubTransactionDetailDriver.getMoney()); |
| | | }else { |
| | | model.addAttribute("driverMoney",""); |
| | |
| | | tOrderTaxi.setUserId(tUser.getId()); |
| | | tOrderTaxi.setOrderNum(this.getOrderNum()); |
| | | tOrderTaxi.setPlacementAddress(tOrderTaxi.getStartAddress()); |
| | | tOrderTaxi.setPlacementLon(Double.valueOf(s.get(0).split(",")[0])); |
| | | tOrderTaxi.setPlacementLat(Double.valueOf(s.get(0).split(",")[1])); |
| | | tOrderTaxi.setStartLon(Double.valueOf(s.get(0).split(",")[0])); |
| | | tOrderTaxi.setStartLat(Double.valueOf(s.get(0).split(",")[1])); |
| | | tOrderTaxi.setEndLon(Double.valueOf(e.get(0).split(",")[0])); |
| | | tOrderTaxi.setEndLat(Double.valueOf(e.get(0).split(",")[1])); |
| | | tOrderTaxi.setPlacementLon(Double.valueOf(s.get(0).split(",")[1])); |
| | | tOrderTaxi.setPlacementLat(Double.valueOf(s.get(0).split(",")[0])); |
| | | tOrderTaxi.setStartLon(Double.valueOf(s.get(0).split(",")[1])); |
| | | tOrderTaxi.setStartLat(Double.valueOf(s.get(0).split(",")[0])); |
| | | tOrderTaxi.setEndLon(Double.valueOf(e.get(0).split(",")[1])); |
| | | tOrderTaxi.setEndLat(Double.valueOf(e.get(0).split(",")[0])); |
| | | tOrderTaxi.setMileage(0D); |
| | | tOrderTaxi.setOrderMoney(new BigDecimal(0)); |
| | | tOrderTaxi.setTravelMoney(new BigDecimal(0)); |