lvhao 2 天之前
父节点
当前提交
03f52afbce
共有 1 个文件被更改,包括 16 次插入 和 4 次删除
  1. 16 4
      core/CoreApp/controllers/Whlabel.php

+ 16 - 4
core/CoreApp/controllers/Whlabel.php

@@ -4826,17 +4826,29 @@ class Whlabel extends Start_Controller
 				$thistime = $timelist;
 				if (isset($rows[strtolower($value['sku'])])) {
 					if ($value['outk'] > $ktime && $value['state'] < $jtime) {
-						$rows[strtolower($value['sku'])][date('Y-m-d', $value['outk'])]['c'] += 1;
+						if(isset($rows[strtolower($value['sku'])][date('Y-m-d', $value['outk'])])){
+							$rows[strtolower($value['sku'])][date('Y-m-d', $value['outk'])]['c'] += 1;
+						}
+						
 					}
 					if ($value['enter'] > $ktime && $value['enter'] < $jtime) {
-						$rows[strtolower($value['sku'])][date('Y-m-d', $value['enter'])]['r'] += 1;
+						if(isset($rows[strtolower($value['sku'])][date('Y-m-d', $value['enter'])])){
+							$rows[strtolower($value['sku'])][date('Y-m-d', $value['enter'])]['r'] += 1;
+						}
+						
 					}
 				} else {
 					if ($value['outk'] > $ktime && $value['outk'] < $jtime) {
-						$thistime[date('Y-m-d', $value['outk'])]['c'] += 1;
+						if(isset($thistime[date('Y-m-d', $value['outk'])])){
+							$thistime[date('Y-m-d', $value['outk'])]['c'] += 1;
+						}
+						
 					}
 					if ($value['enter'] > $ktime && $value['enter'] < $jtime) {
-						$thistime[date('Y-m-d', $value['enter'])]['r'] += 1;
+						if(isset($thistime[date('Y-m-d', $value['enter'])])){
+							$thistime[date('Y-m-d', $value['enter'])]['r'] += 1;
+						}
+						
 					}
 					$rows[strtolower($value['sku'])] = $thistime;
 				}