Merge branch 'feature/mall_product'

pull/16/head
tangqian 2023-06-02 11:05:44 +08:00
commit 0e5fc4e37e
10 changed files with 23 additions and 17 deletions

View File

@ -20,9 +20,9 @@ public class PromoterDrawExcelVO {
@ExcelProperty( "成为推广员时间") @ExcelProperty( "成为推广员时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@ExcelProperty( "会员提成") @ExcelProperty( "会员提成")
private Integer memberCommission; private BigDecimal memberCommission;
@ExcelProperty( "商品提成") @ExcelProperty( "商品提成")
private Integer goodsCommission; private BigDecimal goodsCommission;
@ExcelProperty( "成交定单数") @ExcelProperty( "成交定单数")
private BigDecimal orderCount; private BigDecimal orderCount;

View File

@ -26,9 +26,9 @@ public class PromoterDrawVO {
@Schema(description = "成为推广员时间") @Schema(description = "成为推广员时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "会员提成") @Schema(description = "会员提成")
private Integer memberCommission; private BigDecimal memberCommission;
@Schema(description = "商品提成") @Schema(description = "商品提成")
private Integer goodsCommission; private BigDecimal goodsCommission;
@Schema(description = "成交定单数") @Schema(description = "成交定单数")
private BigDecimal orderCount; private BigDecimal orderCount;

View File

@ -14,5 +14,5 @@ public class PromoterMemberOrderVO {
@Schema(description = "总金额") @Schema(description = "总金额")
private BigDecimal totalAmount; private BigDecimal totalAmount;
@Schema(description = "会员提成") @Schema(description = "会员提成")
private Integer memberCommission; private BigDecimal memberCommission;
} }

View File

@ -14,5 +14,5 @@ public class ShoppingMemberOrderVO {
@Schema(description = "总金额") @Schema(description = "总金额")
private BigDecimal totalAmount; private BigDecimal totalAmount;
@Schema(description = "会员提成") @Schema(description = "会员提成")
private Integer goodsCommission; private BigDecimal goodsCommission;
} }

View File

@ -152,7 +152,7 @@ public class RechargeOrderServiceImpl implements RechargeOrderService {
// Map<Long, PromoterDrawVO> nameList = promoterDrawVOList.stream().collect(toMap(PromoterDrawVO::getUserId, value -> value, (value1, value2) -> value1)); // Map<Long, PromoterDrawVO> nameList = promoterDrawVOList.stream().collect(toMap(PromoterDrawVO::getUserId, value -> value, (value1, value2) -> value1));
list.forEach(promoterDrawVO -> { list.forEach(promoterDrawVO -> {
if (promoterDrawVO.getMemberCommission() == null) { if (promoterDrawVO.getMemberCommission() == null) {
promoterDrawVO.setMemberCommission(0); promoterDrawVO.setMemberCommission(new BigDecimal(0));
} }
if (promoterDrawVO.getTotalAmount() == null) { if (promoterDrawVO.getTotalAmount() == null) {
promoterDrawVO.setTotalAmount(new BigDecimal(0)); promoterDrawVO.setTotalAmount(new BigDecimal(0));

View File

@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.system.api.tenant.dto;
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import lombok.*; import lombok.*;
import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
@ -108,11 +109,11 @@ public class TenantDTO{
/** /**
* *
*/ */
private Integer goodsCommission; private BigDecimal goodsCommission;
/** /**
* *
*/ */
private Integer memberCommission; private BigDecimal memberCommission;
/** /**
* logo * logo
*/ */

View File

@ -6,6 +6,7 @@ import lombok.*;
import org.hibernate.validator.constraints.Length; import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
@ -105,11 +106,11 @@ public class TenantBaseVO {
/** /**
* *
*/ */
private Integer goodsCommission; private BigDecimal goodsCommission;
/** /**
* *
*/ */
private Integer memberCommission; private BigDecimal memberCommission;
} }

View File

@ -7,6 +7,7 @@ import lombok.ToString;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;
import java.math.BigDecimal;
@Schema(description = "管理后台 - 租户更新 Request VO") @Schema(description = "管理后台 - 租户更新 Request VO")
@Data @Data
@ -22,11 +23,11 @@ public class TenantCommissionUpdateReqVO {
*/ */
@NotNull(message = "商品提成不能为空") @NotNull(message = "商品提成不能为空")
// @Size(min = 0,max = 100,message ="商品提成{min}{max}之间" ) // @Size(min = 0,max = 100,message ="商品提成{min}{max}之间" )
private Integer goodsCommission; private BigDecimal goodsCommission;
/** /**
* *
*/ */
@NotNull(message = "会员充值提成不能为空") @NotNull(message = "会员充值提成不能为空")
// @Size(min = 0,max = 100,message ="会员充值提成{min}{max}之间" ) // @Size(min = 0,max = 100,message ="会员充值提成{min}{max}之间" )
private Integer memberCommission; private BigDecimal memberCommission;
} }

View File

@ -4,6 +4,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import lombok.ToString; import lombok.ToString;
import java.math.BigDecimal;
@Schema(description = "管理后台 - 租户 Response VO") @Schema(description = "管理后台 - 租户 Response VO")
@Data @Data
@ToString(callSuper = true) @ToString(callSuper = true)
@ -55,11 +57,11 @@ public class TenantRespVO {
* *
*/ */
@Schema(description = "商品提成") @Schema(description = "商品提成")
private Integer goodsCommission; private BigDecimal goodsCommission;
/** /**
* *
*/ */
@Schema(description = "会员充值提成") @Schema(description = "会员充值提成")
private Integer memberCommission; private BigDecimal memberCommission;
} }

View File

@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*; import lombok.*;
import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/** /**
@ -115,11 +116,11 @@ public class TenantDO extends BaseDO {
/** /**
* *
*/ */
private Integer goodsCommission; private BigDecimal goodsCommission;
/** /**
* *
*/ */
private Integer memberCommission; private BigDecimal memberCommission;
/** /**
* logo * logo
*/ */