|
@@ -64,9 +64,9 @@
|
|
${ex.selected}
|
|
${ex.selected}
|
|
FROM websit_goods_price a LEFT JOIN websit_goods b ON a.goods_id = b.goods_id
|
|
FROM websit_goods_price a LEFT JOIN websit_goods b ON a.goods_id = b.goods_id
|
|
${ex.query}
|
|
${ex.query}
|
|
- <if test="adminWebsitIds != null and adminWebsitIds.size > 0">
|
|
|
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
AND a.websit_id IN
|
|
AND a.websit_id IN
|
|
- <foreach item="item" index="index" collection="adminWebsitIds" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -82,9 +82,9 @@
|
|
FROM websit_price_upd a
|
|
FROM websit_price_upd a
|
|
<!-- LEFT JOIN websit_price_upd_item b ON a.sheet_id = b.sheet_id -->
|
|
<!-- LEFT JOIN websit_price_upd_item b ON a.sheet_id = b.sheet_id -->
|
|
${ex.query}
|
|
${ex.query}
|
|
- <if test="adminWebsitIds != null and adminWebsitIds.size > 0">
|
|
|
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
AND a.websit_id IN
|
|
AND a.websit_id IN
|
|
- <foreach item="item" index="index" collection="adminWebsitIds" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -99,9 +99,9 @@
|
|
${ex.selected}
|
|
${ex.selected}
|
|
FROM websit_purchase a LEFT JOIN storage b ON a.storage_id = b.storage_id
|
|
FROM websit_purchase a LEFT JOIN storage b ON a.storage_id = b.storage_id
|
|
${ex.query}
|
|
${ex.query}
|
|
- <if test="adminWebsitIds != null and adminWebsitIds.size > 0">
|
|
|
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
AND a.websit_id IN
|
|
AND a.websit_id IN
|
|
- <foreach item="item" index="index" collection="adminWebsitIds" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -117,9 +117,9 @@
|
|
${ex.selected}
|
|
${ex.selected}
|
|
FROM websit_purchase_ret a LEFT JOIN storage b ON a.storage_id = b.storage_id
|
|
FROM websit_purchase_ret a LEFT JOIN storage b ON a.storage_id = b.storage_id
|
|
${ex.query}
|
|
${ex.query}
|
|
- <if test="adminWebsitIds != null and adminWebsitIds.size > 0">
|
|
|
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
AND a.websit_id IN
|
|
AND a.websit_id IN
|
|
- <foreach item="item" index="index" collection="adminWebsitIds" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -158,9 +158,9 @@
|
|
join websit_sales_item b on a.sales_id = b.sales_id
|
|
join websit_sales_item b on a.sales_id = b.sales_id
|
|
LEFT JOIN storage c on a.storage_id = c.storage_id
|
|
LEFT JOIN storage c on a.storage_id = c.storage_id
|
|
${ex.query}
|
|
${ex.query}
|
|
- <if test="adminWebsitIds != null and adminWebsitIds.size > 0">
|
|
|
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
AND a.websit_id IN
|
|
AND a.websit_id IN
|
|
- <foreach item="item" index="index" collection="adminWebsitIds" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -280,9 +280,9 @@
|
|
${ex.selected}
|
|
${ex.selected}
|
|
FROM websit_sales_pay_order a
|
|
FROM websit_sales_pay_order a
|
|
${ex.query}
|
|
${ex.query}
|
|
- <if test="adminWebsitIds != null and adminWebsitIds.size > 0">
|
|
|
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
AND a.websit_id IN
|
|
AND a.websit_id IN
|
|
- <foreach item="item" index="index" collection="adminWebsitIds" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -322,9 +322,9 @@
|
|
IF((a.total_sales_amount - a.total_pay_amount) <![CDATA[ < ]]> 0, 0, (a.total_sales_amount - a.total_pay_amount)) AS totalNotPayAmount
|
|
IF((a.total_sales_amount - a.total_pay_amount) <![CDATA[ < ]]> 0, 0, (a.total_sales_amount - a.total_pay_amount)) AS totalNotPayAmount
|
|
FROM engin_pay_manage a
|
|
FROM engin_pay_manage a
|
|
${ex.query}
|
|
${ex.query}
|
|
- <if test="adminWebsitIds != null and adminWebsitIds.size > 0">
|
|
|
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
AND a.websit_id IN
|
|
AND a.websit_id IN
|
|
- <foreach item="item" index="index" collection="adminWebsitIds" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -342,9 +342,9 @@
|
|
IF((SUM(a.total_sales_amount) - SUM(a.total_pay_amount)) <![CDATA[ < ]]> 0, 0, (SUM(a.total_sales_amount) - SUM(a.total_pay_amount))) AS totalNotPayAmount
|
|
IF((SUM(a.total_sales_amount) - SUM(a.total_pay_amount)) <![CDATA[ < ]]> 0, 0, (SUM(a.total_sales_amount) - SUM(a.total_pay_amount))) AS totalNotPayAmount
|
|
FROM engin_pay_manage a
|
|
FROM engin_pay_manage a
|
|
${ex.query}
|
|
${ex.query}
|
|
- <if test="adminWebsitIds != null and adminWebsitIds.size > 0">
|
|
|
|
|
|
+ <if test="ex.adminWebsitIds != null and ex.adminWebsitIds.size > 0">
|
|
AND a.websit_id IN
|
|
AND a.websit_id IN
|
|
- <foreach item="item" index="index" collection="adminWebsitIds" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="item" index="index" collection="ex.adminWebsitIds" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|