李天标 пре 5 година
родитељ
комит
8b8a7eb650
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/main/resources/com/shawn/repository/mybatis/TOrderMapper.xml

+ 1 - 0
src/main/resources/com/shawn/repository/mybatis/TOrderMapper.xml

@@ -789,6 +789,7 @@ where date_format(a.create_date,'%Y') = date_format(now(),'%Y')
    select ifnull(b.name,SUBSTRING(a.client_id,1,4)) as categorie,count(1) as saleNum,sum(a.price) as salePrice
 from t_order a,t_equipment b
 where b.id = a.equipment_id
+    and a.status='1'
     <if test="adminId != null and adminId !=''">
       and a.admin_id= #{adminId} -- 所属商家id
     </if>