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