提交 73133175 authored 作者: zhoushaopan's avatar zhoushaopan

fix(日常检查模块): 解决了数据为空的原因

解决了数据为空的原因
上级 b3ddb87e
...@@ -258,10 +258,13 @@ public class DailyCheckBillServiceImpl implements DailyCheckBillService { ...@@ -258,10 +258,13 @@ public class DailyCheckBillServiceImpl implements DailyCheckBillService {
DailyCheckBill checkBill = getOne(dailyCheckId); DailyCheckBill checkBill = getOne(dailyCheckId);
String[] ids = checkBill.getCheckDetail().split(","); String[] ids = checkBill.getCheckDetail().split(",");
List<Integer> finalIds = new ArrayList<>(); List<Integer> finalIds = new ArrayList<>();
for (int i = 0; i < ids.length; i++) { if (ids.length > 0){
int j = Integer.parseInt(ids[i]); for (int i = 0; i < ids.length; i++) {
finalIds.add(j); int j = Integer.parseInt(ids[i]);
finalIds.add(j);
}
} }
if (deviceIds.size() != ids.length){ if (deviceIds.size() != ids.length){
throw new ApiException("扫描任务与当前的任务时间不一致"); throw new ApiException("扫描任务与当前的任务时间不一致");
}else { }else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论