过期预警 查询优化
This commit is contained in:
parent
c7ac9932cc
commit
c11feff965
|
|
@ -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() -- 已过期-->
|
||||
<!-- OR TIMESTAMPDIFF(DAY, NOW(), did.expire_time) <![CDATA[ <= ]]> mm.shelf_life_days -- 临期-->
|
||||
|
|
|
|||
Loading…
Reference in New Issue