12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace Jobs\Dao\Stock;
- use Jobs\Dao\BaseDao;
- class DInventoryIn extends BaseDao
- {
- public function __construct($serviceDB = 'stock')
- {
- $this->_table = 'inventory_in';
- $this->_primary = 'id';
- $this->_fields = [
- "id",
- "no",
- "sourceId",
- "sourceNo",
- "originNo",
- "merchantId",
- "originId",
- "materielNum",
- "amount",
- "costAllocationType",
- "costAllocation",
- "shopId",
- "warehouseId",
- "warehouseName",
- "operatorId",
- "operatorName",
- "auditId",
- "auditName",
- "remark",
- "deleteStatus",
- "source",
- "type",
- "auditStatus",
- "auditTime",
- "createTime",
- "updateTime",
- "extend",
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|