From 49efb2e60f6f6840b3ab6f5b7609aa80310f5f0f Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Tue, 17 Mar 2020 21:20:44 +0800 Subject: [PATCH] xiufu --- Application/Admin/Controller/ExportController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 84e6152e5..8c4465138 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -2642,7 +2642,7 @@ class ExportController extends Controller // ->where($map) // ->page($page,$row) // ->select(); - $first = M('value_detail_log', 'tab_')->field('after_value')->where($map)->limit(1)->order('create_time')->select(); + $first = M('value_detail_log', 'tab_')->field('after_value')->where($map)->limit(1)->order('create_time desc')->select(); if (!empty($first[0]['after_value'])) { $first = number_format($first[0]['after_value'],2,'.',''); }else {