|
@@ -108,9 +108,9 @@ public class ExamBeforeServiceImpl extends ServiceImpl<ExamBeforeMapper, ExamBef
|
|
|
ExamBefore update = BeanUtil.toBean(bo, ExamBefore.class);
|
|
|
if (bo.getStatus() == 1) {
|
|
|
//是否已经设置商品
|
|
|
- if (baseMapper.countBeforeGoods(bo.getBeforeId()) < 1) {
|
|
|
+/* if (baseMapper.countBeforeGoods(bo.getBeforeId()) < 1) {
|
|
|
throw new IllegalArgumentException("请先设置适用商品");
|
|
|
- }
|
|
|
+ }*/
|
|
|
//是否商品被启用考培
|
|
|
if (baseMapper.beforeGoods(bo.getBeforeId()) > 0){
|
|
|
throw new IllegalArgumentException("该商品已启用考培,请重新创建");
|