作者 anyv
1 个管道 的构建 通过 耗费 10 秒

25

... ... @@ -60,7 +60,7 @@ class WithdrawalController extends AdminBaseController{
$data = Db::name('money_expend') -> alias('a') -> field('a.*,b.phone') -> join('my_user b','a.uid=b.uid','LEFT') -> where($where) -> paginate(1000000);
$data_arr = $data -> toArray();
}else{
$data = Db::name('money_expend') -> alias('a') -> field('a.*,b.phone') -> join('my_user b','a.uid=b.uid','LEFT') -> where("state = 1 or state = 2") -> paginate(12);
$data = Db::name('money_expend') -> alias('a') -> field('a.*,b.phone') -> join('my_user b','a.uid=b.uid','LEFT') -> where("state = 1 or state = 2") -> order("a.create_time desc") -> paginate(12);
$data_arr = $data -> toArray();
}
if(!empty($data_arr)){
... ...
... ... @@ -626,7 +626,11 @@ class PersonalcenterController extends WeChatBaseController{
public function withdrawal_subsidiary(){
$uid = cmf_get_current_user_id();
$data = Db::name('money_expend') -> where('uid='.$uid) -> where("state = 1 or state = 2") -> select();
$data = Db::name('money_expend')
-> where('uid='.$uid)
-> where("state = 1 or state = 2")
-> order("create_time desc")
-> select();
$this -> assign('data',$data);
return $this -> fetch();
... ...