|
@@ -9,17 +9,16 @@ use Yii;
|
|
|
class JhItemController extends PublicController
|
|
class JhItemController extends PublicController
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
- //根据分类id取集合,带分页 ssh 20231228
|
|
|
|
|
|
|
+ //根据集合id取花材,带分页 ssh 20231228
|
|
|
public function actionList()
|
|
public function actionList()
|
|
|
{
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
$get = Yii::$app->request->get();
|
|
|
- $classId = $get['classId'] ?? 0;
|
|
|
|
|
|
|
+ $jhId = $get['jhId'] ?? 0;
|
|
|
$mainId = $this->mainId ?? 0;
|
|
$mainId = $this->mainId ?? 0;
|
|
|
$where = [];
|
|
$where = [];
|
|
|
$where['mainId'] = $mainId;
|
|
$where['mainId'] = $mainId;
|
|
|
- $where['delStatus'] = 0;
|
|
|
|
|
- if (!empty($classId)) {
|
|
|
|
|
- $where['classId'] = $classId;
|
|
|
|
|
|
|
+ if (!empty($jhId)) {
|
|
|
|
|
+ $where['jhId'] = $jhId;
|
|
|
}
|
|
}
|
|
|
$respond = JhItemClass::getItemList($where);
|
|
$respond = JhItemClass::getItemList($where);
|
|
|
util::success($respond);
|
|
util::success($respond);
|