|
@@ -1,6 +1,7 @@
|
|
|
package org.jeecg.modules.baogao.service.impl;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -258,7 +259,8 @@ public class ItdmBaogaoServiceImpl extends ServiceImpl<ItdmBaogaoMapper, ItdmBao
|
|
|
|
|
|
}
|
|
|
|
|
|
- if (chuangants == null || chuangants.size() == 0) {
|
|
|
+ // 当委托单没有传感器时,查询出的chuangants集合并不为空,而是存在一个值为""的元素,所以要根据get(0)是否为空来进行判断
|
|
|
+ if (chuangants == null || chuangants.size() == 0 || ObjectUtil.isEmpty(chuangants.get(0))) {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
|