Commit 49f08c4b authored by hangjun83's avatar hangjun83

罗恩工具类更新

parent e20159e3
...@@ -557,13 +557,15 @@ class RhawnOrdersService ...@@ -557,13 +557,15 @@ class RhawnOrdersService
if($refundInfo->handle_fee > 0){ if($refundInfo->handle_fee > 0){
$otherDpdDetail = $dbConnect->table('dpdetail') $otherDpdDetail = $dbConnect->table('dpdetail')
->where('si_id', $orderitem['si_id']) ->where('si_id', $orderitem['si_id'])
->whereNotIn('pstk_id', $pstk_id) ->whereNotIn('pstk_id', [$pstk_id])
->get()->first(); ->get()->first();
$otherUpdate = []; if($otherDpdDetail){
$otherUpdate['dpd_amount'] = bcmul($updatedItem['update']['si_discount'], $otherDpdDetail->dpd_num, 2); $otherUpdate = [];
$dbConnect->table('dpdetail') $otherUpdate['dpd_amount'] = bcmul($updatedItem['update']['si_discount'], $otherDpdDetail->dpd_num, 2);
->where('dpd_id', $otherDpdDetail->dpd_id) $dbConnect->table('dpdetail')
->update($otherUpdate); ->where('dpd_id', $otherDpdDetail->dpd_id)
->update($otherUpdate);
}
} }
} }
$dbConnect->table('dpdetail') $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