无关风月
2025-05-06 6f19ee6018f82cf981135fd81b1608faea53ce7e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
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.LocalDateTime;
import java.util.List;
 
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @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<GovernmentCloudOrderVO> listAll() {
        LocalDateTime end = LocalDateTime.now();
        LocalDateTime start = LocalDateTime.now().minusDays(1);
        GovernmentCloudOrderVO governmentCloudAccountVO = new GovernmentCloudOrderVO();
        List<AccountingStrategyDetailOrder> list1 = accountingStrategyDetailOrderService.lambdaQuery().between(AccountingStrategyDetailOrder::getCreateTime, start, end).list();
        List<AccountingStrategyOrder> list2 = accountingStrategyOrderService.lambdaQuery().between(AccountingStrategyOrder::getCreateTime, start, end).list();
        List<TChargingBill> list3 = chargingBillService.lambdaQuery().between(TChargingBill::getCreateTime, start, end).list();
        List<TChargingOrderAccountingStrategy> list4 = chargingOrderAccountingStrategyService.lambdaQuery().between(TChargingOrderAccountingStrategy::getCreateTime, start, end).list();
        List<TChargingOrderRefund> list5 = chargingOrderRefundService.lambdaQuery().between(TChargingOrderRefund::getCreateTime, start, end).list();
        List<TChargingOrder> list6 = chargingOrderService.lambdaQuery().between(TChargingOrder::getCreateTime, start, end).list();
        List<TExchangeOrder> list7 = exchangeOrderService.lambdaQuery().between(TExchangeOrder::getCreateTime, start, end).list();
        List<TGrantVip> list8 = grantVipService.lambdaQuery().between(TGrantVip::getCreateTime, start, end).list();
        List<TOrderAppeal> list9 = orderAppealService.lambdaQuery().between(TOrderAppeal::getCreateTime, start, end).list();
        List<TOrderEvaluate> list10 = orderEvaluateService.lambdaQuery().between(TOrderEvaluate::getCreateTime, start, end).list();
        List<TOrderEvaluateTag> list11 = orderEvaluateTagService.lambdaQuery().between(TOrderEvaluateTag::getCreateTime, start, end).list();
        List<TOrderInvoiceDetail> list12 = orderInvoiceDetailService.lambdaQuery().between(TOrderInvoiceDetail::getCreateTime, start, end).list();
        List<TOrderInvoice> list13 = orderInvoiceService.lambdaQuery().between(TOrderInvoice::getCreateTime, start, end).list();
        List<TSettlementConfirm> list14 = settlementConfirmService.lambdaQuery().between(TSettlementConfirm::getCreateTime, start, end).list();
        List<TShoppingOrderRefund> list15 = shoppingOrderRefundService.lambdaQuery().between(TShoppingOrderRefund::getCreateTime, start, end).list();
        List<TVipOrderRefund> list16 = vipOrderRefundService.lambdaQuery().between(TVipOrderRefund::getCreateTime, start, end).list();
        List<TVipOrder> list17 = vipOrderService.lambdaQuery().between(TVipOrder::getCreateTime, start, end).list();
        List<TShoppingOrder> list18 = shoppingOrderService.lambdaQuery().between(TShoppingOrder::getCreateTime, start, 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);
    }
 
 
}