diff --git a/app/jobs/store/platformCommission/GiveWeightValueJob.php b/app/jobs/store/platformCommission/GiveWeightValueJob.php index acf9075..4729be9 100644 --- a/app/jobs/store/platformCommission/GiveWeightValueJob.php +++ b/app/jobs/store/platformCommission/GiveWeightValueJob.php @@ -27,7 +27,7 @@ class GiveWeightValueJob implements JobInterface{ $userList = app()->make(WeightValueRepository::class)->getUserHoldList($data['uid']); $orderIds = StoreOrder::where('group_order_id',$data['group_order_id'])->column('order_id');// 获取订单id $productList = StoreOrderProduct::whereIn('order_id',$orderIds) - ->field('order_product_id,order_id,product_id,product_price') + ->field('order_product_id,order_id,product_id,(product_price + integral + integral_price) as product_price') ->select() ->toArray();// 获取当前订单中所有商品 $updateData = []; diff --git a/app/jobs/store/platformCommission/SparateLegumesJob.php b/app/jobs/store/platformCommission/SparateLegumesJob.php index 6f794b5..c574636 100644 --- a/app/jobs/store/platformCommission/SparateLegumesJob.php +++ b/app/jobs/store/platformCommission/SparateLegumesJob.php @@ -28,7 +28,7 @@ class SparateLegumesJob implements JobInterface{ if((int)$cycleLegumes['status'] != 0) throw new \Exception('当前豆豆已分配!'); // 获取时间段所有消费用户 $orderList = StoreOrder::whereNotIn('status',[-1,11]) - ->field('order_id,uid,(sum(pay_price) + sum(use_platform_integral_price)) as sum_money') + ->field('order_id,uid,(sum(pay_price) + sum(use_legumes_integral)) as sum_money') ->whereBetweenTime('pay_time',$cycleLegumes['start_time'],$cycleLegumes['end_time']) ->group('order_id') ->select()