You've already forked FrameTour-BE
IProfitSharing
This commit is contained in:
@@ -2,11 +2,16 @@ package com.ycwl.basic.profitsharing.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ProfitSharingConfig {
|
||||
private boolean enabled;
|
||||
private Long id;
|
||||
private Long scenicId;
|
||||
private List<ProfitSharingUser> profitSharingList;
|
||||
private String name;
|
||||
private String description;
|
||||
private Date createTime;
|
||||
private Date updateTime;
|
||||
private List<ProfitSharingUser> users;
|
||||
}
|
||||
|
@@ -0,0 +1,22 @@
|
||||
package com.ycwl.basic.profitsharing.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class ProfitSharingRecord {
|
||||
private Long id;
|
||||
private Long scenicId;
|
||||
private Long orderId;
|
||||
private Long userId;
|
||||
private String userName;
|
||||
private BigDecimal amount;
|
||||
private BigDecimal wxAmount;
|
||||
private BigDecimal manualAmount;
|
||||
private BigDecimal wxRate; // 微信分账比例
|
||||
private BigDecimal realRate; // 实际分账比例
|
||||
private BigDecimal orderAmount; // 订单金额
|
||||
private Date createTime;
|
||||
}
|
@@ -1,15 +1,35 @@
|
||||
package com.ycwl.basic.profitsharing.entity;
|
||||
|
||||
import com.ycwl.basic.profitsharing.enums.ProfitSharingUserType;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.ycwl.basic.profitsharing.enums.ProfitSharingWxPayType;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Map;
|
||||
|
||||
@Data
|
||||
public class ProfitSharingUser {
|
||||
private ProfitSharingUserType type;
|
||||
private Integer amount;
|
||||
private Long id;
|
||||
private Long configId;
|
||||
private ProfitSharingWxPayType wxPayType;
|
||||
private Map<String, String> wxPayConfig;
|
||||
private String name;
|
||||
private String description;
|
||||
/**
|
||||
* 微信分账比例,单位为%
|
||||
*/
|
||||
private BigDecimal wxRate;
|
||||
/**
|
||||
* 实际分账比例,单位为%
|
||||
*/
|
||||
private BigDecimal realRate;
|
||||
}
|
||||
private BigDecimal orderAmount; // 订单金额
|
||||
|
||||
public void setWxPayConfig(String wxPayConfig) {
|
||||
this.wxPayConfig = JSON.parseObject(wxPayConfig, Map.class);
|
||||
}
|
||||
|
||||
public String getWxPayConfig() {
|
||||
return JSON.toJSONString(wxPayConfig);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user