| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import java.util.Date; |
| | | |
| | | @Service(version = "1.0") |
| | | @Service(version = "1.0.0") |
| | | public class LuckyActivityOpenInfoServiceImpl implements LuckyActivityOpenInfoService { |
| | | |
| | | @Resource |
| | |
| | | |
| | | @Override |
| | | public void updateOpenInfo(LuckyActivityOpenInfo openInfo) throws LuckyActivityOpenInfoException { |
| | | luckyActivityOpenInfoManager.updateOpenInfo(openInfo); |
| | | |
| | | LuckyActivityOpenInfo old = luckyActivityOpenInfoManager.getOpenInfoDetail(openInfo.getId()); |
| | | if (old == null) { |
| | | return; |
| | | } |
| | | |
| | | luckyActivityOpenInfoManager.updateOpenInfo(openInfo, old.getActivityId()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public void deleteOpenInfo(Long id) { |
| | | luckyActivityOpenInfoManager.deleteOpenInfo(id); |
| | | LuckyActivityOpenInfo old = luckyActivityOpenInfoManager.getOpenInfoDetail(id); |
| | | if (old == null) { |
| | | return; |
| | | } |
| | | luckyActivityOpenInfoManager.deleteOpenInfo(id, old.getActivityId()); |
| | | } |
| | | } |