| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.stylefeng.guns.modular.crossCity.model.OrderCrossCity; |
| | | import com.stylefeng.guns.modular.crossCity.server.IOrderCrossCityService; |
| | | import com.stylefeng.guns.modular.smallLogistics.model.OrderLogistics; |
| | | import com.stylefeng.guns.modular.smallLogistics.server.IOrderLogisticsService; |
| | | 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; |
| | |
| | | @Autowired |
| | | private IOrderTaxiService orderTaxiService; |
| | | |
| | | @Autowired |
| | | private IOrderPrivateCarService orderPrivateCarService; |
| | | |
| | | @Autowired |
| | | private IOrderCrossCityService orderCrossCityService; |
| | | |
| | | @Autowired |
| | | private IOrderLogisticsService orderLogisticsService; |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | Integer orderId = jsonObject.getIntValue("id"); |
| | | switch (orderType){ |
| | | case 1://专车 |
| | | OrderPrivateCar orderPrivateCar = orderPrivateCarService.selectById(orderId); |
| | | sum=sum.add(new BigDecimal(orderPrivateCar.getPayMoney())); |
| | | break; |
| | | case 2://出租车 |
| | | OrderTaxi orderTaxi = orderTaxiService.selectById(orderId); |
| | | sum=sum.add(new BigDecimal(orderTaxi.getPayMoney())); |
| | | sum.add(new BigDecimal(orderTaxi.getPayMoney())); |
| | | break; |
| | | case 3://跨城出行 |
| | | OrderCrossCity orderCrossCity = orderCrossCityService.selectById(orderId); |
| | | sum=sum.add(new BigDecimal(orderCrossCity.getPayMoney())); |
| | | break; |
| | | case 4://同城小件物流 |
| | | OrderLogistics orderLogistics = orderLogisticsService.selectById(orderId); |
| | | sum=sum.add(new BigDecimal(orderLogistics.getPayMoney())); |
| | | break; |
| | | case 5://跨城小件物流 |
| | | OrderLogistics orderLogistics1 = orderLogisticsService.selectById(orderId); |
| | | sum=sum.add(new BigDecimal(orderLogistics1.getPayMoney())); |
| | | break; |
| | | } |
| | | } |
| | |
| | | Integer orderId = jsonObject.getIntValue("id"); |
| | | switch (orderType){ |
| | | case 1://专车 |
| | | OrderPrivateCar orderPrivateCar = orderPrivateCarService.selectById(orderId); |
| | | orderPrivateCar.setInvoiceId(invoice.getId()); |
| | | orderPrivateCarService.updateById(orderPrivateCar); |
| | | break; |
| | | case 2://出租车 |
| | | OrderTaxi orderTaxi = orderTaxiService.selectById(orderId); |
| | |
| | | orderTaxiService.updateById(orderTaxi); |
| | | break; |
| | | case 3://跨城出行 |
| | | OrderCrossCity orderCrossCity = orderCrossCityService.selectById(orderId); |
| | | orderCrossCity.setInvoiceId(invoice.getId()); |
| | | orderCrossCityService.updateById(orderCrossCity); |
| | | break; |
| | | case 4://同城小件物流 |
| | | OrderLogistics orderLogistics = orderLogisticsService.selectById(orderId); |
| | | orderLogistics.setInvoiceId(invoice.getId()); |
| | | orderLogisticsService.updateById(orderLogistics); |
| | | break; |
| | | case 5://跨城小件物流 |
| | | OrderLogistics orderLogistics1 = orderLogisticsService.selectById(orderId); |
| | | orderLogistics1.setInvoiceId(invoice.getId()); |
| | | orderLogisticsService.updateById(orderLogistics1); |
| | | break; |
| | | } |
| | | } |