Commit 96ea4a37bf12bd66495f991d855cc46a25a4adc9
Merge branch 'develop' of http://www.huahengrobot.com:90/wms/wms4.git into develop
Showing
1 changed file
with
2 additions
and
1 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/monitor/job/MaterialLevelAlarmTask.java
... | ... | @@ -14,6 +14,7 @@ import org.jeecg.modules.wms.config.materialWarning.entity.MaterialLevelAlarm; |
14 | 14 | import org.jeecg.modules.wms.config.materialWarning.service.impl.MaterialWarningServiceImpl; |
15 | 15 | import org.quartz.*; |
16 | 16 | import org.springframework.beans.factory.annotation.Autowired; |
17 | +import org.springframework.util.CollectionUtils; | |
17 | 18 | |
18 | 19 | import javax.annotation.Resource; |
19 | 20 | import java.util.ArrayList; |
... | ... | @@ -60,7 +61,7 @@ public class MaterialLevelAlarmTask implements Job { |
60 | 61 | log.info(StrUtil.format("定时任务 MaterialLevelAlarmTask 参数:{},执行时间:{}", this.parameter, DateUtils.getTimestamp())); |
61 | 62 | |
62 | 63 | List<MaterialLevelAlarm> alarmList = materialWarningService.getLevelAlarm(null); |
63 | - if (alarmList == null && alarmList.size() == 0) { | |
64 | + if (CollectionUtils.isEmpty(alarmList)) { | |
64 | 65 | return; |
65 | 66 | } |
66 | 67 | |
... | ... |