|
|
@ -1386,7 +1386,7 @@ class Index extends CI_Controller {
|
|
|
|
// 记录这次导出的最后一条
|
|
|
|
// 记录这次导出的最后一条
|
|
|
|
if (isset($all_list['last_flag']) && ! empty($all_list['last_flag'])) {
|
|
|
|
if (isset($all_list['last_flag']) && ! empty($all_list['last_flag'])) {
|
|
|
|
$balance_diff = bcsub($all_list['now_amount'], $amount);
|
|
|
|
$balance_diff = bcsub($all_list['now_amount'], $amount);
|
|
|
|
$last_record_export = bcsub($all_list['last_flag']->pn_mc_gross, $balance_diff);
|
|
|
|
$last_record_export = $balance_diff>0 ? bcsub($all_list['last_flag']->pn_mc_gross, $balance_diff) : $all_list['last_flag']->pn_mc_gross;
|
|
|
|
$insert_db = array(
|
|
|
|
$insert_db = array(
|
|
|
|
"TEL_transactionType" => 15002
|
|
|
|
"TEL_transactionType" => 15002
|
|
|
|
,"TEL_transactionNoticeId" => $all_list['last_flag']->pn_sn
|
|
|
|
,"TEL_transactionNoticeId" => $all_list['last_flag']->pn_sn
|
|
|
|