|
@@ -112,7 +112,9 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
|
|
|
ExamNumberGoodsQueryBo examNumberGoodsQueryBo = new ExamNumberGoodsQueryBo();
|
|
|
examNumberGoodsQueryBo.setGoodsId(goodsId);
|
|
|
List<ExamNumberGoodsVo> examNumberGoodsVos = this.listGoods(examNumberGoodsQueryBo);
|
|
|
- goodsName.concat(examNumberGoodsVos.get(0).getGoodsName()+",");
|
|
|
+ if(CollectionUtils.isNotEmpty(examNumberGoodsVos)) {
|
|
|
+ goodsName.concat(examNumberGoodsVos.get(0).getGoodsName() + ",");
|
|
|
+ }
|
|
|
}
|
|
|
throw new RuntimeException(goodsName+"已被其他进行中的考试计划使用,请修改,再启用");
|
|
|
}
|