inve plan add: last 1 month
This commit is contained in:
@@ -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 . '暂无数据';
|
||||
|
||||
Reference in New Issue
Block a user