1.耗材推送预警值改为等于

2. 耗材数量为消耗完毕数量
This commit is contained in:
2024-07-26 10:10:29 +08:00
parent 839a7fe3a6
commit 2b71560995
2 changed files with 7 additions and 8 deletions

View File

@@ -117,7 +117,7 @@ public class ConsMsgConsumer {
}
log.info("conwarning:{},stockNumber:{}",tbConsInfo.getConWarning(),tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).abs());
if (N.gt(tbConsInfo.getConWarning(), tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).abs())) {
if (N.egt(tbConsInfo.getConWarning(), tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).abs())) {
List<TbUserShopMsg> tbUserShopMsgs = tbUserShopMsgMapper.selectAllByShopId(tbConsInfo.getShopId());