1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace JinDouYun\Dao\Stock;
- use JinDouYun\Dao\BaseDao;
- class DInventoryBatch extends BaseDao
- {
- public function __construct($serviceDB = 'stock')
- {
- $this->_table = 'inventory_batch';
- $this->_primary = 'id';
- $this->_fields = [
- "id",
- "merchantId",
- "originId",
- "originNo",
- "warehouseId",
- "materielId",
- "materielCode",
- "sourceNo",
- "skuId",
- "batchNo",
- "num",
- "otherNum",
- "averageCost",
- "batchCost",
- "productionData",
- "shelfLife",
- "batchStatus",
- "createTime",
- "updateTime",
- "extend",
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time(),
- 'updateTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|