12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * 职工阶梯
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/10/31
- * Time: 18:00
- */
- namespace JinDouYun\Dao\Department;
- use JinDouYun\Dao\BaseDao;
- class DStaffLadder extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'staff_ladder';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',// int NOT NULL,
- 'enterpriseId',// int NOT NULL COMMENT '企业id',
- 'name',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
- 'number',// int NOT NULL COMMENT '服务次数',
- 'stock',// decimal(10,2) NOT NULL COMMENT '奖励股权',
- 'createTime',// int NOT NULL,
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|