123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace JinDouYun\Dao\Stock;
- use JinDouYun\Dao\BaseDao;
- class DConsume extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'consume';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',
- 'userCenterId',
- 'write',
- 'enterpriseId',
- 'shopId',
- 'warehouseId',
- 'name',
- 'image',
- 'status',
- 'number',
- 'price',
- 'createTime',
- 'writeTime',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|