Commit bdfaf336 authored by hujun's avatar hujun

退款列表

parent 50d355f2
...@@ -507,4 +507,18 @@ class OfficeGRoom extends BaseModel ...@@ -507,4 +507,18 @@ class OfficeGRoom extends BaseModel
public function updateData($data, $where) { public function updateData($data, $where) {
return $this->db_->where($where)->update($data); return $this->db_->where($where)->update($data);
} }
/**
* @param $field
* @param $params
* @return array
*/
public function getHouseColumn($field, $params)
{
return $this->db_->alias("a")
->join("office_g_building b","a.building_id=b.id","left")
->where($params)
->column($field);
}
} }
...@@ -228,11 +228,11 @@ class OfficeORefundModel extends Model{ ...@@ -228,11 +228,11 @@ class OfficeORefundModel extends Model{
public function getCheckRefundList($pageNo = 1, $pageSize = 15, $order_ = 'id desc', $field = '', $params = '') { public function getCheckRefundList($pageNo = 1, $pageSize = 15, $order_ = 'id desc', $field = '', $params = '') {
return $this->db_->alias('a') return $this->db_->alias('a')
->field($field) ->field($field)
->join('o_order b', 'a.order_id = b.id', 'left') ->join('office_o_order b', 'a.order_id = b.id', 'left')
->join('a_agents c', 'a.agent_id = c.id', 'left') ->join('office_a_agents c', 'a.agent_id = c.id', 'left')
->join('o_paylog d', 'a.pay_log_id = d.id', 'left') ->join('office_o_paylog d', 'a.pay_log_id = d.id', 'left')
->join('o_refund_log e', 'a.id = e.refund_id', 'left') ->join('office_o_refund_log e', 'a.id = e.refund_id', 'left')
->join('o_bargain f', 'd.bargain_id = f.id', 'left') ->join('office_o_bargain f', 'd.bargain_id = f.id', 'left')
->where($params) ->where($params)
->limit($pageSize) ->limit($pageSize)
->page($pageNo) ->page($pageNo)
...@@ -263,11 +263,11 @@ class OfficeORefundModel extends Model{ ...@@ -263,11 +263,11 @@ class OfficeORefundModel extends Model{
*/ */
public function getCheckRefundListTotal($params) { public function getCheckRefundListTotal($params) {
return $this->db_->alias('a') return $this->db_->alias('a')
->join('o_order b', 'a.order_id = b.id', 'left') ->join('office_o_order b', 'a.order_id = b.id', 'left')
->join('a_agents c', 'a.agent_id = c.id', 'left') ->join('office_a_agents c', 'a.agent_id = c.id', 'left')
->join('o_paylog d', 'a.pay_log_id = d.id', 'left') ->join('office_o_paylog d', 'a.pay_log_id = d.id', 'left')
->join('o_refund_log e', 'a.id = e.refund_id', 'left') ->join('office_o_refund_log e', 'a.id = e.refund_id', 'left')
->join('o_bargain f', 'd.bargain_id = f.id', 'left') ->join('office_o_bargain f', 'd.bargain_id = f.id', 'left')
->where($params) ->where($params)
->group('a.id') ->group('a.id')
->count(); ->count();
...@@ -305,11 +305,11 @@ class OfficeORefundModel extends Model{ ...@@ -305,11 +305,11 @@ class OfficeORefundModel extends Model{
public function getSumMoney($params) { public function getSumMoney($params) {
$refund_money = $this->db_->alias('a') $refund_money = $this->db_->alias('a')
->field('a.refund_money') ->field('a.refund_money')
->join('o_order b', 'a.order_id = b.id', 'left') ->join('office_o_order b', 'a.order_id = b.id', 'left')
->join('a_agents c', 'a.agent_id = c.id', 'left') ->join('office_a_agents c', 'a.agent_id = c.id', 'left')
->join('o_paylog d', 'a.pay_log_id = d.id', 'left') ->join('office_o_paylog d', 'a.pay_log_id = d.id', 'left')
->join('o_refund_log e', 'a.id = e.refund_id', 'left') ->join('office_o_refund_log e', 'a.id = e.refund_id', 'left')
->join('o_bargain f', 'd.bargain_id = f.id', 'left') ->join('office_o_bargain f', 'd.bargain_id = f.id', 'left')
->where($params) ->where($params)
->group('a.id') ->group('a.id')
->select(); ->select();
......
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