Commit 96ea4a37bf12bd66495f991d855cc46a25a4adc9

Authored by 谭毅彬
2 parents 43b13da2 f930ea23

Merge branch 'develop' of http://www.huahengrobot.com:90/wms/wms4.git into develop

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  
... ...