DividendLogEntity.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <?php
  2. namespace app\entity\data\dividend;
  3. use app\entity\data\DataEntity;
  4. class DividendLogEntity extends DataEntity
  5. {
  6. public $id = null; // 主键
  7. public $type = null; // 分润类型:1合伙人分红;2联创分红;3股权分红;4佣金补贴
  8. public $startTime = null; // 分润周期开始时间
  9. public $endTime = null; // 分润周期结束时间
  10. public $performance = null; // 业绩
  11. public $abatement = null; // 扣减项(原因)
  12. public $allocated = null; // 实际分配业绩
  13. public $rule = null; // 分配规则
  14. public $expected = null;
  15. public $feeWaiverUids = null; // 免分配人员ID集合(可能由于业绩不达标)
  16. public $arrivalPoint = null; // 到账金额
  17. public $result = null; // 实际分配结果
  18. public $isTest = null; // 是否为测试数据
  19. public $remark = null; // 备注
  20. public $createTime = null; // 创建时间
  21. /**
  22. * @return mixed
  23. */
  24. public function getId()
  25. {
  26. return $this->id;
  27. }
  28. /**
  29. * @param mixed $id
  30. * @return DividendLogEntity
  31. */
  32. public function setId($id): DividendLogEntity
  33. {
  34. $this->id = $id;
  35. return $this;
  36. }
  37. /**
  38. * @return mixed
  39. */
  40. public function getType()
  41. {
  42. return $this->type;
  43. }
  44. /**
  45. * @param mixed $type
  46. * @return DividendLogEntity
  47. */
  48. public function setType($type): DividendLogEntity
  49. {
  50. $this->type = $type;
  51. return $this;
  52. }
  53. /**
  54. * @return mixed
  55. */
  56. public function getStartTime()
  57. {
  58. return $this->startTime;
  59. }
  60. /**
  61. * @param mixed $startTime
  62. * @return DividendLogEntity
  63. */
  64. public function setStartTime($startTime): DividendLogEntity
  65. {
  66. $this->startTime = $startTime;
  67. return $this;
  68. }
  69. /**
  70. * @return mixed
  71. */
  72. public function getEndTime()
  73. {
  74. return $this->endTime;
  75. }
  76. /**
  77. * @param mixed $endTime
  78. * @return DividendLogEntity
  79. */
  80. public function setEndTime($endTime): DividendLogEntity
  81. {
  82. $this->endTime = $endTime;
  83. return $this;
  84. }
  85. /**
  86. * @return mixed
  87. */
  88. public function getPerformance()
  89. {
  90. return $this->performance;
  91. }
  92. /**
  93. * @param mixed $performance
  94. * @return DividendLogEntity
  95. */
  96. public function setPerformance($performance): DividendLogEntity
  97. {
  98. $this->performance = $performance;
  99. return $this;
  100. }
  101. /**
  102. * @return mixed
  103. */
  104. public function getAbatement()
  105. {
  106. return $this->abatement;
  107. }
  108. /**
  109. * @param mixed $abatement
  110. * @return DividendLogEntity
  111. */
  112. public function setAbatement($abatement): DividendLogEntity
  113. {
  114. $this->abatement = $abatement;
  115. return $this;
  116. }
  117. /**
  118. * @return mixed
  119. */
  120. public function getAllocated()
  121. {
  122. return $this->allocated;
  123. }
  124. /**
  125. * @param mixed $allocated
  126. * @return DividendLogEntity
  127. */
  128. public function setAllocated($allocated): DividendLogEntity
  129. {
  130. $this->allocated = $allocated;
  131. return $this;
  132. }
  133. /**
  134. * @return mixed
  135. */
  136. public function getRule()
  137. {
  138. return $this->rule;
  139. }
  140. /**
  141. * @param mixed $rule
  142. * @return DividendLogEntity
  143. */
  144. public function setRule($rule): DividendLogEntity
  145. {
  146. $this->rule = $rule;
  147. return $this;
  148. }
  149. /**
  150. * @return mixed
  151. */
  152. public function getExpected()
  153. {
  154. return $this->expected;
  155. }
  156. /**
  157. * @param mixed $expected
  158. * @return DividendLogEntity
  159. */
  160. public function setExpected($expected): DividendLogEntity
  161. {
  162. $this->expected = $expected;
  163. return $this;
  164. }
  165. /**
  166. * @return mixed
  167. */
  168. public function getFeeWaiverUids()
  169. {
  170. if (is_string($this->feeWaiverUids)) {
  171. return json_decode($this->feeWaiverUids, true);
  172. }
  173. return $this->feeWaiverUids;
  174. }
  175. /**
  176. * @param mixed $feeWaiverUids
  177. * @return DividendLogEntity
  178. */
  179. public function setFeeWaiverUids($feeWaiverUids): DividendLogEntity
  180. {
  181. if (is_array($feeWaiverUids)) {
  182. $feeWaiverUids = json_encode($feeWaiverUids);
  183. }
  184. $this->feeWaiverUids = $feeWaiverUids;
  185. return $this;
  186. }
  187. /**
  188. * @return mixed
  189. */
  190. public function getArrivalPoint()
  191. {
  192. return $this->arrivalPoint;
  193. }
  194. /**
  195. * @param mixed $arrivalPoint
  196. * @return DividendLogEntity
  197. */
  198. public function setArrivalPoint($arrivalPoint): DividendLogEntity
  199. {
  200. $this->arrivalPoint = $arrivalPoint;
  201. return $this;
  202. }
  203. /**
  204. * @return mixed
  205. */
  206. public function getResult()
  207. {
  208. return $this->result;
  209. }
  210. /**
  211. * @param mixed $result
  212. * @return DividendLogEntity
  213. */
  214. public function setResult($result): DividendLogEntity
  215. {
  216. $this->result = $result;
  217. return $this;
  218. }
  219. /**
  220. * @return mixed
  221. */
  222. public function getIsTest()
  223. {
  224. return $this->isTest;
  225. }
  226. /**
  227. * @param mixed $isTest
  228. * @return DividendLogEntity
  229. */
  230. public function setIsTest($isTest): DividendLogEntity
  231. {
  232. $this->isTest = $isTest;
  233. return $this;
  234. }
  235. /**
  236. * @return mixed
  237. */
  238. public function getRemark()
  239. {
  240. return $this->remark;
  241. }
  242. /**
  243. * @param mixed $remark
  244. * @return DividendLogEntity
  245. */
  246. public function setRemark($remark): DividendLogEntity
  247. {
  248. $this->remark = $remark;
  249. return $this;
  250. }
  251. /**
  252. * @return mixed
  253. */
  254. public function getCreateTime()
  255. {
  256. return $this->createTime;
  257. }
  258. /**
  259. * @param mixed $createTime
  260. * @return DividendLogEntity
  261. */
  262. public function setCreateTime($createTime): DividendLogEntity
  263. {
  264. $this->createTime = $createTime;
  265. return $this;
  266. }
  267. }