Commit 66ee9301 authored by hujun's avatar hujun

1

parent 4a2ecfbd
......@@ -465,24 +465,31 @@ class OPayLogModel extends Model
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function selectPayLogList($filed,$params){
return $this->db_
->field($filed)
public function selectPayLogList($filed,$params)
{
return $this->db_->field($filed)
->alias("a")
->join("o_order b","a.order_id = b.id","left")
->join("o_bargain c","c.order_id = b.id","left")
->join("o_report d","a.report_id = d.id","left")
->join("o_order b", "a.order_id = b.id", "left")
->join("o_bargain c", "c.order_id = b.id", "left")
->join("o_report d", "a.report_id = d.id", "left")
->where($params)
->select();
}
public function getOrderHouse($field, $where, $limit = 0) {
/**
* @param $field
* @param $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getOrderHouse($field, $where) {
return $this->db_->alias('a')
->field($field)
->join('o_order b', 'a.order_id=b.id', 'left')
->join('g_houses c', 'b.house_id=c.id', 'left')
->where($where)
->limit($limit)
->select();
}
}
\ No newline at end of file
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