Browse Source

no message

FengChaoYu 1 week ago
parent
commit
c05092312b
1 changed files with 14 additions and 14 deletions
  1. 14 14
      src/main/resources/mapper/CountMapper.xml

+ 14 - 14
src/main/resources/mapper/CountMapper.xml

@@ -8,9 +8,9 @@
             sum(if(order_status not in ('NOPAY','CLOSE','OVER','TIMEOUT'),total_num,0)) 'sold',
             sum(if(order_status ='DFH',1,0)) 'dfh',
             (select count(1) from order_refund where order_status not in ('OVER','CLOSE')
-                <if test="companyWechatIds != null and companyWechatIds.size > 0">
+                <if test="companyIds != null and companyIds.size > 0">
                     and company_id in
-                    <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
+                    <foreach item="item" index="index" collection="companyIds" open="(" separator="," close=")">
                         #{item}
                     </foreach>
                 </if>
@@ -27,9 +27,9 @@
 						)	'orderTax'
         from order_info
         <where>
-            <if test="companyWechatIds != null and companyWechatIds.size > 0">
+            <if test="companyIds != null and companyIds.size > 0">
                 and company_id in
-                <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
+                <foreach item="item" index="index" collection="companyIds" open="(" separator="," close=")">
                     #{item}
                 </foreach>
             </if>
@@ -54,9 +54,9 @@
         <if test="workOrderType != null and workOrderType !=''">
           and b.work_order_type=#{workOrderType}
         </if>
-        <if test="companyWechatIds != null and companyWechatIds.size > 0">
+        <if test="companyIds != null and companyIds.size > 0">
             and a.company_id in
-            <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
+            <foreach item="item" index="index" collection="companyIds" open="(" separator="," close=")">
                 #{item}
             </foreach>
         </if>
@@ -74,9 +74,9 @@
         select count(1) num,b.goods_id,sum(b.pay_amount) pay_amount,b.goods_name from order_info a join order_detail b on a.order_id = b.order_id
         where a.create_time BETWEEN #{startTime} and #{endTime} and a.order_status not in ('NOPAY','CLOSE','TIMEOUT')
 
-        <if test="companyWechatIds != null and companyWechatIds.size > 0">
+        <if test="companyIds != null and companyIds.size > 0">
             and a.company_id in
-            <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
+            <foreach item="item" index="index" collection="companyIds" open="(" separator="," close=")">
                 #{item}
             </foreach>
         </if>
@@ -94,9 +94,9 @@
 
     <select id="countVisit" resultType="java.lang.Integer">
         select count(DISTINCT user_id) total from user_visit where visit_time BETWEEN #{startTime} and #{endTime}
-        <if test="companyWechatIds != null and companyWechatIds.size > 0">
+        <if test="companyIds != null and companyIds.size > 0">
             and company_id in
-            <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
+            <foreach item="item" index="index" collection="companyIds" open="(" separator="," close=")">
                 #{item}
             </foreach>
         </if>
@@ -119,9 +119,9 @@
         and c.category_id not in (
             select category_id from goods_category where name like '%清洗%'
         )
-        <if test="companyWechatIds != null and companyWechatIds.size > 0">
+        <if test="companyIds != null and companyIds.size > 0">
             and a.company_id in
-            <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
+            <foreach item="item" index="index" collection="companyIds" open="(" separator="," close=")">
                 #{item}
             </foreach>
         </if>
@@ -164,9 +164,9 @@
         <if test="adminWebsitId != null and adminWebsitId !=''">
             and a.admin_websit_id = #{adminWebsitId}
         </if>
-        <if test="companyWechatIds != null and companyWechatIds.size > 0">
+        <if test="companyIds != null and companyIds.size > 0">
             and a.company_id in
-            <foreach item="item" index="index" collection="companyWechatIds" open="(" separator="," close=")">
+            <foreach item="item" index="index" collection="companyIds" open="(" separator="," close=")">
                 #{item}
             </foreach>
         </if>