123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace JinDouYun\Dao\Stock;
- use JinDouYun\Dao\BaseDao;
- class DInventoryDetails extends BaseDao
- {
- public function __construct($serviceDB = 'stock')
- {
- $this->_table = 'inventory_details';
- $this->_primary = 'id';
- $this->_fields = [
- "id",
- "merchantId",
- "warehouseId",
- "originId",
- "originNo",
- "materielId",
- "materielCode",
- "materielName",
- "sourceNo",
- "source",
- "operatorId",
- "operatorName",
- "skuId",
- "unitName",
- "skuName",
- "inventoryNum",
- "otherNum",
- "inventoryChangeNum",
- "batch",
- "costType",
- "averageCost",
- "actionType",
- "createTime",
- "updateTime",
- "extend",
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|