Commit 3b8ec0cd authored by zw's avatar zw

调整

parent 106dee92
...@@ -30,10 +30,20 @@ class PayLogService ...@@ -30,10 +30,20 @@ class PayLogService
} }
public function adjustment($pay_id){ public function adjustment($pay_id){
//todo 1.计算剩余金额 查询调整表 //todo 1.计算剩余金额 查询调整表 2.减去退款 3.减去转账
$filed = "house_number,industry_type";
$pay_log_arr = $this->payLogModel->getBeforeBillInfo($filed, ["id" => $pay_id]);
if(count($pay_log_arr) < 0){
return ["code" => 101,"msg"=>"不存在此条收款记录"];
}
$pay_log_arr = $pay_log_arr[0];
$where_["paylog_id"] = $pay_id; $where_["paylog_id"] = $pay_id;
$where_["is_del"] = 0; $where_["is_del"] = 0;
$this->payLogAdjustmentModel->getAdjustmentList($where_,""); $adjustment_arr = $this->payLogAdjustmentModel->getAdjustmentList($where_,"id,money");
if(count($adjustment_arr) > 0){
}
} }
......
...@@ -115,6 +115,9 @@ class OPayLogModel extends Model ...@@ -115,6 +115,9 @@ class OPayLogModel extends Model
if (isset($params["order_id"])) { if (isset($params["order_id"])) {
$where_["order_id"] = $params["order_id"]; $where_["order_id"] = $params["order_id"];
} }
if (isset($params["id"])) {
$where_["id"] = $params["id"];
}
$where_["father_id"] = 0; $where_["father_id"] = 0;
return $this->db_ return $this->db_
......
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