|
|
@ -156,8 +156,8 @@ public class BsOrderController { |
|
|
|
todayReport.put("todayAddOrder", object); |
|
|
|
todayReport.put("todayAddOrder", object); |
|
|
|
// 获取今天我的订单
|
|
|
|
// 获取今天我的订单
|
|
|
|
object = new JSONObject(); |
|
|
|
object = new JSONObject(); |
|
|
|
object.put("orderNum", (int) orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2)).filter(s -> s.getCreateTime().toInstant().isAfter(todayTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(todayTime.get("timeE").toInstant())).count()); |
|
|
|
object.put("orderNum", (int) orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) || s.getStatus().equals(3)).filter(s -> s.getCreateTime().toInstant().isAfter(todayTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(todayTime.get("timeE").toInstant())).count()); |
|
|
|
object.put("orderMoney", orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2)).filter(s -> s.getCreateTime().toInstant().isAfter(todayTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(todayTime.get("timeE").toInstant())).map(BsOrder::getPromotionAmount).reduce(BigDecimal.ZERO, BigDecimal::add).multiply(goldCoinExchangeRate)); |
|
|
|
object.put("orderMoney", orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) || s.getStatus().equals(3)).filter(s -> s.getCreateTime().toInstant().isAfter(todayTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(todayTime.get("timeE").toInstant())).map(BsOrder::getPromotionAmount).reduce(BigDecimal.ZERO, BigDecimal::add).multiply(goldCoinExchangeRate)); |
|
|
|
todayReport.put("todayUserOrder", object); |
|
|
|
todayReport.put("todayUserOrder", object); |
|
|
|
|
|
|
|
|
|
|
|
// 团队订单
|
|
|
|
// 团队订单
|
|
|
@ -181,8 +181,8 @@ public class BsOrderController { |
|
|
|
yesterdayReport.put("yesterdayAddOrder", object); |
|
|
|
yesterdayReport.put("yesterdayAddOrder", object); |
|
|
|
// 获取昨天我的订单
|
|
|
|
// 获取昨天我的订单
|
|
|
|
object = new JSONObject(); |
|
|
|
object = new JSONObject(); |
|
|
|
object.put("orderNum", (int) orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2)).filter(s -> s.getCreateTime().toInstant().isAfter(yesterdayTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(yesterdayTime.get("timeE").toInstant())).count()); |
|
|
|
object.put("orderNum", (int) orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) || s.getStatus().equals(3)).filter(s -> s.getCreateTime().toInstant().isAfter(yesterdayTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(yesterdayTime.get("timeE").toInstant())).count()); |
|
|
|
object.put("orderMoney", orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2)).filter(s -> s.getCreateTime().toInstant().isAfter(yesterdayTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(yesterdayTime.get("timeE").toInstant())).map(BsOrder::getPromotionAmount).reduce(BigDecimal.ZERO, BigDecimal::add).multiply(goldCoinExchangeRate)); |
|
|
|
object.put("orderMoney", orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) || s.getStatus().equals(3)).filter(s -> s.getCreateTime().toInstant().isAfter(yesterdayTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(yesterdayTime.get("timeE").toInstant())).map(BsOrder::getPromotionAmount).reduce(BigDecimal.ZERO, BigDecimal::add).multiply(goldCoinExchangeRate)); |
|
|
|
yesterdayReport.put("yesterdayUserOrder", object); |
|
|
|
yesterdayReport.put("yesterdayUserOrder", object); |
|
|
|
|
|
|
|
|
|
|
|
// 团队订单
|
|
|
|
// 团队订单
|
|
|
@ -206,8 +206,8 @@ public class BsOrderController { |
|
|
|
thisMonthReport.put("thisMonthAddOrder", object); |
|
|
|
thisMonthReport.put("thisMonthAddOrder", object); |
|
|
|
// 获取本月我的订单
|
|
|
|
// 获取本月我的订单
|
|
|
|
object = new JSONObject(); |
|
|
|
object = new JSONObject(); |
|
|
|
object.put("orderNum", (int) orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2)).filter(s -> s.getCreateTime().toInstant().isAfter(thisMonthTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(thisMonthTime.get("timeE").toInstant())).count()); |
|
|
|
object.put("orderNum", (int) orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) || s.getStatus().equals(3)).filter(s -> s.getCreateTime().toInstant().isAfter(thisMonthTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(thisMonthTime.get("timeE").toInstant())).count()); |
|
|
|
object.put("orderMoney", orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2)).filter(s -> s.getCreateTime().toInstant().isAfter(thisMonthTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(thisMonthTime.get("timeE").toInstant())).map(BsOrder::getPromotionAmount).reduce(BigDecimal.ZERO, BigDecimal::add).multiply(goldCoinExchangeRate)); |
|
|
|
object.put("orderMoney", orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) || s.getStatus().equals(3)).filter(s -> s.getCreateTime().toInstant().isAfter(thisMonthTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(thisMonthTime.get("timeE").toInstant())).map(BsOrder::getPromotionAmount).reduce(BigDecimal.ZERO, BigDecimal::add).multiply(goldCoinExchangeRate)); |
|
|
|
thisMonthReport.put("thisMonthUserOrder", object); |
|
|
|
thisMonthReport.put("thisMonthUserOrder", object); |
|
|
|
|
|
|
|
|
|
|
|
// 团队订单
|
|
|
|
// 团队订单
|
|
|
@ -232,8 +232,8 @@ public class BsOrderController { |
|
|
|
lastMonthReport.put("lastMonthAddOrder", object); |
|
|
|
lastMonthReport.put("lastMonthAddOrder", object); |
|
|
|
// 获取本月我的订单
|
|
|
|
// 获取本月我的订单
|
|
|
|
object = new JSONObject(); |
|
|
|
object = new JSONObject(); |
|
|
|
object.put("orderNum", (int) orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2)).filter(s -> s.getCreateTime().toInstant().isAfter(lastMonthTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(lastMonthTime.get("timeE").toInstant())).count()); |
|
|
|
object.put("orderNum", (int) orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) || s.getStatus().equals(3)).filter(s -> s.getCreateTime().toInstant().isAfter(lastMonthTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(lastMonthTime.get("timeE").toInstant())).count()); |
|
|
|
object.put("orderMoney", orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) ).filter(s -> s.getCreateTime().toInstant().isAfter(lastMonthTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(lastMonthTime.get("timeE").toInstant())).map(BsOrder::getPromotionAmount).reduce(BigDecimal.ZERO, BigDecimal::add).multiply(goldCoinExchangeRate)); |
|
|
|
object.put("orderMoney", orderUserList.stream().filter(s->s.getStatus().equals(1) || s.getStatus().equals(2) || s.getStatus().equals(3)).filter(s -> s.getCreateTime().toInstant().isAfter(lastMonthTime.get("timeS").toInstant()) && s.getCreateTime().toInstant().isBefore(lastMonthTime.get("timeE").toInstant())).map(BsOrder::getPromotionAmount).reduce(BigDecimal.ZERO, BigDecimal::add).multiply(goldCoinExchangeRate)); |
|
|
|
lastMonthReport.put("lastMonthUserOrder", object); |
|
|
|
lastMonthReport.put("lastMonthUserOrder", object); |
|
|
|
|
|
|
|
|
|
|
|
// 团队订单
|
|
|
|
// 团队订单
|
|
|
|