inve plan add: last 1 month

This commit is contained in:
qianhy
2023-02-07 15:22:21 +08:00
committed by lccsw
parent 5eae9da50b
commit 5302eba0d5
+1
View File
@@ -51,6 +51,7 @@ class Licheb extends HD_Controller
!$id && $id = 0;
$log = [];
$where = ['id >' => $id, 'status<>' => 1];
$where["inve_id in (select id from lc_items_inventory where c_time >= UNIX_TIMESTAMP(DATE_SUB(DATE_FORMAT(NOW(),'%Y-%m-%d'),INTERVAL 1 month)))"] = null;
$res = $this->mdInventoryLog->select($where, 'id asc', 1, $size, 'id,item_id');
if (!$res) {
echo '执行到当前盘点id' . $id . '暂无数据';