diff --git a/api/controllers/plan/Licheb.php b/api/controllers/plan/Licheb.php index 65a90e5a..41c3f04f 100644 --- a/api/controllers/plan/Licheb.php +++ b/api/controllers/plan/Licheb.php @@ -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 . '暂无数据';