|
@@ -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>
|