Commit 215a4e11 authored by daniel's avatar daniel

feat(banner): banner上传逻辑处理

parent 825a743d
...@@ -101,7 +101,7 @@ public class BannerService { ...@@ -101,7 +101,7 @@ public class BannerService {
if(partner != null && StringUtils.isNotBlank(partner.getPartnerId())){ if(partner != null && StringUtils.isNotBlank(partner.getPartnerId())){
partnerId = partner.getPartnerId(); partnerId = partner.getPartnerId();
// 限制其他赛事的处理 // 限制其他赛事的处理
if(partnerId!=GEEXEK_PARTNER_ID){ if(partnerId != GEEXEK_PARTNER_ID){
return null; return null;
} }
} }
...@@ -114,6 +114,7 @@ public class BannerService { ...@@ -114,6 +114,7 @@ public class BannerService {
banner.setPartnerId(partnerId); banner.setPartnerId(partnerId);
if(banner.getId() == null){ if(banner.getId() == null){
bannerMapper.insertPartnerBanner(banner); bannerMapper.insertPartnerBanner(banner);
return banner;
}else{ }else{
bannerMapper.updatePartnerBanner(banner); bannerMapper.updatePartnerBanner(banner);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment