| | |
| | | package com.ks.lucky.service.impl.remote; |
| | | |
| | | import com.ks.lib.common.exception.ParamsException; |
| | | import com.ks.lucky.dao.LuckySponsorAdDao; |
| | | import com.ks.lucky.exception.LuckySponsorAdException; |
| | | import com.ks.lucky.pojo.DO.LuckySponsorAd; |
| | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Service(version = "1.0") |
| | | @Service(version = "1.0.0") |
| | | public class LuckySponsorAdServiceImpl implements LuckySponsorAdService { |
| | | |
| | | @Resource |
| | |
| | | |
| | | @Validated |
| | | @Override |
| | | public void addSponsorAd(LuckySponsorAd ad) throws LuckySponsorAdException { |
| | | public void addSponsorAd(LuckySponsorAd ad) throws ParamsException,LuckySponsorAdException { |
| | | |
| | | ad.setId(ad.getSponsorId() + "-" + System.currentTimeMillis()); |
| | | if (ad.getCreateTime() == null) { |