提交 784e87bb authored 作者: chengye's avatar chengye

test

上级 11a6eff7
......@@ -42,8 +42,10 @@ class EmPayment extends Base
->select()
->toarray();
dd($data);
$arr = [];
foreach ($data as $v){
$arr[] = $v['payment_id'];
}
$data2 = self::alias('pay')
->field('pay.*')
......@@ -53,13 +55,13 @@ class EmPayment extends Base
->leftJoin(['station_info'=>'station'],'station.station_id=em.station_id')
->leftJoin(['region'=>'r'],'station.area_id = r.id')
->where($map)
->whereNotIn('pay.payment_id',$arr)
->order('pay.id desc')
->group('pay.payment_id')
->page($Nowpage, $limits)
->select()
->toarray();
$data = array_merge($data,$data2);
$sortKey = [];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论