You've already forked FrameTour-BE
补充全免费逻辑
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
package com.ycwl.basic.profitsharing.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ProfitSharingConfig {
|
||||
private boolean enabled;
|
||||
private Long scenicId;
|
||||
private List<ProfitSharingUser> profitSharingList;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.ycwl.basic.profitsharing.entity;
|
||||
|
||||
import com.ycwl.basic.profitsharing.enums.ProfitSharingUserType;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class ProfitSharingUser {
|
||||
private ProfitSharingUserType type;
|
||||
private Integer amount;
|
||||
private String description;
|
||||
private BigDecimal wxRate;
|
||||
private BigDecimal realRate;
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package com.ycwl.basic.profitsharing.enums;
|
||||
|
||||
public enum ProfitSharingUserType {
|
||||
MERCHANT("MERCHANT_ID", "商户号"),
|
||||
PERSON_SUB("PERSONAL_SUB_OPENID", "子商户个人"),
|
||||
PERSON_PARENT("PERSONAL_OPENID", "父商户个人");
|
||||
|
||||
private final String code;
|
||||
private final String desc;
|
||||
|
||||
ProfitSharingUserType(String code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user