老师,我现在theme表内的两张图片有路径了,用以下的查询语句只能返回商品信息,缺少了theme的两张图片信息(我的deal商品表内没有这两张图片),语句应该怎样改,
我的查询语句
1 2 3 4 5 6 | $result = $theme ->deals() ->where( 'theme_status' ,1) ->select(); echo $this ->getLastSql(); exit (); dump( $result ); exit (); return $theme ; |
1 | 调试结果SELECT * FROM `o2o_deal` WHERE `theme_id` = 11 AND `theme_status` = 1 |