123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * 职工阶梯
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/10/31
- * Time: 18:00
- */
- namespace JinDouYun\Dao\Department;
- use JinDouYun\Dao\BaseDao;
- class DStaffLadderRecord extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'staff_ladder_record';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',// int unsigned NOT NULL AUTO_INCREMENT,
- 'en_id',// int NOT NULL,
- 'staff_id',// int NOT NULL,
- 'ladder_id',// int NOT NULL,
- 'createTime',// datetime DEFAULT NULL,
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|