|
|
|
@ -91,9 +91,12 @@ public class WalletPrerequisiteProjectionService {
|
|
|
|
Activation activation = activations.get(0);
|
|
|
|
Activation activation = activations.get(0);
|
|
|
|
|
|
|
|
|
|
|
|
List<Application> applications = jdbc.query(
|
|
|
|
List<Application> applications = jdbc.query(
|
|
|
|
"SELECT COALESCE(account_bank,selected_bank) bank_name,bank_card_number,account_balance,wallet_type " +
|
|
|
|
"SELECT COALESCE(account_bank,selected_bank) bank_name," +
|
|
|
|
|
|
|
|
"COALESCE(NULLIF(TRIM(input_bank_card_number),''),bank_card_number) bank_card_number," +
|
|
|
|
|
|
|
|
"account_balance,wallet_type " +
|
|
|
|
"FROM wallet_application WHERE user_id=? AND school_id=? AND class_id=? " +
|
|
|
|
"FROM wallet_application WHERE user_id=? AND school_id=? AND class_id=? " +
|
|
|
|
"AND status='SUBMITTED' AND deleted=FALSE AND bank_card_number IS NOT NULL " +
|
|
|
|
"AND status='SUBMITTED' AND deleted=FALSE " +
|
|
|
|
|
|
|
|
"AND COALESCE(NULLIF(TRIM(input_bank_card_number),''),bank_card_number) IS NOT NULL " +
|
|
|
|
"AND account_balance IS NOT NULL AND COALESCE(account_bank,selected_bank) IS NOT NULL " +
|
|
|
|
"AND account_balance IS NOT NULL AND COALESCE(account_bank,selected_bank) IS NOT NULL " +
|
|
|
|
"ORDER BY created_at DESC LIMIT 1",
|
|
|
|
"ORDER BY created_at DESC LIMIT 1",
|
|
|
|
(rs, row) -> new Application(rs.getString("bank_name"), rs.getString("bank_card_number"),
|
|
|
|
(rs, row) -> new Application(rs.getString("bank_name"), rs.getString("bank_card_number"),
|
|
|
|
|