package com.ruoyi.order.controller; import com.ruoyi.chargingPile.api.model.*; import com.ruoyi.chargingPile.api.vo.GovernmentCloudChargingPileVO; import com.ruoyi.common.core.domain.R; import com.ruoyi.order.api.model.*; import com.ruoyi.order.api.vo.GovernmentCloudOrderVO; import com.ruoyi.order.service.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.List; /** *

* 前端控制器 *

* * @author luodangjia * @since 2024-08-06 */ @RestController @RequestMapping("/governmentCloudOrder") public class GovernmentCloudOrderController { @Autowired private AccountingStrategyDetailOrderService accountingStrategyDetailOrderService; @Autowired private AccountingStrategyOrderService accountingStrategyOrderService; @Autowired private TChargingBillService chargingBillService; @Autowired private TChargingOrderAccountingStrategyService chargingOrderAccountingStrategyService; @Autowired private TChargingOrderRefundService chargingOrderRefundService; @Autowired private TChargingOrderService chargingOrderService; @Autowired private TExchangeOrderService exchangeOrderService; @Autowired private TGrantVipService grantVipService; @Autowired private TOrderAppealService orderAppealService; @Autowired private TOrderEvaluateService orderEvaluateService; @Autowired private TOrderEvaluateTagService orderEvaluateTagService; @Autowired private TOrderInvoiceDetailService orderInvoiceDetailService; @Autowired private TOrderInvoiceService orderInvoiceService; @Autowired private TSettlementConfirmService settlementConfirmService; @Autowired private TShoppingOrderRefundService shoppingOrderRefundService; @Autowired private TShoppingOrderService shoppingOrderService; @Autowired private TVipOrderRefundService vipOrderRefundService; @Autowired private TVipOrderService vipOrderService; /** * 政务云查询数据接口 * @return */ @PostMapping("/listAll") R listAll() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list1 = accountingStrategyDetailOrderService.lambdaQuery() .ge(AccountingStrategyDetailOrder::getCreateTime,start) .le(AccountingStrategyDetailOrder::getCreateTime,end) .list(); List list2 = accountingStrategyOrderService.lambdaQuery() .ge(AccountingStrategyOrder::getCreateTime,start) .le(AccountingStrategyOrder::getCreateTime,end) .list(); List list3 = chargingBillService.lambdaQuery() .ge(TChargingBill::getCreateTime,start) .le(TChargingBill::getCreateTime,end) .list(); List list4 = chargingOrderAccountingStrategyService.lambdaQuery() .ge(TChargingOrderAccountingStrategy::getCreateTime,start) .le(TChargingOrderAccountingStrategy::getCreateTime,end) .list(); List list5 = chargingOrderRefundService.lambdaQuery() .ge(TChargingOrderRefund::getCreateTime,start) .le(TChargingOrderRefund::getCreateTime,end) .list(); List list6 = chargingOrderService.lambdaQuery() .ge(TChargingOrder::getCreateTime,start) .le(TChargingOrder::getCreateTime,end) .list(); List list7 = exchangeOrderService.lambdaQuery() .ge(TExchangeOrder::getCreateTime,start) .le(TExchangeOrder::getCreateTime,end) .list(); List list8 = grantVipService.lambdaQuery() .ge(TGrantVip::getCreateTime,start) .le(TGrantVip::getCreateTime,end) .list(); List list9 = orderAppealService.lambdaQuery() .ge(TOrderAppeal::getCreateTime,start) .le(TOrderAppeal::getCreateTime,end) .list(); List list10 = orderEvaluateService.lambdaQuery() .ge(TOrderEvaluate::getCreateTime,start) .le(TOrderEvaluate::getCreateTime,end) .list(); List list11 = orderEvaluateTagService.lambdaQuery() .ge(TOrderEvaluateTag::getCreateTime,start) .le(TOrderEvaluateTag::getCreateTime,end) .list(); List list12 = orderInvoiceDetailService.lambdaQuery() .ge(TOrderInvoiceDetail::getCreateTime,start) .le(TOrderInvoiceDetail::getCreateTime,end) .list(); List list13 = orderInvoiceService.lambdaQuery() .ge(TOrderInvoice::getCreateTime,start) .le(TOrderInvoice::getCreateTime,end) .list(); List list14 = settlementConfirmService.lambdaQuery() .ge(TSettlementConfirm::getCreateTime,start) .le(TSettlementConfirm::getCreateTime,end) .list(); List list15 = shoppingOrderRefundService.lambdaQuery() .ge(TShoppingOrderRefund::getCreateTime,start) .le(TShoppingOrderRefund::getCreateTime,end) .list(); List list16 = vipOrderRefundService.lambdaQuery() .ge(TVipOrderRefund::getCreateTime,start) .le(TVipOrderRefund::getCreateTime,end) .list(); List list17 = vipOrderService.lambdaQuery() .ge(TVipOrder::getCreateTime,start) .le(TVipOrder::getCreateTime,end) .list(); List list18 = shoppingOrderService.lambdaQuery() .ge(TShoppingOrder::getCreateTime,start) .le(TShoppingOrder::getCreateTime,end) .list(); governmentCloudAccountVO.setAccountingStrategyDetailOrders(list1); governmentCloudAccountVO.setAccountingStrategyOrders(list2); governmentCloudAccountVO.setChargingBills(list3); governmentCloudAccountVO.setChargingOrderAccountingStrategies(list4); governmentCloudAccountVO.setChargingOrderRefunds(list5); governmentCloudAccountVO.setChargingOrders(list6); governmentCloudAccountVO.setExchangeOrders(list7); governmentCloudAccountVO.setGrantVips(list8); governmentCloudAccountVO.setOrderAppeals(list9); governmentCloudAccountVO.setOrderEvaluates(list10); governmentCloudAccountVO.setOrderEvaluateTags(list11); governmentCloudAccountVO.setOrderInvoiceDetails(list12); governmentCloudAccountVO.setOrderInvoices(list13); governmentCloudAccountVO.setSettlementConfirms(list14); governmentCloudAccountVO.setShoppingOrderRefunds(list15); governmentCloudAccountVO.setShoppingOrders(list18); governmentCloudAccountVO.setVipOrders(list17); governmentCloudAccountVO.setVipOrderRefunds(list16); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll1") R listAll1() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list1 = accountingStrategyDetailOrderService.lambdaQuery() .ge(AccountingStrategyDetailOrder::getCreateTime,start) .le(AccountingStrategyDetailOrder::getCreateTime,end) .list(); governmentCloudAccountVO.setAccountingStrategyDetailOrders(list1); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll2") R listAll2() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list2 = accountingStrategyOrderService.lambdaQuery() .ge(AccountingStrategyOrder::getCreateTime,start) .le(AccountingStrategyOrder::getCreateTime,end) .list(); governmentCloudAccountVO.setAccountingStrategyOrders(list2); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll3") R listAll3() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list3 = chargingBillService.lambdaQuery() .ge(TChargingBill::getCreateTime,start) .le(TChargingBill::getCreateTime,end) .list(); governmentCloudAccountVO.setChargingBills(list3); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll4") R listAll4() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list4 = chargingOrderAccountingStrategyService.lambdaQuery() .ge(TChargingOrderAccountingStrategy::getCreateTime,start) .le(TChargingOrderAccountingStrategy::getCreateTime,end) .list(); governmentCloudAccountVO.setChargingOrderAccountingStrategies(list4); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll5") R listAll5() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list5 = chargingOrderRefundService.lambdaQuery() .ge(TChargingOrderRefund::getCreateTime,start) .le(TChargingOrderRefund::getCreateTime,end) .list(); governmentCloudAccountVO.setChargingOrderRefunds(list5); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll6") R listAll6() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list6 = chargingOrderService.lambdaQuery() .ge(TChargingOrder::getCreateTime,start) .le(TChargingOrder::getCreateTime,end) .list(); governmentCloudAccountVO.setChargingOrders(list6); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll7") R listAll7() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list7 = exchangeOrderService.lambdaQuery() .ge(TExchangeOrder::getCreateTime,start) .le(TExchangeOrder::getCreateTime,end) .list(); governmentCloudAccountVO.setExchangeOrders(list7); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll8") R listAll8() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list8 = grantVipService.lambdaQuery() .ge(TGrantVip::getCreateTime,start) .le(TGrantVip::getCreateTime,end) .list(); governmentCloudAccountVO.setGrantVips(list8); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll9") R listAll9() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list9 = orderAppealService.lambdaQuery() .ge(TOrderAppeal::getCreateTime,start) .le(TOrderAppeal::getCreateTime,end) .list(); governmentCloudAccountVO.setOrderAppeals(list9); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll10") R listAll10() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list10 = orderEvaluateService.lambdaQuery() .ge(TOrderEvaluate::getCreateTime,start) .le(TOrderEvaluate::getCreateTime,end) .list(); governmentCloudAccountVO.setOrderEvaluates(list10); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll11") R listAll11() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list11 = orderEvaluateTagService.lambdaQuery() .ge(TOrderEvaluateTag::getCreateTime,start) .le(TOrderEvaluateTag::getCreateTime,end) .list(); governmentCloudAccountVO.setOrderEvaluateTags(list11); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll12") R listAll12() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list12 = orderInvoiceDetailService.lambdaQuery() .ge(TOrderInvoiceDetail::getCreateTime,start) .le(TOrderInvoiceDetail::getCreateTime,end) .list(); governmentCloudAccountVO.setOrderInvoiceDetails(list12); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll13") R listAll13() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list13 = orderInvoiceService.lambdaQuery() .ge(TOrderInvoice::getCreateTime,start) .le(TOrderInvoice::getCreateTime,end) .list(); governmentCloudAccountVO.setOrderInvoices(list13); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll14") R listAll14() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list14 = settlementConfirmService.lambdaQuery() .ge(TSettlementConfirm::getCreateTime,start) .le(TSettlementConfirm::getCreateTime,end) .list(); governmentCloudAccountVO.setSettlementConfirms(list14); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll15") R listAll15() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list15 = shoppingOrderRefundService.lambdaQuery() .ge(TShoppingOrderRefund::getCreateTime,start) .le(TShoppingOrderRefund::getCreateTime,end) .list(); governmentCloudAccountVO.setShoppingOrderRefunds(list15); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll16") R listAll16() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list16 = vipOrderRefundService.lambdaQuery() .ge(TVipOrderRefund::getCreateTime,start) .le(TVipOrderRefund::getCreateTime,end) .list(); governmentCloudAccountVO.setVipOrderRefunds(list16); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll17") R listAll17() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list17 = vipOrderService.lambdaQuery() .ge(TVipOrder::getCreateTime,start) .le(TVipOrder::getCreateTime,end) .list(); governmentCloudAccountVO.setVipOrders(list17); return R.ok(governmentCloudAccountVO); } @PostMapping("/listAll18") R listAll18() { String start = LocalDate.now().minusDays(1)+" 00:00:00"; String end = LocalDate.now().minusDays(1)+" 23:59:59"; GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO(); List list18 = shoppingOrderService.lambdaQuery() .ge(TShoppingOrder::getCreateTime,start) .le(TShoppingOrder::getCreateTime,end) .list(); governmentCloudAccountVO.setShoppingOrders(list18); return R.ok(governmentCloudAccountVO); } }