DStaffLadderRecord.Class.php 785 B

123456789101112131415161718192021222324252627282930313233
  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 DStaffLadderRecord extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'staff_ladder_record';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. 'id',// int unsigned NOT NULL AUTO_INCREMENT,
  19. 'en_id',// int NOT NULL,
  20. 'staff_id',// int NOT NULL,
  21. 'ladder_id',// int NOT NULL,
  22. 'createTime',// datetime DEFAULT NULL,
  23. ];
  24. $this->_readonly = ['id'];
  25. $this->_create_autofill = [
  26. 'createTime' => time()
  27. ];
  28. parent::__construct($serviceDB);
  29. }
  30. }