过期预警 查询优化

This commit is contained in:
liux 2025-11-19 11:02:56 +08:00
parent c7ac9932cc
commit c11feff965
1 changed files with 1 additions and 0 deletions

View File

@ -290,6 +290,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
did.expire_time is not null
and did.inventory_num > 0
and mm.material_name is not null
and dii.`status` = 2
<!-- and (-->
<!-- did.expire_time <![CDATA[ <]]> NOW() &#45;&#45; 已过期-->
<!-- OR TIMESTAMPDIFF(DAY, NOW(), did.expire_time) <![CDATA[ <= ]]> mm.shelf_life_days &#45;&#45; 临期-->