zoujiajian 3 년 전
부모
커밋
31354da337
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      netflix-dao/src/main/resources/mapper/StatisticsUserDataMapper.xml

+ 1 - 4
netflix-dao/src/main/resources/mapper/StatisticsUserDataMapper.xml

@@ -18,12 +18,9 @@
 
     <select id="getTypeData" resultType="java.lang.Integer">
         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()">
             and spec_val not like '%年%'
-        </if>
-        <if test="type == '年'.toString()">
-            and spec_val not like '%月%'
         </if>)
         and status not in ('close','noPayment','refund')
         and created_time between #{start} and #{end}