|
@@ -18,12 +18,9 @@
|
|
|
|
|
|
|
|
<select id="getTypeData" resultType="java.lang.Integer">
|
|
<select id="getTypeData" resultType="java.lang.Integer">
|
|
|
select count(*) as numOfOrder from `order_don` od where
|
|
select count(*) as numOfOrder from `order_don` od where
|
|
|
- sku_id in (select id from `goods_don_sku` where goods_id = #{goodsId} and spec_val like '%${type}%'
|
|
|
|
|
|
|
+ sku_id in (select id from `goods_don_sku` where goods_id = #{goodsId} and spec_val like '%${type}%%'
|
|
|
<if test="type =='月'.toString()">
|
|
<if test="type =='月'.toString()">
|
|
|
and spec_val not like '%年%'
|
|
and spec_val not like '%年%'
|
|
|
- </if>
|
|
|
|
|
- <if test="type == '年'.toString()">
|
|
|
|
|
- and spec_val not like '%月%'
|
|
|
|
|
</if>)
|
|
</if>)
|
|
|
and status not in ('close','noPayment','refund')
|
|
and status not in ('close','noPayment','refund')
|
|
|
and created_time between #{start} and #{end}
|
|
and created_time between #{start} and #{end}
|