`id`,`receive_pay`,`pay`,`receive_date`,`pay_date`,`createtime`,`expired_day`,
`tenant_id`,`owe`,`status`,`is_del`,`merchant_id`,`user_id`,`shop_id`,`updatetime`,`name`,`comments`,
`rent_shop_type`,`return_price`,`pay_way`,`starttime`,`endtime`
where 1 = 1
and `id` = #{id}
and `receive_pay` = #{receivePay}
and `pay` = #{pay}
and `receive_date` = #{receiveDate}
and `pay_date` = #{payDate}
and `createtime` = #{createtime}
and `expired_day` = #{expiredDay}
and `tenant_id` = #{tenantId}
and `owe` = #{owe}
and `status` = #{status}
and `is_del` = #{isDel}
and `merchant_id` = #{merchantId}
and `user_id` = #{userId}
and `shop_id` = #{shopId}
and `updatetime` = #{updatetime}
and `name` = #{name}
and `rent_shop_type` = #{rentShopType}
and `pay_way` = #{payWay}
and id in
#{idItem}
order by ${sortColumns}
update wx_bill_other_deposit set status=#{notPaid},expired_day=DATEDIFF(now(),receive_date)
where tenant_id=#{tenantId} and status!=#{paid} and status!=5 and DATEDIFF(now(),receive_date)>0
update wx_bill_other_deposit set status=#{waitPay} where tenant_id=#{tenantId} and status!=5
and status!=#{paid} and DATEDIFF(now(),receive_date) <=0