|
...
|
...
|
@@ -69,12 +69,7 @@ class DetailController extends BaseController |
|
|
|
* @time :2024/11/12 15:07
|
|
|
|
*/
|
|
|
|
public function getColumn(Column $column){
|
|
|
|
$this->request->validate([
|
|
|
|
'product_id'=>'required'
|
|
|
|
],[
|
|
|
|
'product_id.required' => '产品id不能为空'
|
|
|
|
]);
|
|
|
|
$this->map['product_id'] = ['in',[0,$this->map['product_id']]];
|
|
|
|
$this->map['product_id'] = ['in',[0,$this->map['product_id'] ?? 0]];
|
|
|
|
$data = $column->list($this->map,'id',['*'],'asc');
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
...
|
...
|
|