正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -121,7 +121,7 @@ class Cars extends Api | @@ -121,7 +121,7 @@ class Cars extends Api | ||
121 | if($this->request->isGet()){ | 121 | if($this->request->isGet()){ |
122 | $res = Db::name('car') | 122 | $res = Db::name('car') |
123 | ->alias('c') | 123 | ->alias('c') |
124 | - ->join('goods g','c.g_id = g.id','LEFT') | 124 | + ->join('goods g','c.g_id = g.id') |
125 | ->where(['c.uid'=>$this->uid]) | 125 | ->where(['c.uid'=>$this->uid]) |
126 | ->field('c.id,c.g_id goods_id,c.price,c.goods_number,c.style,g.name,g.image,g.style g_style,g.stock,g.introduce') | 126 | ->field('c.id,c.g_id goods_id,c.price,c.goods_number,c.style,g.name,g.image,g.style g_style,g.stock,g.introduce') |
127 | ->useSoftDelete('g.deletetime') | 127 | ->useSoftDelete('g.deletetime') |
-
请 注册 或 登录 后发表评论