|
|
@@ -1362,6 +1362,7 @@ ORDER BY
|
|
|
IFNULL( SUM( actual_quantity ), 0 ) AS quantity
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1371,6 +1372,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1384,10 +1386,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BCD.cname
|
|
|
@@ -1409,6 +1411,7 @@ ORDER BY
|
|
|
IFNULL( SUM( actual_quantity ), 0 ) AS quantity
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1418,6 +1421,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1431,10 +1435,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BCD.cname
|
|
|
@@ -1455,6 +1459,7 @@ ORDER BY
|
|
|
IFNULL( SUM( actual_quantity ), 0 ) AS quantity
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1463,6 +1468,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1476,10 +1482,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BO.charge_member
|
|
|
@@ -1500,6 +1506,7 @@ ORDER BY
|
|
|
IFNULL( SUM( actual_quantity ), 0 ) AS quantity
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1508,6 +1515,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1521,7 +1529,7 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BO.charge_member
|
|
|
@@ -1548,6 +1556,7 @@ ORDER BY
|
|
|
IFNULL( SUM( purchase_amount ), 0 ) AS purchaseAmount
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1556,6 +1565,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1563,10 +1573,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BO.charge_member
|
|
|
@@ -1593,6 +1603,7 @@ ORDER BY
|
|
|
IFNULL( SUM( purchase_amount ), 0 ) AS purchaseAmount
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1601,6 +1612,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1608,10 +1620,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BO.charge_member
|
|
|
@@ -1638,6 +1650,7 @@ ORDER BY
|
|
|
IFNULL( SUM( purchase_amount ), 0 ) AS purchaseAmount
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1647,6 +1660,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1654,10 +1668,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BCD.cname
|
|
|
@@ -1684,6 +1698,7 @@ ORDER BY
|
|
|
IFNULL( SUM( purchase_amount ), 0 ) AS purchaseAmount
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1693,6 +1708,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1700,10 +1716,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BCD.cname
|
|
|
@@ -1729,9 +1745,10 @@ ORDER BY
|
|
|
pid,
|
|
|
item_id,
|
|
|
IFNULL( SUM( actual_quantity ), 0 ) AS quantity,
|
|
|
- IFNULL( SUM( purchase_amount ), 0 ) AS purchaseAmount
|
|
|
+ IFNULL( SUM( actual_quantity * purchase_amount ), 0 ) AS purchaseAmount
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
@@ -1740,6 +1757,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1747,10 +1765,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY
|
|
|
@@ -1778,9 +1796,10 @@ ORDER BY
|
|
|
pid,
|
|
|
item_id,
|
|
|
IFNULL( SUM( actual_quantity ), 0 ) AS quantity,
|
|
|
- IFNULL( SUM( purchase_amount ), 0 ) AS purchaseAmount
|
|
|
+ IFNULL( SUM( actual_quantity * purchase_amount ), 0 ) AS purchaseAmount
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY pid
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
LEFT JOIN basic_goods_desc BGD ON BGD.id = BOI.item_id
|
|
|
@@ -1788,6 +1807,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1795,10 +1815,10 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY BGD.brand
|
|
|
@@ -1816,25 +1836,28 @@ ORDER BY
|
|
|
BGD.brand AS brand,
|
|
|
BGD.brand_item AS brandItem,
|
|
|
SUM( BOI.quantity ) AS quantity,
|
|
|
- SUM( BO.debit_amount ) AS amount
|
|
|
+ SUM( BOI.amount ) AS amount
|
|
|
FROM
|
|
|
business_order BO
|
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
|
+ id,
|
|
|
pid,
|
|
|
item_id,
|
|
|
IFNULL( SUM( actual_quantity ), 0 ) AS quantity,
|
|
|
- IFNULL( SUM( purchase_amount ), 0 ) AS purchaseAmount
|
|
|
+ IFNULL( SUM( actual_quantity * price ), 0 ) AS amount
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
- pid
|
|
|
+ id
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
- LEFT JOIN basic_goods_desc BGD ON BGD.id = BOI.item_id
|
|
|
+ LEFT JOIN basic_goods_desc BGD ON BGD.id = BOI.item_id
|
|
|
<where>
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1842,17 +1865,20 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.chargeMember != null and statisticsVo.chargeMember != ''">
|
|
|
- BO.charge_member in #{statisticsVo.chargeMember}
|
|
|
+ and BO.charge_member in
|
|
|
+ <foreach item="member" index="index" collection="chargeMember.split(',')" open="(" separator="," close=")">
|
|
|
+ '${member}'
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY
|
|
|
- BGD.Typeno
|
|
|
+ BGD.code
|
|
|
ORDER BY
|
|
|
quantity DESC
|
|
|
) temp,
|
|
|
@@ -1870,25 +1896,28 @@ ORDER BY
|
|
|
BGD.brand AS brand,
|
|
|
BGD.brand_item AS brandItem,
|
|
|
SUM( BOI.quantity ) AS quantity,
|
|
|
- SUM( BO.debit_amount ) AS amount
|
|
|
+ SUM( BOI.amount ) AS amount
|
|
|
FROM
|
|
|
business_order BO
|
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
|
+ id,
|
|
|
pid,
|
|
|
item_id,
|
|
|
IFNULL( SUM( actual_quantity ), 0 ) AS quantity,
|
|
|
- IFNULL( SUM( purchase_amount ), 0 ) AS purchaseAmount
|
|
|
+ IFNULL( SUM( actual_quantity * price ), 0 ) AS amount
|
|
|
FROM
|
|
|
business_order_items
|
|
|
+ WHERE is_deleted = 0
|
|
|
GROUP BY
|
|
|
- pid
|
|
|
+ id
|
|
|
) BOI ON BOI.pid = BO.id
|
|
|
LEFT JOIN basic_goods_desc BGD ON BGD.id = BOI.item_id
|
|
|
<where>
|
|
|
BO.tenant_id = #{statisticsVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="statisticsVo.brand != null and statisticsVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -1896,17 +1925,20 @@ ORDER BY
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.chargeMember != null and statisticsVo.chargeMember != ''">
|
|
|
- BO.charge_member in #{statisticsVo.chargeMember}
|
|
|
+ and BO.charge_member in
|
|
|
+ <foreach item="member" index="index" collection="chargeMember.split(',')" open="(" separator="," close=")">
|
|
|
+ '${member}'
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
<if test="statisticsVo.beginTime !=null and statisticsVo.beginTime != ''">
|
|
|
- and BO.actual_delivery_date >= #{statisticsVo.beginTime}
|
|
|
+ and BO.receipt_time >= #{statisticsVo.beginTime}
|
|
|
</if>
|
|
|
<if test="statisticsVo.endTime !=null and statisticsVo.endTime != ''">
|
|
|
- and BO.actual_delivery_date <= #{statisticsVo.endTime}
|
|
|
+ and BO.receipt_time <= #{statisticsVo.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY
|
|
|
- BGD.Typeno
|
|
|
+ BGD.code
|
|
|
ORDER BY
|
|
|
quantity DESC
|
|
|
) temp,
|
|
|
@@ -2113,6 +2145,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{totalSummaryVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="totalSummaryVo.brand != null and totalSummaryVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -2122,7 +2155,7 @@ ORDER BY
|
|
|
<if test="totalSummaryVo.year !=null and totalSummaryVo.year != ''">
|
|
|
AND YEAR ( BO.create_time ) = #{totalSummaryVo.year}
|
|
|
</if>
|
|
|
- <if test="totalSummaryVo.status != null and totalSummaryVo.status != '' and totalSummaryVo.status = '0'">
|
|
|
+ <if test="totalSummaryVo.status != null and totalSummaryVo.status != '' and totalSummaryVo.status == 0">
|
|
|
AND BO.create_deliver not in (#{totalSummaryVo.status})
|
|
|
</if>
|
|
|
</where>
|
|
|
@@ -2330,6 +2363,7 @@ ORDER BY
|
|
|
BO.tenant_id = #{totalSummaryVo.tenantId}
|
|
|
and BO.is_deleted = 0
|
|
|
and BO.bill_type = 'XS'
|
|
|
+ AND BO.receipt_time IS NOT NULL
|
|
|
<if test="totalSummaryVo.brand != null and totalSummaryVo.brand != ''">
|
|
|
and BGD.brand in
|
|
|
<foreach item="item" index="index" collection="brand.split(',')" open="(" separator="," close=")">
|
|
|
@@ -2339,7 +2373,7 @@ ORDER BY
|
|
|
<if test="totalSummaryVo.year !=null and totalSummaryVo.year != ''">
|
|
|
AND YEAR ( BO.create_time ) = #{totalSummaryVo.year}
|
|
|
</if>
|
|
|
- <if test="totalSummaryVo.status != null and totalSummaryVo.status != '' and totalSummaryVo.status = '0'">
|
|
|
+ <if test="totalSummaryVo.status != null and totalSummaryVo.status != '' and totalSummaryVo.status == 0">
|
|
|
AND BO.create_deliver not in (#{totalSummaryVo.status})
|
|
|
</if>
|
|
|
</where>
|