`id`,`tenant_id`,`parent_tenant_id`,`bill_id`,`user_id`,`user_name`,`phone`,`action`,`details`,`createtime`,`updatetime`,`pay_date`
where 1=1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `action` = #{action}
and `action` != 7
and `bill_id` = #{billId}
and `createtime` BETWEEN startDate and endDate
and id in
#{idItem}
order by ${sortColumns}order by createtime desc