12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * 职工股份记录
- * Created by PhpStorm.
- * User: 小威
- * Date: 2019/10/31
- * Time: 18:00
- */
- namespace JinDouYun\Dao\Department;
- use JinDouYun\Dao\BaseDao;
- class DStaffStock extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'staff_stock';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',// int unsigned NOT NULL AUTO_INCREMENT,
- 'en_id',// int NOT NULL,
- 'staff_id',// int NOT NULL,
- 'pm',// tinyint NOT NULL COMMENT '1增加2减少',
- 'number',// decimal(10,2) NOT NULL COMMENT '数量',
- 'before',// decimal(10,2) NOT NULL COMMENT '之前',
- 'after',// decimal(10,2) NOT NULL COMMENT '之后',
- 'mark',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
- 'createTime',// int NOT NULL COMMENT '时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|