tp6框架的销售统计系统

GoodsCategory.php 299B

    <?php namespace app\model; class GoodsCategory extends \think\Model { protected $schema = [ 'id' => 'int', 'name' => 'string', 'create_time' => 'int' ]; public function getGoodsCategories() { return $this->order('id')->column('name', 'id'); } }