| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.modular.CharteredCar.model.OrderCharteredCar; |
| | | import com.stylefeng.guns.modular.CharteredCar.server.IOrderCharteredCarService; |
| | | import com.stylefeng.guns.modular.crossCity.dao.OrderCrossCityMapper; |
| | | import com.stylefeng.guns.modular.crossCity.model.OrderCrossCity; |
| | | import com.stylefeng.guns.modular.crossCity.server.IOrderCrossCityService; |
| | | import com.stylefeng.guns.modular.specialTrain.model.OrderPrivateCar; |
| | | import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService; |
| | | import com.stylefeng.guns.modular.system.dao.InvoiceMapper; |
| | | import com.stylefeng.guns.modular.system.model.Invoice; |
| | | import com.stylefeng.guns.modular.system.service.IInvoiceService; |
| | | import com.stylefeng.guns.modular.taxi.model.OrderTaxi; |
| | | import com.stylefeng.guns.modular.taxi.service.IOrderTaxiService; |
| | | import com.stylefeng.guns.modular.transfer.model.OrderTransferCar; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | @Autowired |
| | | private IOrderTaxiService orderTaxiService; |
| | | |
| | | @Autowired |
| | | private IOrderPrivateCarService orderPrivateCarService; |
| | | @Autowired |
| | | private IOrderCrossCityService crossCityService; |
| | | @Autowired |
| | | private IOrderCharteredCarService orderCharteredCarService; |
| | | |
| | | |
| | | /** |
| | |
| | | Integer orderId = jsonObject.getIntValue("id"); |
| | | switch (orderType){ |
| | | case 1://专车 |
| | | OrderPrivateCar privateCar= orderPrivateCarService.selectById(orderId); |
| | | sum.add(new BigDecimal(privateCar.getPayMoney())); |
| | | break; |
| | | case 2://出租车 |
| | | OrderTaxi orderTaxi = orderTaxiService.selectById(orderId); |
| | | sum.add(new BigDecimal(orderTaxi.getPayMoney())); |
| | | break; |
| | | case 3://跨城出行 |
| | | OrderCrossCity orderCrossCity = crossCityService.selectById(orderId); |
| | | sum.add(new BigDecimal(orderCrossCity.getPayMoney())); |
| | | break; |
| | | case 4://同城小件物流 |
| | | break; |
| | | case 5://跨城小件物流 |
| | | break; |
| | | // case 6://包车 |
| | | // OrderCharteredCar orderCharteredCar = orderCharteredCarService.selectById(orderId); |
| | | // sum.add(new BigDecimal(orderCharteredCar.getPayMoney())); |
| | | // break; |
| | | case 7://接送机 |
| | | break; |
| | | } |
| | | } |
| | | |