
[2024-05-21 Tue 04:00:02] : *********************** START **************************
[2024-05-21 Tue 04:00:02] : select id, status_code from status_code where status='Active'
[2024-05-21 Tue 04:00:02] : Status Code Result: 2
[2024-05-21 Tue 04:00:02] : select id, app_store, app_name, app_url from app_info where scheduler_status='Active' and status='Active'
[2024-05-21 Tue 04:00:02] : App Info Result: 6
[2024-05-21 Tue 04:00:02] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:02] : Batch ID: 2024-05-21 04:00:02#Google Play Store#AppInfoId_1#AppName_Unet
[2024-05-21 Tue 04:00:02] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:02] : Misc Test: 2024-05-21 04:00:02#Google Play Store#AppInfoId_1#AppName_Unet --> APP_VERSION --> 2 --> get-app-info.php
[2024-05-21 Tue 04:00:02] : APP_VERSION
[2024-05-21 Tue 04:00:02] : 3.40
[2024-05-21 Tue 04:00:02] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (1,2,'3.40','2024-05-21 04:00:02#Google Play Store#AppInfoId_1#AppName_Unet','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:02] : 1
[2024-05-21 Tue 04:00:02] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:02] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:02] : Misc Test: 2024-05-21 04:00:02#Google Play Store#AppInfoId_1#AppName_Unet --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2024-05-21 Tue 04:00:02] : APP_LAST_UPDATE
[2024-05-21 Tue 04:00:06] : 2024-05-19
[2024-05-21 Tue 04:00:06] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (1,5,'2024-05-19','2024-05-21 04:00:02#Google Play Store#AppInfoId_1#AppName_Unet','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:06] : 1
[2024-05-21 Tue 04:00:06] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:06] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:06] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:06] : Batch ID: 2024-05-21 04:00:02#Google Play Store#AppInfoId_2#AppName_UClick
[2024-05-21 Tue 04:00:06] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:06] : Misc Test: 2024-05-21 04:00:02#Google Play Store#AppInfoId_2#AppName_UClick --> APP_VERSION --> 2 --> get-app-info.php
[2024-05-21 Tue 04:00:06] : APP_VERSION
[2024-05-21 Tue 04:00:07] : 1.1.1.4
[2024-05-21 Tue 04:00:07] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (2,2,'1.1.1.4','2024-05-21 04:00:02#Google Play Store#AppInfoId_2#AppName_UClick','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:07] : 1
[2024-05-21 Tue 04:00:07] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:07] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:07] : Misc Test: 2024-05-21 04:00:02#Google Play Store#AppInfoId_2#AppName_UClick --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2024-05-21 Tue 04:00:07] : APP_LAST_UPDATE
[2024-05-21 Tue 04:00:07] : 2024-03-11
[2024-05-21 Tue 04:00:07] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (2,5,'2024-03-11','2024-05-21 04:00:02#Google Play Store#AppInfoId_2#AppName_UClick','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:07] : 1
[2024-05-21 Tue 04:00:07] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:07] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:07] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:07] : Batch ID: 2024-05-21 04:00:02#Google Play Store#AppInfoId_3#AppName_Unet Enterprise Banking
[2024-05-21 Tue 04:00:07] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:07] : Misc Test: 2024-05-21 04:00:02#Google Play Store#AppInfoId_3#AppName_Unet Enterprise Banking --> APP_VERSION --> 2 --> get-app-info.php
[2024-05-21 Tue 04:00:07] : APP_VERSION
[2024-05-21 Tue 04:00:08] : 1.0.21
[2024-05-21 Tue 04:00:08] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (3,2,'1.0.21','2024-05-21 04:00:02#Google Play Store#AppInfoId_3#AppName_Unet Enterprise Banking','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:08] : 1
[2024-05-21 Tue 04:00:08] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:08] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:08] : Misc Test: 2024-05-21 04:00:02#Google Play Store#AppInfoId_3#AppName_Unet Enterprise Banking --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2024-05-21 Tue 04:00:08] : APP_LAST_UPDATE
[2024-05-21 Tue 04:00:08] : 2023-12-16
[2024-05-21 Tue 04:00:08] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (3,5,'2023-12-16','2024-05-21 04:00:02#Google Play Store#AppInfoId_3#AppName_Unet Enterprise Banking','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:08] : 1
[2024-05-21 Tue 04:00:08] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:08] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:08] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:08] : Batch ID: 2024-05-21 04:00:02#Apple I Store#AppInfoId_4#AppName_UCB Unet
[2024-05-21 Tue 04:00:08] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:08] : Misc Test: 2024-05-21 04:00:02#Apple I Store#AppInfoId_4#AppName_UCB Unet --> APP_VERSION --> 2 --> get-app-info.php
[2024-05-21 Tue 04:00:08] : APP_VERSION
[2024-05-21 Tue 04:00:09] : 2.3.8
[2024-05-21 Tue 04:00:09] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (4,2,'2.3.8','2024-05-21 04:00:02#Apple I Store#AppInfoId_4#AppName_UCB Unet','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:09] : 1
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : Misc Test: 2024-05-21 04:00:02#Apple I Store#AppInfoId_4#AppName_UCB Unet --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2024-05-21 Tue 04:00:09] : APP_LAST_UPDATE
[2024-05-21 Tue 04:00:09] : 2024-05-20
[2024-05-21 Tue 04:00:09] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (4,5,'2024-05-20','2024-05-21 04:00:02#Apple I Store#AppInfoId_4#AppName_UCB Unet','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:09] : 1
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : Batch ID: 2024-05-21 04:00:02#Apple I Store#AppInfoId_5#AppName_UClick
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : Misc Test: 2024-05-21 04:00:02#Apple I Store#AppInfoId_5#AppName_UClick --> APP_VERSION --> 2 --> get-app-info.php
[2024-05-21 Tue 04:00:09] : APP_VERSION
[2024-05-21 Tue 04:00:09] : 1.1.5
[2024-05-21 Tue 04:00:09] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (5,2,'1.1.5','2024-05-21 04:00:02#Apple I Store#AppInfoId_5#AppName_UClick','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:09] : 1
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : Misc Test: 2024-05-21 04:00:02#Apple I Store#AppInfoId_5#AppName_UClick --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2024-05-21 Tue 04:00:09] : APP_LAST_UPDATE
[2024-05-21 Tue 04:00:09] : 2024-03-12
[2024-05-21 Tue 04:00:09] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (5,5,'2024-03-12','2024-05-21 04:00:02#Apple I Store#AppInfoId_5#AppName_UClick','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:09] : 1
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<START App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : Batch ID: 2024-05-21 04:00:02#Apple I Store#AppInfoId_6#AppName_Unet Enterprise Banking
[2024-05-21 Tue 04:00:09] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:09] : Misc Test: 2024-05-21 04:00:02#Apple I Store#AppInfoId_6#AppName_Unet Enterprise Banking --> APP_VERSION --> 2 --> get-app-info.php
[2024-05-21 Tue 04:00:09] : APP_VERSION
[2024-05-21 Tue 04:00:10] : 1.1.1
[2024-05-21 Tue 04:00:10] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (6,2,'1.1.1','2024-05-21 04:00:02#Apple I Store#AppInfoId_6#AppName_Unet Enterprise Banking','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:10] : 1
[2024-05-21 Tue 04:00:10] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:10] : <<<<<<<<<<<<<<<<<<<<START Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:10] : Misc Test: 2024-05-21 04:00:02#Apple I Store#AppInfoId_6#AppName_Unet Enterprise Banking --> APP_LAST_UPDATE --> 5 --> get-app-info.php
[2024-05-21 Tue 04:00:10] : APP_LAST_UPDATE
[2024-05-21 Tue 04:00:10] : 2023-12-20
[2024-05-21 Tue 04:00:10] : INSERT INTO app_info_status (app_info_id, status_code_id, status_value, batch_id, executed_date, executed_at_bd_time, executed_at_server_time, which_script) VALUES (6,5,'2023-12-20','2024-05-21 04:00:02#Apple I Store#AppInfoId_6#AppName_Unet Enterprise Banking','2024-05-21','2024-05-21 04:00:02','2024-05-20 22:00:02','get-app-info.php')
[2024-05-21 Tue 04:00:10] : 1
[2024-05-21 Tue 04:00:10] : <<<<<<<<<<<<<<<<<<<<END Status Code wise Info Fetch>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:10] : <<<<<<<<<<<<<<<<<<<<END App Info Loop>>>>>>>>>>>>>>>>>>>>
[2024-05-21 Tue 04:00:10] : Connection closed
[2024-05-21 Tue 04:00:10] : ************************ END ***************************
[2024-05-21 Tue 06:00:02] : *********************** START Send Deviation Alert**************************
[2024-05-21 Tue 06:00:02] : SELECT DISTINCT t1.*,t2.*  FROM 
				(
				SELECT ai.id, ai.app_name, ai.app_store, ai.app_org, sc.status_code, sc.status_code_desc, ais.status_value, ais.`executed_date` AS date_bd
				FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
				LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
				WHERE ais.`status`='Active' AND ais.`executed_date` = '2024-05-21'
				) t1
				LEFT OUTER JOIN
				(
				SELECT ai.id AS id_1, ai.app_name AS app_name_1, ai.app_store AS app_store_1, ai.app_org AS app_org_1, sc.status_code AS status_code_1,
				 sc.status_code_desc AS status_code_desc_1, ais.status_value AS status_value_1
				FROM app_info ai LEFT OUTER JOIN app_info_status ais ON ai.id=ais.`app_info_id` 
				LEFT OUTER JOIN status_code sc ON ais.`status_code_id`=sc.`id` 
				WHERE ais.`status`='Active' AND ais.`executed_date` = '2024-05-20'
				) t2 ON t1.id=t2.id_1 and t1.status_code=t2.status_code_1
				ORDER BY t1.`app_store`, t1.`app_name`, t1.`status_code`, t1.`date_bd` DESC
[2024-05-21 Tue 06:00:02] : Total Record Fetch: 12
[2024-05-21 Tue 06:00:02] : <table width="200" border="1" cellspacing="0" cellpadding="0" style="border: 1px solid #000;font-family: Cambria, 'Hoefler Text', 'Liberation Serif', Times, 'Times New Roman', 'serif';font-size: 14px;">
  <tbody style="border: 1px solid #000;">
    <tr>
      <th style="width: 30px">SL</th>
      <th style="width: 180px">App Store</th>
      <th style="width: 300px">App Name</th>
	  <th style="width: 225px">App Organization</th>
	  <th style="width: 160px">App Status Type</th>
	  <th style="width: 140px">Status Value as on <span style="background-color: #00FFFF">2024-05-21</span></th>
	  <th style="width: 140px">Status Value as on <span style="background-color: #FFA500">2024-05-20</span></th>
	  <th style="width: 160px">Deviation Status</th>
    </tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">1</td><td style="border: 1px solid #000;width: auto">Apple I Store</td><td style="border: 1px solid #000;width: auto">UCB Unet</td><td style="border: 1px solid #000;width: auto">United Commercial Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_LAST_UPDATE</td><td style="border: 1px solid #000;width: auto;background-color: #F00">2024-05-20</td><td style="border: 1px solid #000;width: auto;background-color: #F00">2024-04-02</td><td style="border: 1px solid #000;width: auto">Not Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">2</td><td style="border: 1px solid #000;width: auto">Apple I Store</td><td style="border: 1px solid #000;width: auto">UCB Unet</td><td style="border: 1px solid #000;width: auto">United Commercial Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_VERSION</td><td style="border: 1px solid #000;width: auto;background-color: #F00">2.3.8</td><td style="border: 1px solid #000;width: auto;background-color: #F00">2.3.7</td><td style="border: 1px solid #000;width: auto">Not Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">3</td><td style="border: 1px solid #000;width: auto">Google Play Store</td><td style="border: 1px solid #000;width: auto">Unet</td><td style="border: 1px solid #000;width: auto">United Commercial Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_LAST_UPDATE</td><td style="border: 1px solid #000;width: auto;background-color: #F00">2024-05-19</td><td style="border: 1px solid #000;width: auto;background-color: #F00">2024-03-31</td><td style="border: 1px solid #000;width: auto">Not Matched</td></tr><tr style="text-align: center;vertical-align: middle"><td style="border: 1px solid #000;width: auto">4</td><td style="border: 1px solid #000;width: auto">Google Play Store</td><td style="border: 1px solid #000;width: auto">Unet</td><td style="border: 1px solid #000;width: auto">United Commercial Bank PLC</td><td style="border: 1px solid #000;width: auto">APP_VERSION</td><td style="border: 1px solid #000;width: auto;background-color: #F00">3.40</td><td style="border: 1px solid #000;width: auto;background-color: #F00">3.39</td><td style="border: 1px solid #000;width: auto">Not Matched</td></tr></tbody></table>
[2024-05-21 Tue 06:00:03] : Mail sent on 2024-05-21 06:00:02
[2024-05-21 Tue 06:00:03] : Connection closed
[2024-05-21 Tue 06:00:03] : ************************ END ***************************