|
@@ -151,7 +151,7 @@ class Activity extends Base{
|
|
|
}
|
|
|
$list= $this->model->with(["act","platformYz"=>["platform","good"=>['unit','brand','category']],"promocode"])
|
|
|
->withJoin(["act"],"left")
|
|
|
- ->where($where)->order("id desc")->paginate(["list_rows"=>$param['size'],"page"=>$param['page']]);
|
|
|
+ ->where($where)->order("act_good.id desc")->paginate(["list_rows"=>$param['size'],"page"=>$param['page']]);
|
|
|
$list->each(function(&$item){
|
|
|
$item['status_cn']=ActGood::$statusCn[$item['status']]??"";
|
|
|
$item['ActStatus_cn']=\app\txx\model\Act::$statusCn[$item['act_status']];
|