|
|
@@ -31,18 +31,21 @@ class TestController extends Controller
|
|
|
public function actionOrder()
|
|
|
{
|
|
|
$list = \bizGhs\order\classes\OrderClass::getAllByCondition(['mainId' => 10975, 'customId' => 19746, 'onlinePay' => 1, 'payTime>' => '2024-9-30 23:59:59', 'payTime<' => '2024-11-01 00:00:00', 'payStatus' => 1], null, '*', null, true);
|
|
|
+ $ids = [];
|
|
|
if (!empty($list)) {
|
|
|
$total = 0;
|
|
|
foreach ($list as $order) {
|
|
|
$actPrice = $order->actPrice ?? 0;
|
|
|
$total = bcadd($actPrice, $total, 2);
|
|
|
+ $ids[] = $order->id;
|
|
|
}
|
|
|
echo $total;
|
|
|
}
|
|
|
- $clear = ClearClass::getByCondition(['orderSn'=>'CL28884368'],true);
|
|
|
+ $clear = ClearClass::getByCondition(['orderSn' => 'CL28884368'], true);
|
|
|
$string = $clear->saleIds;
|
|
|
- $saleIds = explode(',',trim($string));
|
|
|
- print_r($saleIds);
|
|
|
+ $saleIds = explode(',', trim($string));
|
|
|
+ $arr = array_diff($ids, $saleIds);
|
|
|
+ print_r($arr);
|
|
|
}
|
|
|
|
|
|
//更新核销码 ssh 20240804
|