...
|
...
|
@@ -20,6 +20,7 @@ import com.yoho.error.exception.ServiceException; |
|
|
import com.yoho.service.model.union.request.DrawRequestBO;
|
|
|
import com.yoho.service.model.union.response.DrawInfoResponseBO;
|
|
|
import com.yoho.service.model.user.other.response.DrawResponseBO;
|
|
|
import com.yoho.unions.common.enums.SexEnum;
|
|
|
import com.yoho.unions.common.utils.DateUtil;
|
|
|
import com.yoho.unions.common.utils.RandomUtil;
|
|
|
import com.yoho.unions.dal.IUserBaseDAO;
|
...
|
...
|
@@ -78,6 +79,12 @@ public class DrawServiceImpl implements DrawService { |
|
|
throw new ServiceException(ServiceError.USER_NOT_EXISTS);
|
|
|
}
|
|
|
|
|
|
//性别的值,只能是1或2
|
|
|
if (SexEnum.getNameByCode(request.getGender()) == null) {
|
|
|
log.warn("draw error gender is error with param is {}", request);
|
|
|
throw new ServiceException(ServiceError.PARAM_ERROR);
|
|
|
}
|
|
|
|
|
|
|
|
|
//通用的部分,男女都有
|
|
|
list.addAll(pDraw);
|
...
|
...
|
|