init
This commit is contained in:
@@ -3,6 +3,7 @@ package com.ruoyi.cai.domain;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ruoyi.cai.enums.ConsumeLogType;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
@@ -175,4 +176,20 @@ public class ConsumeLog implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取创建受益人的源头
|
||||
* @return
|
||||
*/
|
||||
public Long getCreateInviteUserId(){
|
||||
if(ConsumeLogType.GIFT.getCode().equals(this.getType())){
|
||||
return this.targetUserId;
|
||||
}else if(ConsumeLogType.GUARD.getCode().equals(this.getType())){
|
||||
return this.targetUserId;
|
||||
}else if(ConsumeLogType.VIDEO.getCode().equals(this.getType())){
|
||||
return this.targetUserId;
|
||||
}else if(ConsumeLogType.RECHARGE.getCode().equals(this.getType())){
|
||||
return this.sourceUserId;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user