publicstaticStringBLACK_LIST_NEW_QUERY_BY_UNIQUE_KEY_SQL="select * from black_list_new where phone_no = '%s' and name = '%s' and id_no = '%s' and type = '%s';";
publicstaticStringBLACK_LIST_NEW_UPDATE_DISABLE_BY_RECORD_ID_SQL="update black_list_new set status = false, updated_at = '%s' where id = %s;";
publicstaticStringBLACK_LIST_NEW_UPDATE_THREE_ELE_SQL="update black_list_new set uuid = '%s', name = '%s', phone_no = '%s' , id_no = '%s' where id = %s;";
publicstaticStringBLACK_LIST_NEW_UPDATE_THREE_ELE_AND_BLACK_LEVEL_SQL="update black_list_new set uuid = '%s', name = '%s', phone_no = '%s' , id_no = '%s', black_level = '%s' where id = %s;";
publicstaticStringBLACK_LIST_NEW_UPDATE_BLACK_LIST_LEVEL_SQL="update black_list_new set black_level = '%s' where id = %s;";
publicstaticStringBLACK_LIST_NEW_UPDATE_FIRST_OR_MAX_OVERDUE_DAYS_SQL="update black_list_new set total_overdue_days = ? , max_overdue_days = ?, updated_at = ? where id = ?";
...
...
@@ -23,7 +23,7 @@ public class Constant {
publicstaticStringBLACK_LIST_NEW_QUERY_BY_IDNO_SQL="select * from black_list_new where id_no = '%s' and status = true;";
publicstaticStringBLACK_LIST_NEW_QUERY_BY_PHONENO_IDNO_SQL="select * from black_list_new where phone_no = '%s' and id_no = '%s' and status = true;";
publicstaticStringBLACK_LIST_NEW_QUERY_BY_THREE_ELE_SQL="select * from black_list_new where phone_no = '%s' and id_no = '%s' and name = '%s' and status = true;";
publicstaticStringBLACK_LIST_NEW_QUERY_BY_IDNO_OR_PHONENO_SQL="select * from black_list_new where phone_no = '%s' or id_no = '%s' and status = true;";
publicstaticStringBLACK_LIST_NEW_QUERY_BY_IDNO_OR_PHONENO_SQL="select * from black_list_new where phone_no = '%s' or id_no = '%s'";
publicstaticStringBLACK_LIST_NEW_QUERY_BY_UUID_SQL="select * from black_list_new where uuid = '%s' and status = true;";
publicstaticStringXYQB_QUERY_USER_LOAN_OVERDUE_15DAY_SQL="select a.user_id id, now() created_at, now() updated_at, 1 major_type, 1 type, '逾期15+' join_black_reason, null total_overdue_days, null max_overdue_days, '1' status, 'A1' black_level from repayment_plan a left join loan_application_manifest_history d on a.loan_application_history_id=d.loan_application_history_id where a.deadline<=DATE_SUB(CURDATE(),INTERVAL 15 day) and a.deadline>DATE_SUB(CURDATE(),INTERVAL 20 day) and a.repayment_status not in (3,4) and d.transaction_status in (2,5);";