Add better handling for different phone number formats
This commit is contained in:
@@ -355,7 +355,12 @@ public class TippligaSQLConnector {
|
|||||||
'{{remainingHours}}' AS remaining_hours,
|
'{{remainingHours}}' AS remaining_hours,
|
||||||
b.user_id,
|
b.user_id,
|
||||||
u.username,
|
u.username,
|
||||||
pf.pf_handynummer,
|
CASE
|
||||||
|
WHEN SUBSTR(pf.pf_handynummer, 1, 2) = '00' THEN pf.pf_handynummer
|
||||||
|
WHEN SUBSTR(pf.pf_handynummer, 1, 1) = '+' THEN CONCAT('00', SUBSTR(pf.pf_handynummer, 2))
|
||||||
|
WHEN SUBSTR(pf.pf_handynummer, 1, 2) = '01' THEN CONCAT('0049', SUBSTR(pf.pf_handynummer, 2))
|
||||||
|
ELSE ''
|
||||||
|
END AS pf_handynummer,
|
||||||
count(*) AS missing_bets
|
count(*) AS missing_bets
|
||||||
FROM delivery_date_next_day d
|
FROM delivery_date_next_day d
|
||||||
LEFT JOIN phpbb_footb_matches m
|
LEFT JOIN phpbb_footb_matches m
|
||||||
|
|||||||
Reference in New Issue
Block a user