| | |
| | | PlatformVO platformVO = new PlatformVO(); |
| | | switch (settlementDetail.getOrderType()){ |
| | | case 1: |
| | | |
| | | // 专车订单 |
| | | TOrderPrivateCar tOrderPrivateCar = orderPrivateCarService.selectById(settlementDetail.getOrderId()); |
| | | if (tOrderPrivateCar==null){ |
| | |
| | | unBalance = unBalance.add(new BigDecimal(settlementDetail.getPrice())); |
| | | platformVO.setEndTime(format.format(settlementRecord.getDay())); |
| | | } |
| | | }else{ |
| | | // 未结算 |
| | | if (state!=null && state!=2){ |
| | | continue; |
| | | } |
| | | unBalance = unBalance.add(new BigDecimal(settlementDetail.getPrice())); |
| | | } |
| | | |
| | | res.add(platformVO); |
| | |
| | | unBalance = unBalance.add(new BigDecimal(settlementDetail.getPrice())); |
| | | platformVO.setEndTime(format.format(settlementRecord.getDay())); |
| | | } |
| | | }else{ |
| | | // 未结算 |
| | | if (state!=null && state!=2){ |
| | | continue; |
| | | } |
| | | unBalance = unBalance.add(new BigDecimal(settlementDetail.getPrice())); |
| | | } |
| | | res.add(platformVO); |
| | | break; |
| | |
| | | platformVO.setState(2); |
| | | unBalance = unBalance.add(new BigDecimal(settlementDetail.getPrice())); |
| | | } |
| | | }else{ |
| | | // 未结算 |
| | | if (state!=null && state!=2){ |
| | | continue; |
| | | } |
| | | unBalance = unBalance.add(new BigDecimal(settlementDetail.getPrice())); |
| | | } |
| | | res.add(platformVO); |
| | | break; |
| | |
| | | unBalance = unBalance.add(new BigDecimal(settlementDetail.getPrice())); |
| | | platformVO.setEndTime(format.format(settlementRecord.getDay())); |
| | | } |
| | | }else{ |
| | | // 未结算 |
| | | if (state!=null && state!=2){ |
| | | continue; |
| | | } |
| | | unBalance = unBalance.add(new BigDecimal(settlementDetail.getPrice())); |
| | | } |
| | | res.add(platformVO); |
| | | break; |