Commit 49f08c4b authored by hangjun83's avatar hangjun83

罗恩工具类更新

parent e20159e3
...@@ -557,8 +557,9 @@ class RhawnOrdersService ...@@ -557,8 +557,9 @@ 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();
if($otherDpdDetail){
$otherUpdate = []; $otherUpdate = [];
$otherUpdate['dpd_amount'] = bcmul($updatedItem['update']['si_discount'], $otherDpdDetail->dpd_num, 2); $otherUpdate['dpd_amount'] = bcmul($updatedItem['update']['si_discount'], $otherDpdDetail->dpd_num, 2);
$dbConnect->table('dpdetail') $dbConnect->table('dpdetail')
...@@ -566,6 +567,7 @@ class RhawnOrdersService ...@@ -566,6 +567,7 @@ class RhawnOrdersService
->update($otherUpdate); ->update($otherUpdate);
} }
} }
}
$dbConnect->table('dpdetail') $dbConnect->table('dpdetail')
->where('dpd_id', $dpdDetail->dpd_id) ->where('dpd_id', $dpdDetail->dpd_id)
->update($dpUpdateArr); ->update($dpUpdateArr);
......
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