diff --git a/emis-biz/src/main/resources/mapper/EmisCommissionProfitMapper.xml b/emis-biz/src/main/resources/mapper/EmisCommissionProfitMapper.xml index df47b09f4..a7ef3c92f 100644 --- a/emis-biz/src/main/resources/mapper/EmisCommissionProfitMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisCommissionProfitMapper.xml @@ -35,14 +35,14 @@ sum(if(b.payment_type in(1,3,6),money,0) ) as money, sum(if(b.payment_type in(2,4,5),money,0) ) as month_money from emis_commission_dtl a,emis_waybill b - where del_flag='0' and a.bill_code=b.bill_code + where a.del_flag='0' and a.bill_code=b.bill_code and a.emp_name = #{empName} - and bill_month=#{billMonth} + and a.bill_month=#{billMonth} - group by emp_name,bill_month + group by a.emp_name,a.bill_month