|
|
@@ -38,20 +38,20 @@ class ShopDelivery extends Backend
|
|
|
return $this->selectpage();
|
|
|
}
|
|
|
[$where, $order, $limit, $with] = $this->buildparams();
|
|
|
- // $list = $this->model
|
|
|
- // ->withJoin($with,'left')
|
|
|
- // //如果没有使用operate filter过滤的情况下,推荐使用with关联,可以提高查询效率
|
|
|
- // //->with($with)
|
|
|
- // ->where($where)
|
|
|
- // ->order($order)
|
|
|
- // ->paginate($limit);
|
|
|
$list = $this->model
|
|
|
- ->alias('d')
|
|
|
- ->join('user u',"d.user_id = u.id", "LEFT")
|
|
|
- ->field('d.*,COALESCE(u.nickname, "无") as nickname')
|
|
|
+ ->withJoin($with,'left')
|
|
|
+ //如果没有使用operate filter过滤的情况下,推荐使用with关联,可以提高查询效率
|
|
|
+ // ->with($with)
|
|
|
->where($where)
|
|
|
->order($order)
|
|
|
->paginate($limit);
|
|
|
+ // $list = $this->model
|
|
|
+ // ->alias('d')
|
|
|
+ // ->join('user u',"d.user_id = u.id", "LEFT")
|
|
|
+ // ->field('d.*,COALESCE(u.nickname, "无") as nickname')
|
|
|
+ // ->where($where)
|
|
|
+ // ->order($order)
|
|
|
+ // ->paginate($limit);
|
|
|
|
|
|
//表格底部要有汇总:发货数量汇总 重量汇总 总价汇总
|
|
|
$count = $this->model
|