|
|
@@ -555,7 +555,14 @@ ORDER BY
|
|
|
BOF.Amount
|
|
|
END) AS feesAmount,
|
|
|
BGD.Brand AS brand,
|
|
|
- BO.order_no as orderNo
|
|
|
+ BO.order_no as orderNo,
|
|
|
+ (CASE WHEN
|
|
|
+ trim(BOI.price_type) != ''
|
|
|
+ THEN
|
|
|
+ BOI.amount
|
|
|
+ ELSE
|
|
|
+ 0.00
|
|
|
+ END) AS specialPrice
|
|
|
FROM business_order_items AS BOI
|
|
|
LEFT JOIN business_order BO ON BOI.pid = BO.id
|
|
|
LEFT JOIN basic_goods_desc BGD ON BOI.Item_id = BGD.id
|
|
|
@@ -568,11 +575,8 @@ ORDER BY
|
|
|
<if test="detailsVo.corpName != null and detailsVo.corpName != ''">
|
|
|
AND BCD.cname like concat('%', #{detailsVo.corpName}, '%')
|
|
|
</if>
|
|
|
- <if test="detailsVo.brand != null and detailsVo.brand != ''">
|
|
|
- AND BGD.Brand like concat('%', #{detailsVo.brand}, '%')
|
|
|
- </if>
|
|
|
<if test="detailsVo.salesName != null and detailsVo.salesName != ''">
|
|
|
- AND BO.Sales_name like concat('%', #{detailsVo.salesName}, '%')
|
|
|
+ AND BO.charge_member like concat('%', #{detailsVo.salesName}, '%')
|
|
|
</if>
|
|
|
<if test="detailsVo.beginCreateTime !=null and detailsVo.beginCreateTime != ''">
|
|
|
and BO.create_time >= #{detailsVo.beginCreateTime}
|
|
|
@@ -602,7 +606,14 @@ ORDER BY
|
|
|
BOF.Amount
|
|
|
ELSE ''
|
|
|
END) AS feesAmount,
|
|
|
- BO.order_no as orderNo
|
|
|
+ BO.order_no as orderNo,
|
|
|
+ (CASE WHEN
|
|
|
+ trim(BOI.price_type) != ''
|
|
|
+ THEN
|
|
|
+ BOI.amount
|
|
|
+ ELSE
|
|
|
+ 0.00
|
|
|
+ END) AS specialPrice
|
|
|
FROM business_order_items AS BOI
|
|
|
LEFT JOIN business_order BO ON BOI.pid = BO.id
|
|
|
LEFT JOIN basic_goods_desc BGD ON BOI.Item_id = BGD.id
|
|
|
@@ -615,11 +626,8 @@ ORDER BY
|
|
|
<if test="detailsVo.corpName != null and detailsVo.corpName != ''">
|
|
|
AND BCD.cname like concat('%', #{detailsVo.corpName}, '%')
|
|
|
</if>
|
|
|
- <if test="detailsVo.brand != null and detailsVo.brand != ''">
|
|
|
- AND BGD.Brand like concat('%', #{detailsVo.brand}, '%')
|
|
|
- </if>
|
|
|
<if test="detailsVo.salesName != null and detailsVo.salesName != ''">
|
|
|
- AND BO.Sales_name like concat('%', #{detailsVo.salesName}, '%')
|
|
|
+ AND BO.charge_member like concat('%', #{detailsVo.salesName}, '%')
|
|
|
</if>
|
|
|
<if test="detailsVo.beginCreateTime !=null and detailsVo.beginCreateTime != ''">
|
|
|
and BO.create_time >= #{detailsVo.beginCreateTime}
|
|
|
@@ -922,7 +930,7 @@ ORDER BY
|
|
|
LEFT JOIN business_order_fees BOF ON BOF.pid = BO.id
|
|
|
LEFT JOIN basic_corps_desc BCD ON BO.Corp_id = BCD.id
|
|
|
<where>
|
|
|
- BOI.is_deleted = 0
|
|
|
+ BO.is_deleted = 0
|
|
|
AND BO.bill_type = 'XS'
|
|
|
AND BO.tenant_id = #{detailsVo.tenantId}
|
|
|
<if test="detailsVo.brand != null and detailsVo.brand != ''">
|
|
|
@@ -1013,7 +1021,7 @@ ORDER BY
|
|
|
LEFT JOIN business_order_fees BOF ON BOF.pid = BO.id
|
|
|
LEFT JOIN basic_corps_desc BCD ON BO.Corp_id = BCD.id
|
|
|
<where>
|
|
|
- BOI.is_deleted = 0
|
|
|
+ BO.is_deleted = 0
|
|
|
AND BO.bill_type = 'XS'
|
|
|
AND BO.tenant_id = #{detailsVo.tenantId}
|
|
|
<if test="detailsVo.brand != null and detailsVo.brand != ''">
|