Commit 49f08c4b authored by hangjun83's avatar hangjun83

罗恩工具类更新

parent e20159e3
......@@ -557,13 +557,15 @@ class RhawnOrdersService
if($refundInfo->handle_fee > 0){
$otherDpdDetail = $dbConnect->table('dpdetail')
->where('si_id', $orderitem['si_id'])
->whereNotIn('pstk_id', $pstk_id)
->whereNotIn('pstk_id', [$pstk_id])
->get()->first();
$otherUpdate = [];
$otherUpdate['dpd_amount'] = bcmul($updatedItem['update']['si_discount'], $otherDpdDetail->dpd_num, 2);
$dbConnect->table('dpdetail')
->where('dpd_id', $otherDpdDetail->dpd_id)
->update($otherUpdate);
if($otherDpdDetail){
$otherUpdate = [];
$otherUpdate['dpd_amount'] = bcmul($updatedItem['update']['si_discount'], $otherDpdDetail->dpd_num, 2);
$dbConnect->table('dpdetail')
->where('dpd_id', $otherDpdDetail->dpd_id)
->update($otherUpdate);
}
}
}
$dbConnect->table('dpdetail')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment