DividendLogEntity.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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 $arrivalInfo = null; // 到账金额
  18. public $result = null; // 实际分配结果
  19. public $isTest = null; // 是否为测试数据
  20. public $remark = null; // 备注
  21. public $createTime = null; // 创建时间
  22. /**
  23. * @return mixed
  24. */
  25. public function getId()
  26. {
  27. return $this->id;
  28. }
  29. /**
  30. * @param mixed $id
  31. * @return DividendLogEntity
  32. */
  33. public function setId($id): DividendLogEntity
  34. {
  35. $this->id = $id;
  36. return $this;
  37. }
  38. /**
  39. * @return mixed
  40. */
  41. public function getType()
  42. {
  43. return $this->type;
  44. }
  45. /**
  46. * @param mixed $type
  47. * @return DividendLogEntity
  48. */
  49. public function setType($type): DividendLogEntity
  50. {
  51. $this->type = $type;
  52. return $this;
  53. }
  54. /**
  55. * @return mixed
  56. */
  57. public function getStartTime()
  58. {
  59. return $this->startTime;
  60. }
  61. /**
  62. * @param mixed $startTime
  63. * @return DividendLogEntity
  64. */
  65. public function setStartTime($startTime): DividendLogEntity
  66. {
  67. $this->startTime = $startTime;
  68. return $this;
  69. }
  70. /**
  71. * @return mixed
  72. */
  73. public function getEndTime()
  74. {
  75. return $this->endTime;
  76. }
  77. /**
  78. * @param mixed $endTime
  79. * @return DividendLogEntity
  80. */
  81. public function setEndTime($endTime): DividendLogEntity
  82. {
  83. $this->endTime = $endTime;
  84. return $this;
  85. }
  86. /**
  87. * @return mixed
  88. */
  89. public function getPerformance()
  90. {
  91. return $this->performance;
  92. }
  93. /**
  94. * @param mixed $performance
  95. * @return DividendLogEntity
  96. */
  97. public function setPerformance($performance): DividendLogEntity
  98. {
  99. $this->performance = $performance;
  100. return $this;
  101. }
  102. /**
  103. * @return mixed
  104. */
  105. public function getAbatement()
  106. {
  107. return $this->abatement;
  108. }
  109. /**
  110. * @param mixed $abatement
  111. * @return DividendLogEntity
  112. */
  113. public function setAbatement($abatement): DividendLogEntity
  114. {
  115. $this->abatement = $abatement;
  116. return $this;
  117. }
  118. /**
  119. * @return mixed
  120. */
  121. public function getAllocated()
  122. {
  123. return $this->allocated;
  124. }
  125. /**
  126. * @param mixed $allocated
  127. * @return DividendLogEntity
  128. */
  129. public function setAllocated($allocated): DividendLogEntity
  130. {
  131. $this->allocated = $allocated;
  132. return $this;
  133. }
  134. /**
  135. * @return mixed
  136. */
  137. public function getRule()
  138. {
  139. return $this->rule;
  140. }
  141. /**
  142. * @param mixed $rule
  143. * @return DividendLogEntity
  144. */
  145. public function setRule($rule): DividendLogEntity
  146. {
  147. $this->rule = $rule;
  148. return $this;
  149. }
  150. /**
  151. * @return mixed
  152. */
  153. public function getExpected()
  154. {
  155. return $this->expected;
  156. }
  157. /**
  158. * @param mixed $expected
  159. * @return DividendLogEntity
  160. */
  161. public function setExpected($expected): DividendLogEntity
  162. {
  163. $this->expected = $expected;
  164. return $this;
  165. }
  166. /**
  167. * @return mixed
  168. */
  169. public function getFeeWaiverUids()
  170. {
  171. if (is_string($this->feeWaiverUids)) {
  172. return json_decode($this->feeWaiverUids, true);
  173. }
  174. return $this->feeWaiverUids;
  175. }
  176. /**
  177. * @param mixed $feeWaiverUids
  178. * @return DividendLogEntity
  179. */
  180. public function setFeeWaiverUids($feeWaiverUids): DividendLogEntity
  181. {
  182. if (is_array($feeWaiverUids)) {
  183. $feeWaiverUids = json_encode($feeWaiverUids);
  184. }
  185. $this->feeWaiverUids = $feeWaiverUids;
  186. return $this;
  187. }
  188. /**
  189. * @return mixed
  190. */
  191. public function getArrivalPoint()
  192. {
  193. return $this->arrivalPoint;
  194. }
  195. /**
  196. * @param mixed $arrivalPoint
  197. * @return DividendLogEntity
  198. */
  199. public function setArrivalPoint($arrivalPoint): DividendLogEntity
  200. {
  201. $this->arrivalPoint = $arrivalPoint;
  202. return $this;
  203. }
  204. /**
  205. * @return mixed
  206. */
  207. public function getArrivalInfo()
  208. {
  209. if (is_string($this->arrivalInfo)) {
  210. return json_decode($this->arrivalInfo, true);
  211. }
  212. return $this->arrivalInfo;
  213. }
  214. /**
  215. * @param mixed $arrivalInfo
  216. * @return DividendLogEntity
  217. */
  218. public function setArrivalInfo($arrivalInfo): DividendLogEntity
  219. {
  220. if (is_array($arrivalInfo)) {
  221. $arrivalInfo = json_encode($arrivalInfo);
  222. }
  223. $this->arrivalInfo = $arrivalInfo;
  224. return $this;
  225. }
  226. /**
  227. * @return mixed
  228. */
  229. public function getResult()
  230. {
  231. return $this->result;
  232. }
  233. /**
  234. * @param mixed $result
  235. * @return DividendLogEntity
  236. */
  237. public function setResult($result): DividendLogEntity
  238. {
  239. $this->result = $result;
  240. return $this;
  241. }
  242. /**
  243. * @return mixed
  244. */
  245. public function getIsTest()
  246. {
  247. return $this->isTest;
  248. }
  249. /**
  250. * @param mixed $isTest
  251. * @return DividendLogEntity
  252. */
  253. public function setIsTest($isTest): DividendLogEntity
  254. {
  255. $this->isTest = $isTest;
  256. return $this;
  257. }
  258. /**
  259. * @return mixed
  260. */
  261. public function getRemark()
  262. {
  263. return $this->remark;
  264. }
  265. /**
  266. * @param mixed $remark
  267. * @return DividendLogEntity
  268. */
  269. public function setRemark($remark): DividendLogEntity
  270. {
  271. $this->remark = $remark;
  272. return $this;
  273. }
  274. /**
  275. * @return mixed
  276. */
  277. public function getCreateTime()
  278. {
  279. return $this->createTime;
  280. }
  281. /**
  282. * @param mixed $createTime
  283. * @return DividendLogEntity
  284. */
  285. public function setCreateTime($createTime): DividendLogEntity
  286. {
  287. $this->createTime = $createTime;
  288. return $this;
  289. }
  290. }