From 9372b9fe7ea9927ee6a8df392a472efae276394c Mon Sep 17 00:00:00 2001 From: dengbw Date: Tue, 12 Jul 2022 16:27:33 +0800 Subject: [PATCH] userslog_712_2 --- api/controllers/plan/Licheb.php | 8 ++++---- api/controllers/plan/Temp.php | 11 +++++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index 73415574..ba6522a1 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -236,14 +236,14 @@ class Licheb extends HD_Controller if ($biz_id == 1 || $biz_id == 110) {//门店不写入 continue; } - $a_num = $t_num = $bills = $follows = $defeats = $qy_adds = $qy_dels = $reassigns = $receives = 0; - $c_num = $orders = $customers = 0; - $c_num_ary = $order_ary = $customer_ary = []; - $c_num_json = $order_json = $customer_json = ''; $re = $this->mdBizsLog->get(['biz_id' => $biz_id, 'log_date' => $log_date]); if ($re) { continue; } + $a_num = $t_num = $bills = $follows = $defeats = $qy_adds = $qy_dels = $reassigns = $receives = 0; + $c_num = $orders = $customers = 0; + $c_num_ary = $order_ary = $customer_ary = []; + $c_num_json = $order_json = $customer_json = ''; $res2 = $this->mdUsersLog->select(['biz_id' => $biz_id, 'log_date' => $log_date], 'id asc'); foreach ($res2 as $key2 => $value2) { $c_num += $value2['c_num']; diff --git a/api/controllers/plan/Temp.php b/api/controllers/plan/Temp.php index 2c7682b9..17a98dfd 100644 --- a/api/controllers/plan/Temp.php +++ b/api/controllers/plan/Temp.php @@ -138,14 +138,17 @@ class Temp extends HD_Controller $res = $this->mdBiz->select(['status' => 1], 'id asc', 0, 0, 'id,type,city_id'); foreach ($res as $key => $value) { $biz_id = $value['id']; - $a_num = $t_num = $bills = $follows = $defeats = $qy_adds = $qy_dels = $reassigns = $receives = 0; - $c_num = $orders = $customers = 0; - $c_num_ary = $order_ary = $customer_ary = []; - $c_num_json = $order_json = $customer_json = ''; + if ($biz_id == 1 || $biz_id == 110) {//门店不写入 + continue; + } $re = $this->mdBizsLog->get(['biz_id' => $biz_id, 'log_date' => $log_date]); if ($re) { continue; } + $a_num = $t_num = $bills = $follows = $defeats = $qy_adds = $qy_dels = $reassigns = $receives = 0; + $c_num = $orders = $customers = 0; + $c_num_ary = $order_ary = $customer_ary = []; + $c_num_json = $order_json = $customer_json = ''; $res2 = $this->mdUsersLog->select(['biz_id' => $biz_id, 'log_date' => $log_date], 'id asc'); foreach ($res2 as $key2 => $value2) { $c_num += $value2['c_num'];