From 4d1cfb36ec4d5a4bc7106fd93020ce609518fb46 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 19 Feb 2020 16:09:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=94=9F=E6=88=90=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E7=BB=93=E7=AE=97=E5=8D=95bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/StatementMangementController.class.php | 2 ++ Application/Admin/View/StatementMangement/PersonOrderEdit.html | 1 + 2 files changed, 3 insertions(+) diff --git a/Application/Admin/Controller/StatementMangementController.class.php b/Application/Admin/Controller/StatementMangementController.class.php index 4714782a8..b26cf9d3d 100644 --- a/Application/Admin/Controller/StatementMangementController.class.php +++ b/Application/Admin/Controller/StatementMangementController.class.php @@ -795,6 +795,8 @@ class StatementMangementController extends ThinkController $is_save = M('statement','tab_')->where(['id'=>$_REQUEST['withdraw_id']])->save($data); +// echo M('statement','tab_')->_sql();die(); + if ($is_save) { $this->ajaxReturn(['status'=>1,'msg'=>'修改成功']); } else { diff --git a/Application/Admin/View/StatementMangement/PersonOrderEdit.html b/Application/Admin/View/StatementMangement/PersonOrderEdit.html index 37b7545eb..6f6dde828 100644 --- a/Application/Admin/View/StatementMangement/PersonOrderEdit.html +++ b/Application/Admin/View/StatementMangement/PersonOrderEdit.html @@ -80,6 +80,7 @@
+  - 
From 9edc77beadbfcb235006fdb15d2c6063e404a7be Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Wed, 19 Feb 2020 16:28:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=94=9F=E6=88=90=E4=B8=8B=E6=B8=B8?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E7=BB=93=E7=AE=97=E5=8D=95bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/StatementMangementController.class.php | 7 +++++-- .../Admin/View/StatementMangement/PersonOrderEdit.html | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Application/Admin/Controller/StatementMangementController.class.php b/Application/Admin/Controller/StatementMangementController.class.php index b26cf9d3d..40b6eaedb 100644 --- a/Application/Admin/Controller/StatementMangementController.class.php +++ b/Application/Admin/Controller/StatementMangementController.class.php @@ -609,7 +609,7 @@ class StatementMangementController extends ThinkController $statement = M('statement','tab_') ->field('ext_field') - ->where(['ext_field'=>['like','%,%']]) + ->where(['statement_type'=>2]) ->select(); $withdrawData = []; @@ -624,7 +624,10 @@ class StatementMangementController extends ThinkController } - $thisWithdraw = explode(',',$_REQUEST['withdraw']); +// $thisWithdraw = explode(',',$_REQUEST['withdraw']); + $thisWithdraw = explode(',',M('statement','tab_')->where(['id'=>$_REQUEST['id']])->find()['ext_field']); +// dump($thisWithdraw);die(); + foreach ($data as $key => $value) { // $data[$key]['settlement_begin_time'] = date("Y-m-d H:i:s", $data[$key]['settlement_begin_time']); diff --git a/Application/Admin/View/StatementMangement/PersonOrderEdit.html b/Application/Admin/View/StatementMangement/PersonOrderEdit.html index 6f6dde828..1d2643564 100644 --- a/Application/Admin/View/StatementMangement/PersonOrderEdit.html +++ b/Application/Admin/View/StatementMangement/PersonOrderEdit.html @@ -80,7 +80,7 @@
- +  - 
@@ -278,6 +278,7 @@ return $(elem).val(); }).get().join(","); var id =$("#withdraw_id").val(); + var withdraw =$("#withdraw").val(); var url = "/admin.php?s=/statementMangement/PersonOrderEdit/withdraw/" + text + "/time_start/" + $("#time_start").val() + "/time_end/" + $("#time_end").val() + "/id/" + id; console.log(url)