|
@@ -9,6 +9,12 @@
|
|
FROM goods_apply a
|
|
FROM goods_apply a
|
|
join goods b on a.goods_id= b.goods_id
|
|
join goods b on a.goods_id= b.goods_id
|
|
${ex.query}
|
|
${ex.query}
|
|
|
|
+ <if test="ex.companyIds != null and ex.companyIds.size > 0">
|
|
|
|
+ and a.company_id in
|
|
|
|
+ <foreach item="item" index="index" collection="ex.companyIds" open="(" separator="," close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
<if test="ex.orderBy == null or ex.orderBy ==''">
|
|
<if test="ex.orderBy == null or ex.orderBy ==''">
|
|
ORDER BY a.create_time DESC
|
|
ORDER BY a.create_time DESC
|
|
</if>
|
|
</if>
|