SMC credit PD : ps

This commit is contained in:
VE10-Sanjeev 2023-04-27 16:03:34 +05:30
parent 2e2e3a7b18
commit a0324bfabb

View File

@ -2038,6 +2038,11 @@ public function filterSalesPDList_post() {
}else { }else {
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$key,'30 minutes'); $singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$key,'30 minutes');
} }
$columns = array('PDTRIGGER.pd_id');
$table = PDTRIGGER . ' as PDTRIGGER';
$where_arr = array('PDTRIGGER.is_the_data_transfer_cet'=>0,'PDTRIGGER.pd_status' => COMPLETED,'PDTRIGGER.pd_id'=>$smc_credit_pd);
$details = $this->SMC_Credit_PD_Model->selectCustomRecords($columns, $where_arr, $table);
if(!empty($details)){
### Automation CET Data Push Credit-PD ### Automation CET Data Push Credit-PD
sleep(10); sleep(10);
$result = $this->dataSynchronization($smc_credit_pd,0); $result = $this->dataSynchronization($smc_credit_pd,0);
@ -2049,6 +2054,11 @@ public function filterSalesPDList_post() {
}else{ }else{
log_message('ERROR', '#### Credit-PD ('.$smc_credit_pd.') status '.$result->status); log_message('ERROR', '#### Credit-PD ('.$smc_credit_pd.') status '.$result->status);
} }
}else{
$result = 'CET Data Push ('.$smc_credit_pd.') Credit-PD Already Done';
log_message('ERROR', '#### '.$result);
}
$data['dataStatus'] = true; $data['dataStatus'] = true;
$data['status'] = REST_Controller::HTTP_OK; $data['status'] = REST_Controller::HTTP_OK;
$data['records'] = $singed_uri; $data['records'] = $singed_uri;