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_BY_RECORD_ID_SQL="update black_list_new set status = 0, created_at = '%s', 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_THIRD_PART_BLACK_LIST_SQL="update black_list_new set uuid = '%s', name = '%s', phone_no = '%s', id_no = '%s', updated_at = '%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 = ?";
publicstaticStringBLACK_LIST_NEW_QUERY_BY_PHONENO_SQL="select * from black_list_new where phone_no = '%s' and status = true;";
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_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);";
publicstaticStringXYQB_QUERY_USER_FIRST_TERM_OVERDUE_SQL="select if(repayment_status=3,DATEDIFF(repaid_at,deadline)+1,DATEDIFF(CURDATE(),deadline)+1) total_overdue_days from repayment_plan where user_id in (%s) and deadline<=CURDATE() and (repayment_status not in (3,4) or (repayment_status=3 and repaid_at>=deadline)) order by deadline desc limit 1;";
publicstaticStringXYQB_QUERY_USER_MAX_OVERDUE_SQL="select max(if(repayment_status=3,DATEDIFF(repaid_at,deadline)+1,DATEDIFF(CURDATE(),deadline)+1)) max_overdue_days from repayment_plan where user_id in (%s) and deadline<=CURDATE() and (repayment_status not in (3,4) or (repayment_status=3 and repaid_at>=deadline));";
publicstaticStringXYQB_USER_QUERY_USER_DETAIL_INFO_SQL="select c.id, c.uuid uuid, b.name, c.phone_no phoneNo, b.id_no idNo from user_detail b left join user c on b.user_id=c.id where b.user_id=%s';";
publicstaticStringXYQB_USER_QUERY_USER_DETAIL_BY_PHONE_NO_SQL="select user_id from user a left join user_detail b on a.id=b.user_id where b.phone_no='%s';";
publicstaticStringXYQB_USER_QUERY_USER_DETAIL_BY_ID_NO_SQL="select user_id from user a left join user_detail b on a.id=b.user_id where b.id_no='%s';";
publicstaticStringXYQB_USER_QUERY_USER_DETAIL_BY_UUID_SQL="select user_id from user a left join user_detail b on a.id=b.user_id where a.uuid = '%s'";
publicstaticStringQUERY_THIRD_PART_BLACK_LIST_CONFIG="select * from third_part_black_list_config where status = true;";