|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.qniao.dam.domain.aggregate.ffpm.entity; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
import com.qniao.dam.domian.aggregate.ffpm.constant.FranchiseFeeProfitManagementTypeEnum; |
|
|
|
import com.qniao.dam.domian.aggregate.walletaccount.constant.IdentityTypeEnum; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Data; |
|
|
|
@ -26,6 +27,8 @@ public class FranchiseFeeProfitManagement extends Entity<FranchiseFeeProfitManag |
|
|
|
@ApiModelProperty("身份类型(个人、组织)") |
|
|
|
private IdentityTypeEnum identityType; |
|
|
|
|
|
|
|
private FranchiseFeeProfitManagementTypeEnum type; |
|
|
|
|
|
|
|
@ApiModelProperty("是否完成分润") |
|
|
|
private Boolean isFinish; |
|
|
|
|
|
|
|
@ -33,10 +36,12 @@ public class FranchiseFeeProfitManagement extends Entity<FranchiseFeeProfitManag |
|
|
|
private Long associatedOrderId; |
|
|
|
|
|
|
|
public static FranchiseFeeProfitManagement initOrg(Long orgId, |
|
|
|
FranchiseFeeProfitManagementTypeEnum type, |
|
|
|
Long associatedOrderId) { |
|
|
|
FranchiseFeeProfitManagement management = new FranchiseFeeProfitManagement(); |
|
|
|
management.setOrgId(orgId); |
|
|
|
management.setIdentityType(IdentityTypeEnum.ORGANIZATION); |
|
|
|
management.setType(type); |
|
|
|
management.setIsFinish(false); |
|
|
|
management.setAssociatedOrderId(associatedOrderId); |
|
|
|
return management; |
|
|
|
|