`id`,`tenant_id`,`parent_tenant_id`,`create_time`,`update_time`,`bill_id`,`bill_type`,`fees_id`,
`pay_way`,`receive_id`,`receive`,`pay`,`merchant_id`,`starttime`,`endtime`,`is_del`,`type`,`receive_date`
where 1=1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `bill_id` = #{billId}and `bill_type` = #{billType}and `fees_id` = #{feesId}and `pay_way` = #{payWay}and `receive_id` = #{receiveId}and `merchant_id` = #{merchantId}and `is_del` = #{isDel}and `create_time` >= #{createTimeBegin}and `create_time` <= #{createTimeEnd}and `starttime` >= #{starttime}and `endtime` <= #{endtime}and `pay_way` != 4 and type = #{type}
and merchant_id in
#{midItem}
and fees_id in
#{fidItem}
and pay_way in
#{paidItem}
and id in
#{idItem}
order by ${sortColumns}
update wx_finance_receive_bill set is_del = 1 ,update_time = #{updateTime}