增加商品详情的案例查询;删除部分技术债务

This commit is contained in:
2022-08-16 16:32:40 +08:00
parent 3661ff357f
commit 31f2be73d4
4 changed files with 144 additions and 7 deletions

View File

@@ -9,11 +9,7 @@ use app\admin\traits\Curd;
use app\common\controller\AdminController;
use app\admin\service\annotation\ControllerAnnotation;
use app\admin\service\annotation\NodeAnotation;
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use think\App;
use think\helper\Arr;
/**
* Class Goods
@@ -87,5 +83,14 @@ class Goods extends AdminController
$this->assign('row', $row);
return $this->fetch();
}
public function read($id)
{
$row = $this->model->find($id);
$this->assign('row', $row);
return $this->fetch();
}
}