Commit 96f93b69 authored by hujun's avatar hujun

id or father_id

parent 49f537eb
...@@ -2720,10 +2720,11 @@ class Finance extends Basic ...@@ -2720,10 +2720,11 @@ class Finance extends Basic
*/ */
private function updatePerformanceAll(int $bargain_id = 0): array private function updatePerformanceAll(int $bargain_id = 0): array
{ {
$data['status'] = 'fail';
try { try {
$where = $update_data = []; $where = $update_data = [];
if ($bargain_id) { if ($bargain_id) {
$where['b.id'] = $bargain_id; $where[] = ['EXP','b.id = '.$bargain_id. ' OR b.father_id='.$bargain_id];
} }
if (!empty($where)) { if (!empty($where)) {
//获取被修改人信息 //获取被修改人信息
...@@ -2733,10 +2734,9 @@ class Finance extends Basic ...@@ -2733,10 +2734,9 @@ class Finance extends Basic
$create_time = date('Y-m-d', strtotime($v['create_time'])); $create_time = date('Y-m-d', strtotime($v['create_time']));
$this->totalOfficialReceipts($v['id'], $v['district_id'], $v['store_id'], $create_time); $this->totalOfficialReceipts($v['id'], $v['district_id'], $v['store_id'], $create_time);
} }
$data['status'] = 'successful';
} }
$data['status'] = 'successful';
} catch (\Exception $e) { } catch (\Exception $e) {
$data['status'] = 'fail';
$data['msg'] = '内部错误:'.$e->getMessage(); $data['msg'] = '内部错误:'.$e->getMessage();
} }
......
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