|
|
@@ -68,7 +68,8 @@ class ViolationProduct extends Controller
|
|
|
$ViolationProductModel = $ViolationProductModel->whereIn('id', function ($query) use ($platform_ids) {
|
|
|
$query->select('product_id')
|
|
|
->from('washconfig_violation_product_platform')
|
|
|
- ->whereIn('platform_id', $platform_ids);
|
|
|
+ ->whereIn('platform_id', $platform_ids)
|
|
|
+ ->distinct('product_id');;
|
|
|
});
|
|
|
}
|
|
|
$result = $ViolationProductModel
|