|
@@ -510,7 +510,7 @@ class User extends BaseController
|
|
|
$data=null;
|
|
$data=null;
|
|
|
if($totalCount>0){
|
|
if($totalCount>0){
|
|
|
$data = (new UserShowTemplate)
|
|
$data = (new UserShowTemplate)
|
|
|
- ->field("t.id,t.title,t.price,t.old_price,t.status,t.imgs,t.is_hot,t.is_recommend,t.code,look_count,t.real_sales,t.unreal_sales,ut.is_default")
|
|
|
|
|
|
|
+ ->field("ut.id,t.id as show_template_id,t.title,t.price,t.old_price,t.status,t.imgs,t.is_hot,t.is_recommend,t.code,look_count,t.real_sales,t.unreal_sales,ut.is_default")
|
|
|
->alias("ut")
|
|
->alias("ut")
|
|
|
->join("show_template t", "t.id = ut.show_template_id","left")
|
|
->join("show_template t", "t.id = ut.show_template_id","left")
|
|
|
->where($where)
|
|
->where($where)
|