From 71e051cddfba05a4e7876a92650cc8d7b5fabf28 Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期五, 23 五月 2025 20:59:58 +0800
Subject: [PATCH] Merge branch 'dev' of http://120.76.84.145:10101/gitblit/r/java/mx_charging_pile into dev

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GovernmentCloudOtherController.java |  117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 117 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GovernmentCloudOtherController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GovernmentCloudOtherController.java
new file mode 100644
index 0000000..c12c799
--- /dev/null
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/GovernmentCloudOtherController.java
@@ -0,0 +1,117 @@
+package com.ruoyi.other.controller;
+
+
+import com.ruoyi.common.core.domain.R;
+import com.ruoyi.order.api.model.*;
+import com.ruoyi.order.api.vo.GovernmentCloudOrderVO;
+import com.ruoyi.other.api.domain.*;
+import com.ruoyi.other.api.vo.GovernmentCloudOtherVO;
+import com.ruoyi.other.service.*;
+import com.ruoyi.system.api.domain.SysLoginLog;
+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("/governmentCloudOther")
+public class GovernmentCloudOtherController {
+    @Autowired
+    private OperatorService operatorService;
+    @Autowired
+    private TActivityService activityService;
+    @Autowired
+    private TAdvertisingService advertisingService;
+    @Autowired
+    private TCompanyService companyService;
+    @Autowired
+    private TCouponService couponService;
+    @Autowired
+    private TEnterpriseUserApplicationService enterpriseUserApplicationService;
+    @Autowired
+    private TEvaluationTagService evaluationTagService;
+    @Autowired
+    private TGoodsService goodsService;
+    @Autowired
+    private THtmlService htmlService;
+    @Autowired
+    private TIntegralRuleService integralRuleService;
+    @Autowired
+    private TInvoiceTypeService invoiceTypeService;
+    @Autowired
+    private TNoticeService noticeService;
+    @Autowired
+    private TRoleSiteService roleSiteService;
+    @Autowired
+    private TSystemConfigurationService systemConfigurationService;
+    @Autowired
+    private TUserSiteService userSiteService;
+    @Autowired
+    private TUserTagService userTagService;
+    @Autowired
+    private TVipService vipService;
+
+
+
+
+    /**
+     * 政务云查询数据接口
+     * @return
+     */
+    @PostMapping("/listAll")
+    R<GovernmentCloudOtherVO> listAll() {
+        LocalDateTime end = LocalDateTime.now();
+        LocalDateTime start = LocalDateTime.now().minusDays(1);
+        GovernmentCloudOtherVO governmentCloudAccountVO = new GovernmentCloudOtherVO();
+
+
+        List<Operator> list1 = operatorService.lambdaQuery().list();
+        List<TActivity> list2 = activityService.lambdaQuery().between(TActivity::getCreateTime, start, end).list();
+        List<TAdvertising> list3 = advertisingService.lambdaQuery().between(TAdvertising::getCreateTime, start, end).list();
+        List<TCompany> list4 = companyService.lambdaQuery().between(TCompany::getCreateTime, start, end).list();
+        List<TCoupon> list5 = couponService.lambdaQuery().between(TCoupon::getCreateTime, start, end).list();
+        List<TEnterpriseUserApplication> list6 = enterpriseUserApplicationService.lambdaQuery().between(TEnterpriseUserApplication::getCreateTime, start, end).list();
+        List<TEvaluationTag> list7 = evaluationTagService.lambdaQuery().between(TEvaluationTag::getCreateTime, start, end).list();
+        List<TGoods> list8 = goodsService.lambdaQuery().between(TGoods::getCreateTime, start, end).list();
+        List<THtml> list9 = htmlService.lambdaQuery().list();
+        List<TIntegralRule> list10 = integralRuleService.lambdaQuery().list();
+        List<TInvoiceType> list11 = invoiceTypeService.lambdaQuery().between(TInvoiceType::getCreateTime, start, end).list();
+        List<TNotice> list12 = noticeService.lambdaQuery().between(TNotice::getCreateTime, start, end).list();
+//        List<TRoleSite> list13 = roleSiteService.lambdaQuery().between(TRoleSite::getCreateTime, start, end).list();
+        List<TSystemConfiguration> list14 = systemConfigurationService.lambdaQuery().list();
+//        List<TUserSite> list15 = userSiteService.lambdaQuery().between(TUserSite::getCreateTime, start, end).list();
+        List<TUserTag> list16 = userTagService.lambdaQuery().between(TUserTag::getCreateTime, start, end).list();
+        List<TVip> list17 = vipService.lambdaQuery().between(TVip::getCreateTime, start, end).list();
+        governmentCloudAccountVO.setOperators(list1);
+        governmentCloudAccountVO.setActivities(list2);
+        governmentCloudAccountVO.setAdvertisings(list3);
+        governmentCloudAccountVO.setCompanies(list4);
+        governmentCloudAccountVO.setCoupons(list5);
+        governmentCloudAccountVO.setEnterpriseUserApplications(list6);
+        governmentCloudAccountVO.setEvaluationTags(list7);
+        governmentCloudAccountVO.setGoods(list8);
+        governmentCloudAccountVO.setHtmls(list9);
+        governmentCloudAccountVO.setIntegralRules(list10);
+        governmentCloudAccountVO.setInvoiceTypes(list11);
+        governmentCloudAccountVO.setNotices(list12);
+        governmentCloudAccountVO.setSystemConfigurations(list14);
+        governmentCloudAccountVO.setUserTags(list16);
+        governmentCloudAccountVO.setVips(list17);
+
+        return R.ok(governmentCloudAccountVO);
+    }
+
+
+}
+

--
Gitblit v1.7.1