|
@@ -104,7 +104,7 @@ class Product extends Controller
|
|
|
// 查询数据
|
|
// 查询数据
|
|
|
$result = $ProductModel->query()
|
|
$result = $ProductModel->query()
|
|
|
->where($map)
|
|
->where($map)
|
|
|
- ->select(['id','product_name'])
|
|
|
|
|
|
|
+ ->select(['id','product_name','product_specs'])
|
|
|
->distinct('product_name')
|
|
->distinct('product_name')
|
|
|
->orderByDesc('id')->get()->toarray();
|
|
->orderByDesc('id')->get()->toarray();
|
|
|
// 分配数据
|
|
// 分配数据
|