新增上游预警金额读取

master
chenzhi 5 years ago
parent d6ec8e0248
commit 3349304e10

@ -61,14 +61,16 @@ class PartnerController extends ThinkController
//获取分页数据 //获取分页数据
$query = $model->alias('p') $query = $model->alias('p')
->field("p.*")
->where($map) ->where($map)
->order("id desc"); ->order("id desc");
if($is_export){ if($is_export){
$partners = $query $partners = $query
->select(); ->field("p.*,IFNULL(d.advance_amount,'--') advance_amount")
->join("left join tab_partner_divide_warn d ON d.partner_id = p.id AND d.status = 1")
->select();
}else{ }else{
$partners = $query $partners = $query
->field("p.*")
->page($page,$row) ->page($page,$row)
->select(); ->select();
} }

Loading…
Cancel
Save