Commit d8afdf11 authored by hujun's avatar hujun

获得调整类型

parent a420e504
......@@ -3950,7 +3950,7 @@ class Finance extends Basic
}
$excel_data[$k]['money'] = $v['money'];
$excel_data[$k]['income_time'] = $v['income_time'];
$excel_data[$k]['type'] = $v['type'];
$excel_data[$k]['type_name'] = $this->getAdjustmentType($v['type']);
$excel_data[$k]['new_paylog_id'] = $v['new_paylog_id'];
if ($v['operation_id']) {
......@@ -4836,4 +4836,41 @@ class Finance extends Basic
$data['pay_log_refund'] = $list_3;
return $this->response(200, '', $data);
}
/**
* 获得调整类型
*
* @param $type
* @return string
*/
public function getAdjustmentType($type)
{
//意向金:1转中介费 2转案场费 3转意向金 7保管金 保管金:4转中介费 5转案场费 6转保管金'
switch ($type) {
case 1 :
$type_name = '意向金转中介费';
break;
case 2 :
$type_name = '意向金转案场费';
break;
case 3 :
$type_name = '意向金转意向金';
break;
case 4 :
$type_name = '保管金转中介费';
break;
case 5 :
$type_name = '保管金转案场费';
break;
case 6 :
$type_name = '保管金转保管金';
break;
case 7 :
$type_name = '意向金转保管金';
break;
default :
$type_name = '其它';
}
return $type_name;
}
}
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