|
|
@@ -51,16 +51,15 @@ class RenewClass extends BaseClass
|
|
|
return false;
|
|
|
}
|
|
|
$ptStyle = dict::getDict('ptStyle', 'hd');
|
|
|
- $list = self::getRenewList(['mainId' => $mainId, 'status' => 1, 'ptStyle' => $ptStyle]);
|
|
|
+ $list = self::getAllByCondition(['mainId' => $mainId, 'status' => 1, 'ptStyle' => $ptStyle]);
|
|
|
if (empty($list)) {
|
|
|
return false;
|
|
|
}
|
|
|
foreach ($list as $item) {
|
|
|
$sn = is_array($item) ? (string) ($item['orderSn'] ?? '') : (string) ($item->orderSn ?? '');
|
|
|
- if ($excludeOrderSn !== '' && $sn === $excludeOrderSn) {
|
|
|
- continue;
|
|
|
+ if ($excludeOrderSn !== '' && $sn !== $excludeOrderSn) {
|
|
|
+ return true;
|
|
|
}
|
|
|
- return true;
|
|
|
}
|
|
|
return false;
|
|
|
}
|