查询 关联商品 sync_id bug
This commit is contained in:
@@ -149,7 +149,7 @@
|
|||||||
and t1.shop_id = #{shopId}
|
and t1.shop_id = #{shopId}
|
||||||
</where>
|
</where>
|
||||||
<if test="idList != null">
|
<if test="idList != null">
|
||||||
and t1.id in
|
and (t1.id in
|
||||||
<foreach item="item" collection="idList" separator="," open="(" close=")">
|
<foreach item="item" collection="idList" separator="," open="(" close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
@@ -157,6 +157,7 @@
|
|||||||
<foreach item="item" collection="idList" separator="," open="(" close=")">
|
<foreach item="item" collection="idList" separator="," open="(" close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
order by t1.sort desc,t1.id desc
|
order by t1.sort desc,t1.id desc
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user