|
|
|
@ -57,12 +57,12 @@ |
|
|
|
gd.goods_name, g.username,g.user_islicode, |
|
|
|
gd.goods_type, g.goods_status, g.goods_detail_id, |
|
|
|
g.is_recommend, g.entrust_status |
|
|
|
FROM goods g |
|
|
|
INNER JOIN goods_detail gd ON g.goods_detail_id=gd.id |
|
|
|
FROM goods as g |
|
|
|
INNER JOIN goods_detail as gd ON g.goods_detail_id=gd.id |
|
|
|
<where> |
|
|
|
<if test="map!=null"> |
|
|
|
<foreach collection="map" item="v" index="k" separator="and"> |
|
|
|
<if test="v != null and v != '' and k!='orderway'"> |
|
|
|
<if test="v != null and v != '' and k!='orderway' and k!='id'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
@ -83,7 +83,7 @@ |
|
|
|
<where> |
|
|
|
<if test="map!=null"> |
|
|
|
<foreach collection="map" item="v" index="k" separator="and"> |
|
|
|
<if test="v != null and v != '' and k!='orderway'"> |
|
|
|
<if test="v != null and v != '' and k!='orderway' and k!='id'"> |
|
|
|
${k} = #{v} |
|
|
|
</if> |
|
|
|
</foreach> |
|
|
|
|