userslog_712_2

This commit is contained in:
dengbw
2022-07-12 16:27:33 +08:00
committed by lccsw
parent a50d93f2a0
commit 9372b9fe7e
2 changed files with 11 additions and 8 deletions
+4 -4
View File
@@ -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'];
+7 -4
View File
@@ -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'];