Browse Source

去掉志愿者banner数量限制

feature/syp_points
liuchuang 5 years ago
parent
commit
4f1a86f9ee
  1. 6
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActBannerServiceImpl.java

6
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActBannerServiceImpl.java

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

Loading…
Cancel
Save