Monitoring
Monitoring
-- Increff
select distinct t.orderno from temp_vishal t
where not exists ( select 1 from tborderheader oh where
oh.fdOriginalOrderno=t.orderno );
-- vin
select distinct t.orderno from temp_vishal t
where not exists ( select 1 from tborderheader oh where
oh.fdReferenceOrderNo=t.orderno );
Step 3
If Result>0
{
-- sync Increff
INSERT INTO tborderstobeprocessed (
fdOrderNumber,
fdOMSSource,
fdCreatedOn
)
SELECT
DISTINCT orderno,
'2',
now()
FROM temp_vishal WHERE temp_vishal.orderno NOT IN (SELECT fdOrderNumber FROM
tborderstobeprocessed) ;
-- sync vin
INSERT INTO tborderstobeprocessed (
fdOrderNumber,
fdOMSSource,
fdCreatedOn
)
SELECT
DISTINCT orderno,
'1',
now()
FROM temp_vishal WHERE temp_vishal.orderno NOT IN (SELECT fdOrderNumber FROM
tborderstobeprocessed) ;
}
Step 4.
After Some time 15-20 min der baad
check step 2 again.
-----------------------------------------------------------------------------------
-----------
#PFB queries used for checking order details with request and response.
-- To check events
select * from tbcodelkup where fdLkUpCode like '%INCREFF_EVENT_TYPE%' ;
-- Check request and response of the call with api url and date time.
select * from tbincreffrequestaudit
where fdAPIURL='http://works.reproindialtd.com/api/reproSeller/cancelChannelOrder'
and fdCreatedOn>=PFB;
#queries used for checking order details with request and response.
-- Api urls
# /api/reproSeller/saveIncreffOrder
# https://repro-assure.increff.com/repro-toolkit//orders/retrigger-events
# https://repro-assure.increff.com/repro-toolkit//orders/pull-events
# http://works.reproindialtd.com/api/reproSeller/returnOrder
# http://works.reproindialtd.com/api/reproSeller/saveOrderShippingDetails
# http://works.reproindialtd.com/api/reproSeller/cancelChannelOrder
-- EventType= 1
select * from tbincreffrequestaudit
where
fdAPIURL='http://works.reproindialtd.com/api/reproSeller/saveOrderShippingDetails'
and fdCreatedOn>='2023-05-03 00:00:00'
and fdCreatedOn<='2023-05-06 19:53:21'
and fdRequestData like '%UJftx9pS7%'
;
-- EventType=3
select * from tbincreffrequestaudit
where fdAPIURL='/api/reproSeller/saveIncreffOrder'
and fdCreatedOn>='2023-07-04 11:47:56'
and fdCreatedOn<='2023-07-04 11:52:56'
and fdRequestData like '%8575f4a6-e36c-4d10-9e65-d91d73c4f8e3%'
;
-- EventType=2 or 4
select * from tbincreffrequestaudit
where fdAPIURL='http://works.reproindialtd.com/api/reproSeller/cancelChannelOrder'
and fdCreatedOn>='2023-06-01 11:00:06'
and fdCreatedOn<='2023-06-01 11:02:06'
and fdRequestData like '%e28831e2-7bf5-4ed3-a905-8d992bad5e30%'
;
-- EventType=5
select * from tbincreffrequestaudit
where fdAPIURL='http://works.reproindialtd.com/api/reproSeller/returnOrder'
and fdCreatedOn>='2023-07-01 08:50:15'
and fdCreatedOn<='2023-07-01 08:55:15'
and fdRequestData like '%d8db9964-755e-400b-a93e-bfc492c27d5e%';