fix: 修改相关提成单位

pull/13/head^2
tangqian 2023-06-02 11:05:09 +08:00
parent 488f0166be
commit 413ded83a9
10 changed files with 23 additions and 17 deletions

View File

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

View File

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

View File

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

View File

@ -14,5 +14,5 @@ public class ShoppingMemberOrderVO {
@Schema(description = "总金额")
private BigDecimal totalAmount;
@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));
list.forEach(promoterDrawVO -> {
if (promoterDrawVO.getMemberCommission() == null) {
promoterDrawVO.setMemberCommission(0);
promoterDrawVO.setMemberCommission(new BigDecimal(0));
}
if (promoterDrawVO.getTotalAmount() == null) {
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 lombok.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
@ -108,11 +109,11 @@ public class TenantDTO{
/**
*
*/
private Integer goodsCommission;
private BigDecimal goodsCommission;
/**
*
*/
private Integer memberCommission;
private BigDecimal memberCommission;
/**
* logo
*/

View File

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