|
|
|
@ -30,6 +30,7 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import java.io.File; |
|
|
|
|
import java.math.BigDecimal; |
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
@Controller |
|
|
|
@ -385,7 +386,12 @@ public class HighTyAgentOilStationController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PageHelper.startPage(pageNum,pageSize); |
|
|
|
|
return ResponseMsgUtil.success(new PageInfo<>(highTyAgentOilStationService.getOrderList(param))); |
|
|
|
|
|
|
|
|
|
PageInfo<TyOrderModel> pageInfo = new PageInfo<>(highTyAgentOilStationService.getOrderList(param)); |
|
|
|
|
for (TyOrderModel orderModel : pageInfo.getList()) { |
|
|
|
|
orderModel.setOilLiters(orderModel.getTotalPrice().divide(orderModel.getGasPriceGun(), 2, BigDecimal.ROUND_HALF_DOWN)); |
|
|
|
|
} |
|
|
|
|
return ResponseMsgUtil.success(pageInfo); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("HighTyAgentController --> getAgentList() error!", e); |
|
|
|
@ -471,6 +477,7 @@ public class HighTyAgentOilStationController { |
|
|
|
|
headList.add("团油订单号"); |
|
|
|
|
headList.add("支付类型"); |
|
|
|
|
headList.add("加油金额"); |
|
|
|
|
headList.add("加油升数"); |
|
|
|
|
headList.add("优惠金额"); |
|
|
|
|
headList.add("实付金额"); |
|
|
|
|
headList.add("油号"); |
|
|
|
@ -502,6 +509,7 @@ public class HighTyAgentOilStationController { |
|
|
|
|
data.add(orderModel.getGasOrderNo()); |
|
|
|
|
data.add(orderModel.getPayType()); |
|
|
|
|
data.add(orderModel.getTotalPrice()); |
|
|
|
|
data.add(orderModel.getTotalPrice().divide(orderModel.getGasPriceGun(), 2, BigDecimal.ROUND_HALF_DOWN)); |
|
|
|
|
data.add(orderModel.getDeductionPrice()); |
|
|
|
|
data.add(orderModel.getPayRealPrice()); |
|
|
|
|
data.add(orderModel.getGasOilNo()); |
|
|
|
|