1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace JinDouYun\Dao\GoodsManage;
- use JinDouYun\Dao\BaseDao;
- class DSku extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'sku';
- $this->_primary = 'id';
- $this->_fields = [
- "id",
- "goodsId",
- "conversion",
- "unitId",
- "unitName",
- "isMaster",
- "deleteStatus",
- "extends",
- "createTime",
- "updateTime",
- "specType",
- "specImage",
- "specData",
- "specGroupHash",
- "barCode",
- 'isDefault',
- 'weight',
- 'isNew'
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|