|
|
|
@ -136,6 +136,11 @@ public class LotteryService {
|
|
|
|
|
throw new BizException(ErrorConstants.TICKET_CITY_IS_REQUIRED);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 只能填写一个城市
|
|
|
|
|
if (lotteryRegionList.size() > 1) {
|
|
|
|
|
throw new BizException(ErrorConstants.ONLY_ONE_CITY);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Integer num = 0;
|
|
|
|
|
for (LotteryRegion lotteryRegion : lotteryRegionList) {
|
|
|
|
|
Region regionById = regionService.getRegionById(lotteryRegion.getRegionId());
|
|
|
|
@ -207,6 +212,11 @@ public class LotteryService {
|
|
|
|
|
throw new BizException(ErrorConstants.TICKET_CITY_IS_REQUIRED);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 只能填写一个城市
|
|
|
|
|
if (lotteryRegionList.size() > 1) {
|
|
|
|
|
throw new BizException(ErrorConstants.ONLY_ONE_CITY);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Integer num = 0;
|
|
|
|
|
|
|
|
|
|
lotteryRegionDao.deleteByLotteryId(id);
|
|
|
|
|