This commit is contained in:
linfso 2025-05-13 19:40:30 +08:00
parent ae0b09db47
commit 369cd90e66

View File

@ -35,14 +35,14 @@
sum(if(b.payment_type in(1,3,6),money,0) ) as money, 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 sum(if(b.payment_type in(2,4,5),money,0) ) as month_money
from emis_commission_dtl a,emis_waybill b 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
<if test="empName != null and empName != ''"> <if test="empName != null and empName != ''">
and a.emp_name = #{empName} and a.emp_name = #{empName}
</if> </if>
<if test="billMonth != null and billMonth != ''"> <if test="billMonth != null and billMonth != ''">
and bill_month=#{billMonth} and a.bill_month=#{billMonth}
</if> </if>
group by emp_name,bill_month group by a.emp_name,a.bill_month
</select> </select>