Browse Source

feat:新增驾驶舱大屏接口定义

release_toaliyun_real
xmzhao71 2 years ago
parent
commit
be1cd320cc
5 changed files with 134 additions and 3 deletions
  1. +24
    -0
      mallinkAdmin/src/main/java/com/iformall/controller/datatower/CockpitScreenController.java
  2. +33
    -0
      mallinkService/src/main/java/com/iformall/domain/vo/cockpit/CountBasicVO.java
  3. +36
    -0
      mallinkService/src/main/java/com/iformall/domain/vo/cockpit/CountOrderTrendVO.java
  4. +26
    -3
      mallinkService/src/main/java/com/iformall/service/CockpitScreenService.java
  5. +15
    -0
      mallinkService/src/main/java/com/iformall/service/impl/CockpitScreenServiceImpl.java

+ 24
- 0
mallinkAdmin/src/main/java/com/iformall/controller/datatower/CockpitScreenController.java View File

@@ -55,4 +55,28 @@ public class CockpitScreenController extends BaseController {
public ResultData countReachUser(@RequestParam("years") List<Integer> years) {
return new ResultData(cockpitScreenService.countReachUser(getTenantInfo(), years));
}

@ApiVersion(group = SwaggerConstant.V_1_0_0)
@TenantIgnore
@ApiOperation("驾驶舱大屏-车辆数量信息")
@GetMapping("/countCar")
public ResultData countCar(@RequestParam("years") List<Integer> years) {
return new ResultData(cockpitScreenService.countCar(getTenantInfo(), years));
}

@ApiVersion(group = SwaggerConstant.V_1_0_0)
@TenantIgnore
@ApiOperation("驾驶舱大屏-订单趋势")
@GetMapping("/countOrderTrend")
public ResultData countOrderTrend(@RequestParam("year") Integer year) {
return new ResultData(cockpitScreenService.countOrderTrend(getTenantInfo(), year));
}

@ApiVersion(group = SwaggerConstant.V_1_0_0)
@TenantIgnore
@ApiOperation("驾驶舱大屏-基本信息")
@GetMapping("/countBasic")
public ResultData countBasic() {
return new ResultData(cockpitScreenService.countBasic());
}
}

+ 33
- 0
mallinkService/src/main/java/com/iformall/domain/vo/cockpit/CountBasicVO.java View File

@@ -0,0 +1,33 @@
package com.iformall.domain.vo.cockpit;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel(value = "基本数据信息")
@Data
public class CountBasicVO {
@ApiModelProperty(value = "总交易额")
private BigDecimal totalTradingAmount;
@ApiModelProperty(value = "总核销额")
private BigDecimal totalVerifiedAmount;
@ApiModelProperty(value = "总商户数")
private BigDecimal totalMerchantCount;
@ApiModelProperty(value = "总会员数")
private BigDecimal totalUserCount;
@ApiModelProperty(value = "总触达用户数")
private BigDecimal totalReachUserCount;
@ApiModelProperty(value = "本周新增会员数")
private BigDecimal weekUserCount;
@ApiModelProperty(value = "总有车会员数")
private BigDecimal carUserCount;

@ApiModelProperty(value = "今日访问量")
private BigDecimal todayPvCount;
@ApiModelProperty(value = "今日会员数")
private BigDecimal todayUserCount;
@ApiModelProperty(value = "今日交易金额")
private BigDecimal todayTradingAmount;
}

+ 36
- 0
mallinkService/src/main/java/com/iformall/domain/vo/cockpit/CountOrderTrendVO.java View File

@@ -0,0 +1,36 @@
package com.iformall.domain.vo.cockpit;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel(value = "订单趋势")
@Data
public class CountOrderTrendVO {
@ApiModelProperty(value = "月份")
private Integer month;
@ApiModelProperty(value = "订单信息")
private OrderInfo order;
@ApiModelProperty(value = "核销订单信息")
private VerifiedOrderInfo verifiedOrder;

@Data
public static class OrderInfo {
@ApiModelProperty(value = "订单金额")
private BigDecimal orderAmount;
@ApiModelProperty(value = "订单数量")
private Integer orderCount;
}

@Data
public static class VerifiedOrderInfo {
@ApiModelProperty(value = "订单核销金额")
private BigDecimal verifiedOrderAmount;
@ApiModelProperty(value = "订单核销数")
private Integer verifiedOrderCount;
@ApiModelProperty(value = "订单核销用户数")
private Integer verifiedUserCount;
}
}

+ 26
- 3
mallinkService/src/main/java/com/iformall/service/CockpitScreenService.java View File

@@ -1,9 +1,7 @@
package com.iformall.service;

import com.iformall.domain.po.base.TenantEntity;
import com.iformall.domain.vo.cockpit.CountMonthVO;
import com.iformall.domain.vo.cockpit.CountShopVO;
import com.iformall.domain.vo.cockpit.CountUserGenderVO;
import com.iformall.domain.vo.cockpit.*;

import java.util.List;

@@ -47,4 +45,29 @@ public interface CockpitScreenService {
* @return {@link List}<{@link CountMonthVO}>
*/
List<CountMonthVO> countReachUser(TenantEntity tenantInfo, List<Integer> years);

/**
* 统计车辆数量信息
*
* @param tenantInfo
* @param years
* @return {@link List}<{@link CountMonthVO}>
*/
List<CountMonthVO> countCar(TenantEntity tenantInfo, List<Integer> years);

/**
* 统计订单趋势信息
*
* @param tenantInfo
* @param year
* @return {@link List}<{@link CountOrderTrendVO}>
*/
List<CountOrderTrendVO> countOrderTrend(TenantEntity tenantInfo, Integer year);

/**
* 统计基本数据信息
*
* @return {@link CountBasicVO}
*/
CountBasicVO countBasic();
}

+ 15
- 0
mallinkService/src/main/java/com/iformall/service/impl/CockpitScreenServiceImpl.java View File

@@ -154,4 +154,19 @@ public class CockpitScreenServiceImpl implements CockpitScreenService {

return result;
}

@Override
public List<CountMonthVO> countCar(TenantEntity tenantInfo, List<Integer> years) {
return null;
}

@Override
public List<CountOrderTrendVO> countOrderTrend(TenantEntity tenantInfo, Integer year) {
return null;
}

@Override
public CountBasicVO countBasic() {
return null;
}
}

Loading…
Cancel
Save