Merge pull request '心跳数据推送' (#80) from zzw-one into master

Reviewed-on: #80
This commit is contained in:
root 2024-10-29 15:49:53 +08:00
commit ef76377db1
2 changed files with 57 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.infra.clients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
@ -17,4 +18,49 @@ public interface LargeScreenClient {
@GetMapping("/api/checkticket")
Object checkTicketTotal(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/checkticket/qushi")
Object findByTimeTemp(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/saledata/thisyear")
Object thisYearNum(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/saledata/lastyear")
Object lastYearNum(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/saledata/gender")
Object findByGender(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/saledata/age")
Object findByage(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/saledata/lastyear/region")
Object lastYearFindByRegion(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/saledata/thisyear/region")
Object thisYearFindByRegion(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/saledata/salemethod")
Object findBySaleMethod(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
@GetMapping("/api/saledata/itemType")
Object findByItemType(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
// @GetMapping("/api/saledata/gender")
// Object findByWuYi(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
//
// @GetMapping("/api/saledata/gender")
// Object findByGuoQing(@RequestParam("starTime") String starTime, @RequestParam("endTime") String endTime);
//
// @GetMapping("/api/saledata/rijunthisyear/{startTime}")
// Object findThisYearRiJun(@PathVariable("startTime") String startTime);
//
// @GetMapping("/api/saledata/rijunlastyear/{startTime}")
// Object findLastYearRiJun(@PathVariable("startTime") String startTime);
@GetMapping("/api/saledata/thisyear/nianjun")
Object findMoneyThisYear();
@GetMapping("/api/saledata/lastyear/nianjun")
Object findMoneyLastYear();
}

View File

@ -40,6 +40,17 @@ public class LargeScreenHeartbeat {
this.methodUtils(map, "assetCount", largeScreenClient.assetMethod1());
this.methodUtils(map,"saleDataTotal",largeScreenClient.saleDataTotal(dataUtils,dataUtils));
this.methodUtils(map,"checkTicketTotal",largeScreenClient.checkTicketTotal(dataUtils,dataUtils));
this.methodUtils(map,"findByTimeTemp",largeScreenClient.findByTimeTemp(dataUtils,dataUtils));
this.methodUtils(map,"thisYearNum",largeScreenClient.thisYearNum(dataUtils,dataUtils));
this.methodUtils(map,"lastYearNum",largeScreenClient.lastYearNum(dataUtils,dataUtils));
this.methodUtils(map,"findByGender",largeScreenClient.findByGender(dataUtils,dataUtils));
this.methodUtils(map,"findByage",largeScreenClient.findByage(dataUtils,dataUtils));
this.methodUtils(map,"lastYearFindByRegion",largeScreenClient.lastYearFindByRegion(dataUtils,dataUtils));
this.methodUtils(map,"thisYearFindByRegion",largeScreenClient.thisYearFindByRegion(dataUtils,dataUtils));
this.methodUtils(map,"findBySaleMethod",largeScreenClient.findBySaleMethod(dataUtils,dataUtils));
this.methodUtils(map,"findByItemType",largeScreenClient.findByItemType(dataUtils,dataUtils));
this.methodUtils(map,"findMoneyThisYear",largeScreenClient.findMoneyThisYear());
this.methodUtils(map,"findMoneyLastYear",largeScreenClient.findMoneyLastYear());
webSocketSenderApi.sendObject(2,1L,"1",map);
}