DHoldersBonus.Class.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * 分红记录
  4. * Created by PhpStorm.
  5. * User: wxj
  6. * Date: 2019/10/31
  7. * Time: 15:02
  8. */
  9. namespace JinDouYun\Dao\Holders;
  10. use JinDouYun\Dao\BaseDao;
  11. class DHoldersBonus extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'holders_bonus';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',// int unsigned NOT NULL AUTO_INCREMENT,
  19. 'hol_id', // int NOT NULL,
  20. 'en_id',// int NOT NULL,
  21. 'mark',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '分红说明',
  22. 'type',// tinyint NOT NULL COMMENT '分红类型1原始股份分红2分红股份分红',
  23. 'number',// decimal(10,2) NOT NULL COMMENT '分红金额',
  24. 'before',// decimal(10,2) NOT NULL COMMENT '变动前',
  25. 'after',// decimal(10,2) NOT NULL COMMENT '变动后',
  26. 'total',// decimal(10,2) NOT NULL COMMENT '分红总金额',
  27. 'shares',// decimal(10,2) NOT NULL COMMENT '持有股份',
  28. 'createTime',// int NOT NULL COMMENT '时间',
  29. ];
  30. $this->_readonly = ['id'];
  31. $this->_create_autofill = [
  32. 'createTime' => time()
  33. ];
  34. parent::__construct($serviceDB);
  35. }
  36. }