whereIn
This commit is contained in:
parent
9366f59cc2
commit
a7edd554f0
@ -268,7 +268,7 @@ class OrderService extends Service
|
||||
app(RealOrderCardPartitionRepository::class)->forgetCached();
|
||||
} catch (\Exception $e) {
|
||||
DB::rollBack();
|
||||
throw new HttpException('操作失败');
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
@ -753,7 +753,7 @@ class OrderService extends Service
|
||||
}
|
||||
|
||||
foreach (array_chunk($data, 1000) as $value) {
|
||||
if ($table === 'virtual_order_cards' && DB::table($table)->where('sim', array_pluck($value, 'sim'))->whereNotNull('deleted_at')->count()) {
|
||||
if ($table === 'virtual_order_cards' && DB::table($table)->whereIn('sim', array_pluck($value, 'sim'))->whereNotNull('deleted_at')->count()) {
|
||||
throw new ExistedException('出现重复销售卡');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user