|
|
@ -129,11 +129,13 @@ public class ActBannerServiceImpl extends BaseServiceImpl<ActBannerDao, ActBanne |
|
|
|
public Result save(ActBannerDTO dto) { |
|
|
|
ActBannerEntity entity = ConvertUtils.sourceToTarget(dto, ActBannerEntity.class); |
|
|
|
// 上架的banner数量不能超过5条
|
|
|
|
if (NumConstant.FIVE > baseDao.getBannerStatusNumber()) { |
|
|
|
// 去掉数量限制-liuchuang-20201028
|
|
|
|
/*if (NumConstant.FIVE > baseDao.getBannerStatusNumber()) { |
|
|
|
insert(entity); |
|
|
|
} else { |
|
|
|
return new Result().error("Banner上架数量不能超过5条"); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
insert(entity); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|