From f2148320a8a0e6efa6148038ca853dbc1cbe63f7 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 18 Mar 2020 19:55:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=AC=E4=BC=9A=E6=97=A7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BD=92=E5=B1=9E=E5=88=B7=E6=96=B0=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/OldCountController.class.php | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/OldCountController.class.php b/Application/Admin/Controller/OldCountController.class.php index 903f911de..5602108ec 100644 --- a/Application/Admin/Controller/OldCountController.class.php +++ b/Application/Admin/Controller/OldCountController.class.php @@ -9,7 +9,9 @@ namespace Admin\Controller; */ class OldCountController extends \Think\Controller { - //财务分类汇总统计旧数据聚合 + /** + * 财务分类汇总统计旧数据聚合 + */ public function FinancialSummaryInit() { //清空数据库 @@ -23,7 +25,9 @@ class OldCountController extends \Think\Controller $Financial->setMonthFinancialSummary($v); } } - //超级签订单新增识别微信或者支付宝2019-12-11 + /* + *超级签订单新增识别微信或者支付宝2019-12-11 + */ public function gameSupersignPaywayInit() { $map = array( @@ -103,6 +107,25 @@ class OldCountController extends \Think\Controller } die("init ok"); } + /** + * 修改公会内外团关系跟随公司 旧数据跟随 20200318 + */ + public function promoteCompanyBelongInit() + { + //获取所有公司 + $comoany = M("PromoteCompany","tab_")->field("id,company_belong")->select(); + $comoany[] = ["id"=>0,"company_belong"=>0]; //海南万盟 + $count = count($comoany); + $promote = M("Promote","tab_"); + for ($i=0; $i < $count; $i++) { + $savedata = array( + "company_belong"=>$comoany[$i]['company_belong'] + ); + $tmpid = $comoany[$i]['id']; + $promote->where("company_id ='{$tmpid}'")->save($savedata); + } + die("promoteCompanyBelongInit success"); + } //获取公司月结所需要的所有月份截止至上个月 public function getMonthsList() { @@ -124,4 +147,5 @@ class OldCountController extends \Think\Controller } + }