|
@@ -80,6 +80,9 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
|
|
|
if (baseMapper.countBeforeGoods(bo.getBeforeId()) < 1) {
|
|
|
throw new IllegalArgumentException("请先设置适用商品");
|
|
|
}
|
|
|
+ if (baseMapper.beforeGoods(bo.getBeforeId()) > 0){
|
|
|
+ throw new IllegalArgumentException("该商品已启用考培,请重新创建");
|
|
|
+ }
|
|
|
}
|
|
|
validEntityBeforeSave(update);
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|