From 0aa1f53a5f4ff63602d8d84adfeef55fb037afbf Mon Sep 17 00:00:00 2001
From: zhengyongxing <as123498@qq.com>
Date: Thu, 27 Feb 2020 15:19:50 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=B8=B8=E7=BB=93=E7=AE=97=E5=8D=95?=
 =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Controller/StatementMangementController.class.php      | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Application/Admin/Controller/StatementMangementController.class.php b/Application/Admin/Controller/StatementMangementController.class.php
index 07d28ee75..6105a1e2a 100644
--- a/Application/Admin/Controller/StatementMangementController.class.php
+++ b/Application/Admin/Controller/StatementMangementController.class.php
@@ -154,7 +154,11 @@ class StatementMangementController extends ThinkController
         $insert['second_party_info'] = json_encode($second_party_info);
         $insert['statement_info'] = json_encode($statement_info);
 
+
         if (!(M('statement','tab_')->where(['ext_field'=>$_REQUEST['ext_field']])->find())) {
+
+            addOperationLog(['op_type'=>0,'key'=>$second_party_info['partner'].getNowDate(),'op_name'=>'新增下游对账单','url'=>U('StatementMangement/lists'),'menu'=>'推广员-结算管理-结算单管理-新增下游对账单']);
+
             M('statement','tab_')->add($insert);
             $this->ajaxReturn(['code'=>1, 'msg'=>'生成结算单成功']);
         } else {
@@ -211,6 +215,9 @@ class StatementMangementController extends ThinkController
         $insert['statement_info'] = json_encode($statement_info);
 
         if ((M('statement','tab_')->where(['ext_field'=>$_REQUEST['ext_field']])->save($insert))) {
+
+            addOperationLog(['op_type'=>1,'key'=>$second_party_info['partner'].getNowDate(),'op_name'=>'编辑下游对账单','url'=>U('StatementMangement/lists'),'menu'=>'推广员-结算管理-结算单管理-新增下游对账单']);
+
             $this->ajaxReturn(['code'=>1, 'msg'=>'结算单编辑成功']);
         } else {
             $this->ajaxReturn(['code'=>0, 'msg'=>'结算单编辑失败']);