select
a.*
from account_cash_wallet a
where a.del_flag = 1
AND a.user_name like concat('%', #{accountCashWalletDo.userName}, '%')
AND a.user_account like concat('%', #{accountCashWalletDo.userAccount}, '%')
AND a.enterprise_name like concat('%', #{accountCashWalletDo.enterpriseName}, '%')
AND date_format(a.update_time,'%Y-%m-%d') >= #{accountCashWalletDo.updateTimeStart}
AND date_format(a.update_time,'%Y-%m-%d') #{accountCashWalletDo.updateTimeEnd}
and a.account_wallet_status = #{accountCashWalletDo.accountWalletStatus}
AND a.user_idcard_number like concat('%', #{accountCashWalletDo.userIdcardNumber}, '%')
AND a.user_phone like concat('%', #{accountCashWalletDo.userPhone}, '%')
AND a.account_wallet_id like concat('%', #{accountCashWalletDo.accountWalletId}, '%')
AND a.wallet_balance between #{accountCashWalletDo.walletBalanceBegin} and #{accountCashWalletDo.walletBalanceEnd}
AND a.wallet_available_balance between #{accountCashWalletDo.walletAvailableBalanceBegin} and #{accountCashWalletDo.walletAvailableBalanceEnd}
AND a.wallet_freeze_balance between #{accountCashWalletDo.walletFreezeBalanceBegin} and #{accountCashWalletDo.walletFreezeBalanceEnd}
and a.create_by = #{accountCashWalletDo.createBy}
AND a.organization_id in
#{id}
AND (a.organization_id in
#{id}
OR a.create_by = #{accountCashWalletDo.createBy})
AND a.account_type = #{accountCashWalletDo.accountType}