@@ -180,7 +180,7 @@
count(1) total_count ,
sum(CAST(`receive_pay` AS DECIMAL(20,2)) - CAST(`pay` AS DECIMAL(20,2)) - CAST(IFNULL(`set_off`,'0') AS DECIMAL(20,2)) + CAST(IFNULL(`return_pay`,'0') AS DECIMAL(20,2))) total_money,
MIN(br.starttime) min_begin_time from wx_all_bill
<include refid="queryBillRentListCondition "/>
<include refid="dynamicWhereConditions "/>
group by bill_type
</select>
@@ -195,7 +195,7 @@
</resultMap>
<select id="getBillNotifyList" parameterType="com.iformall.domain.po.WxAllBill" resultMap="NotifyResultMap">
select bill_type,br.id as bill_id, br.starttime,br.endtime,br.receive_pay,br.pay,br.merchant_id from wx_all_bill br
<include refid="queryBillRentListCondition "/>
<include refid="dynamicWhereConditions "/>
</select>
<delete id="deleteBillByContract" parameterType="com.iformall.domain.po.WxRentContract">