Commit 513c16f3 authored by clone's avatar clone

bug

parent ff92a238
This diff is collapsed.
...@@ -14,22 +14,11 @@ class ORealIncome extends BaseModel ...@@ -14,22 +14,11 @@ class ORealIncome extends BaseModel
/** /**
* 增加实收佣金 * 增加实收佣金
* *
* @param $data * @param $insert_data
* @param $bargain_id
* @param $agent_id
* @return array|false * @return array|false
* @throws \Exception * @throws \Exception
*/ */
public function addRealIncome($data, $bargain_id, $agent_id) { public function addRealIncome($insert_data) {
$insert_data = [];
foreach ($data as $k => $v) {
$insert_data[$k]['id'] = $v['fee_id'];
$insert_data[$k]['bargain_id'] = $bargain_id;
$insert_data[$k]['operation_id'] = $agent_id;
$insert_data[$k]['money'] = $v['fee'];
$insert_data[$k]['income_time'] = $v['operation_date'];
}
return $this->saveAll($insert_data); return $this->saveAll($insert_data);
} }
......
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