| @@ -55,4 +55,28 @@ public class CockpitScreenController extends BaseController { | |||||
| public ResultData countReachUser(@RequestParam("years") List<Integer> years) { | public ResultData countReachUser(@RequestParam("years") List<Integer> years) { | ||||
| return new ResultData(cockpitScreenService.countReachUser(getTenantInfo(), 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()); | |||||
| } | |||||
| } | } | ||||
| @@ -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; | |||||
| } | |||||
| @@ -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; | |||||
| } | |||||
| } | |||||
| @@ -1,9 +1,7 @@ | |||||
| package com.iformall.service; | package com.iformall.service; | ||||
| import com.iformall.domain.po.base.TenantEntity; | 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; | import java.util.List; | ||||
| @@ -47,4 +45,29 @@ public interface CockpitScreenService { | |||||
| * @return {@link List}<{@link CountMonthVO}> | * @return {@link List}<{@link CountMonthVO}> | ||||
| */ | */ | ||||
| List<CountMonthVO> countReachUser(TenantEntity tenantInfo, List<Integer> years); | 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(); | |||||
| } | } | ||||
| @@ -154,4 +154,19 @@ public class CockpitScreenServiceImpl implements CockpitScreenService { | |||||
| return result; | 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; | |||||
| } | |||||
| } | } | ||||