Sfoglia il codice sorgente

feat(entity): 添加共富余额实体字段和方法

- 新增 pm 字段表示增加或减少操作
- 新增 type 字段区分合伙人分红和共富奖类型
- 新增 status 字段管理记录状态(失效、待生效、已生效)
- 添加 get/set 方法支持 pm 字段操作
- 添加 get/set 方法支持 type 字段操作
- 添加 get/set 方法支持 status 字段操作
- 扩展实体功能以支持完整的业务逻辑处理
shichen 5 mesi fa
parent
commit
551e8fc370
1 ha cambiato i file con 36 aggiunte e 0 eliminazioni
  1. 36 0
      app/entity/data/shared/SharedProsperityBalanceEntity.php

+ 36 - 0
app/entity/data/shared/SharedProsperityBalanceEntity.php

@@ -8,12 +8,15 @@ class SharedProsperityBalanceEntity extends DataEntity
8 8
 {
9 9
     public $id = null;  // 主键
10 10
     public $userId = null;  // 用户id
11
+    public $pm = null;  // 1增加 0减少
12
+    public $type = null;  // 类型 1合伙人分红 2共富奖
11 13
     public $level = null;  // 用户等级
12 14
     public $radio = null;  // 分配比例
13 15
     public $total_profit = null; // 总佣金
14 16
     public $old = null;  // 变更前佣金
15 17
     public $number = null;  // 操作佣金
16 18
     public $after = null;  // 变更后佣金
19
+    public $status = null;  // 状态 -1失效 0待生效 1已生效
17 20
     public $createTime = null;  // 创建时间
18 21
 
19 22
     public function getId()
@@ -27,6 +30,28 @@ class SharedProsperityBalanceEntity extends DataEntity
27 30
         return $this;
28 31
     }
29 32
 
33
+    public function getPm()
34
+    {
35
+        return $this->pm;
36
+    }
37
+
38
+    public function setPm($pm): SharedProsperityBalanceEntity
39
+    {
40
+        $this->pm = $pm;
41
+        return $this;
42
+    }
43
+
44
+    public function getType()
45
+    {
46
+        return $this->type;
47
+    }
48
+
49
+    public function setType($type): SharedProsperityBalanceEntity
50
+    {
51
+        $this->type = $type;
52
+        return $this;
53
+    }
54
+
30 55
     public function getUserId()
31 56
     {
32 57
         return $this->userId;
@@ -104,6 +129,17 @@ class SharedProsperityBalanceEntity extends DataEntity
104 129
         return $this;
105 130
     }
106 131
 
132
+    public function getStatus()
133
+    {
134
+        return $this->status;
135
+    }
136
+
137
+    public function setStatus($status): SharedProsperityBalanceEntity
138
+    {
139
+        $this->status = $status;
140
+        return $this;
141
+    }
142
+
107 143
     public function getCreateTime()
108 144
     {
109 145
         return $this->createTime;