|
|
@ -1112,12 +1112,13 @@ class IPayLinksService extends CI_Controller
|
|
|
|
$warrant["PW_GAI_SSJE_pre"] = $old_info[0]->GAI_SSJE;
|
|
|
|
$warrant["PW_GAI_SSJE_pre"] = $old_info[0]->GAI_SSJE;
|
|
|
|
$warrant["PW_orderType"] = $orderid_info->ordertype;
|
|
|
|
$warrant["PW_orderType"] = $orderid_info->ordertype;
|
|
|
|
$this->Note_model->new_warrant($warrant);
|
|
|
|
$this->Note_model->new_warrant($warrant);
|
|
|
|
|
|
|
|
// 2018.02.05 暂不更新付款记录, 测试观察一段
|
|
|
|
if (strcasecmp($orderid_info->ordertype, "B") === 0) {
|
|
|
|
if (strcasecmp($orderid_info->ordertype, "B") === 0) {
|
|
|
|
$this->IPayLinks_model
|
|
|
|
// $this->IPayLinks_model
|
|
|
|
->update_money_b($entry_sum_RMB, trim($settle['pn_invoice']));
|
|
|
|
// ->update_money_b($entry_sum_RMB, trim($settle['pn_invoice']));
|
|
|
|
} else if (strcasecmp($orderid_info->ordertype, "T") === 0){
|
|
|
|
} else if (strcasecmp($orderid_info->ordertype, "T") === 0){
|
|
|
|
$this->IPayLinks_model
|
|
|
|
// $this->IPayLinks_model
|
|
|
|
->update_money_t($entry_sum_RMB, trim($settle['pn_invoice']));
|
|
|
|
// ->update_money_t($entry_sum_RMB, trim($settle['pn_invoice']));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$warrant = NULL;
|
|
|
|
$warrant = NULL;
|
|
|
|
$update_cnt++;
|
|
|
|
$update_cnt++;
|
|
|
@ -1125,7 +1126,10 @@ class IPayLinksService extends CI_Controller
|
|
|
|
$settlement_record = null; // reset
|
|
|
|
$settlement_record = null; // reset
|
|
|
|
$settle_cnt++;
|
|
|
|
$settle_cnt++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo "Found $settle_cnt Excels; Updated $update_cnt records;";
|
|
|
|
$result = "auto_update_statement result: " . date('Y-m-d H:i:s') . " ------ \r\n";
|
|
|
|
|
|
|
|
$result .= "Found $settle_cnt Excels; Updated $update_cnt records;";
|
|
|
|
|
|
|
|
log_message('error', $result);
|
|
|
|
|
|
|
|
echo $result;
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1152,6 +1156,7 @@ class IPayLinksService extends CI_Controller
|
|
|
|
|
|
|
|
|
|
|
|
/**取得一共有多少行*/
|
|
|
|
/**取得一共有多少行*/
|
|
|
|
$allRow = $currentSheet->getHighestRow();
|
|
|
|
$allRow = $currentSheet->getHighestRow();
|
|
|
|
|
|
|
|
$col_titles = $this->col_title();
|
|
|
|
/**从第二行开始输出,因为excel表中第一行为列名*/
|
|
|
|
/**从第二行开始输出,因为excel表中第一行为列名*/
|
|
|
|
for($currentRow = 2;$currentRow <= $allRow;$currentRow++){
|
|
|
|
for($currentRow = 2;$currentRow <= $allRow;$currentRow++){
|
|
|
|
$row_tmp = array();
|
|
|
|
$row_tmp = array();
|
|
|
@ -1159,7 +1164,7 @@ class IPayLinksService extends CI_Controller
|
|
|
|
for($currentColumn= 'A';$currentColumn<= $allColumn; $currentColumn++){
|
|
|
|
for($currentColumn= 'A';$currentColumn<= $allColumn; $currentColumn++){
|
|
|
|
/**ord()将字符转为十进制数*/
|
|
|
|
/**ord()将字符转为十进制数*/
|
|
|
|
$val = $currentSheet->getCellByColumnAndRow(ord($currentColumn) - 65,$currentRow)->getValue();
|
|
|
|
$val = $currentSheet->getCellByColumnAndRow(ord($currentColumn) - 65,$currentRow)->getValue();
|
|
|
|
$col_mean = $this->col_title()[$currentColumn];
|
|
|
|
$col_mean = $col_titles[$currentColumn];
|
|
|
|
if($col_mean == 'data_type' && strcasecmp('清算', $val) !== 0)
|
|
|
|
if($col_mean == 'data_type' && strcasecmp('清算', $val) !== 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|