DStaffLadder.Class.php 904 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * 职工阶梯
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2019/10/31
  7. * Time: 18:00
  8. */
  9. namespace JinDouYun\Dao\Department;
  10. use JinDouYun\Dao\BaseDao;
  11. class DStaffLadder extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'staff_ladder';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',// int NOT NULL,
  19. 'enterpriseId',// int NOT NULL COMMENT '企业id',
  20. 'name',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  21. 'number',// int NOT NULL COMMENT '服务次数',
  22. 'stock',// decimal(10,2) NOT NULL COMMENT '奖励股权',
  23. 'createTime',// int NOT NULL,
  24. ];
  25. $this->_readonly = ['id'];
  26. $this->_create_autofill = [
  27. 'createTime' => time()
  28. ];
  29. parent::__construct($serviceDB);
  30. }
  31. }