package com.ruoyi.other.controller;
|
|
|
import com.ruoyi.chargingPile.api.model.Partner;
|
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.LocalDate;
|
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() {
|
String start = LocalDate.now().minusDays(1)+" 00:00:00";
|
String end = LocalDate.now().minusDays(1)+" 23:59:59";
|
GovernmentCloudOtherVO governmentCloudAccountVO = new GovernmentCloudOtherVO();
|
List<Operator> list1 = operatorService.lambdaQuery()
|
.list();
|
List<TActivity> list2 = activityService.lambdaQuery()
|
.ge(TActivity::getCreateTime,start)
|
.le(TActivity::getCreateTime,end) .list();
|
List<TAdvertising> list3 = advertisingService.lambdaQuery()
|
.ge(TAdvertising::getCreateTime,start)
|
.le(TAdvertising::getCreateTime,end) .list();
|
List<TCompany> list4 = companyService.lambdaQuery()
|
.ge(TCompany::getCreateTime,start)
|
.le(TCompany::getCreateTime,end) .list();
|
List<TCoupon> list5 = couponService.lambdaQuery()
|
.ge(TCoupon::getCreateTime,start)
|
.le(TCoupon::getCreateTime,end) .list();
|
List<TEnterpriseUserApplication> list6 = enterpriseUserApplicationService.lambdaQuery()
|
.ge(TEnterpriseUserApplication::getCreateTime,start)
|
.le(TEnterpriseUserApplication::getCreateTime,end) .list();
|
List<TEvaluationTag> list7 = evaluationTagService.lambdaQuery()
|
.ge(TEvaluationTag::getCreateTime,start)
|
.le(TEvaluationTag::getCreateTime,end) .list();
|
List<TGoods> list8 = goodsService.lambdaQuery()
|
.ge(TGoods::getCreateTime,start)
|
.le(TGoods::getCreateTime,end) .list();
|
List<THtml> list9 = htmlService.lambdaQuery()
|
.list();
|
List<TIntegralRule> list10 = integralRuleService.lambdaQuery()
|
.list();
|
List<TInvoiceType> list11 = invoiceTypeService.lambdaQuery()
|
.ge(TInvoiceType::getCreateTime,start)
|
.le(TInvoiceType::getCreateTime,end) .list();
|
List<TNotice> list12 = noticeService.lambdaQuery()
|
.ge(TNotice::getCreateTime,start)
|
.le(TNotice::getCreateTime,end) .list();
|
List<TRoleSite> list13 = roleSiteService.lambdaQuery().list();
|
List<TSystemConfiguration> list14 = systemConfigurationService.lambdaQuery().list();
|
List<TUserSite> list15 = userSiteService.lambdaQuery().list();
|
List<TUserTag> list16 = userTagService.lambdaQuery()
|
.ge(TUserTag::getCreateTime,start)
|
.le(TUserTag::getCreateTime,end) .list();
|
List<TVip> list17 = vipService.lambdaQuery()
|
.ge(TVip::getCreateTime,start)
|
.le(TVip::getCreateTime,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.setRoleSites(list13);
|
governmentCloudAccountVO.setSystemConfigurations(list14);
|
governmentCloudAccountVO.setUserSites(list15);
|
governmentCloudAccountVO.setUserTags(list16);
|
governmentCloudAccountVO.setVips(list17);
|
return R.ok(governmentCloudAccountVO);
|
}
|
|
|
}
|