|
|
@@ -94,8 +94,8 @@ public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply
|
|
|
public Boolean updateByEditBo(ExamApplyEditBo bo) {
|
|
|
ExamApply update = BeanUtil.toBean(bo, ExamApply.class);
|
|
|
if (bo.getStatus() == 1){
|
|
|
- List<Long> contGoodsId = baseMapper.countGoods(bo.getApplyId());
|
|
|
- if (CollectionUtils.isEmpty(contGoodsId)){
|
|
|
+ Long contGoodsId = baseMapper.countGoods(bo.getApplyId());
|
|
|
+ if (contGoodsId < 1){
|
|
|
throw new RuntimeException("请先设置适用商品");
|
|
|
}
|
|
|
List<ExamApplySiteVo> examApplySite = baseMapper.addressExam(bo.getApplyId(),1L);
|