| | |
| | | package com.ks.daylucky.service.impl.remote; |
| | | |
| | | import com.beust.jcommander.ParameterException; |
| | | import com.ks.daylucky.exception.UserInfoException; |
| | | import com.ks.daylucky.mapper.UserInfoExtraMapper; |
| | | import com.ks.daylucky.mapper.UserInfoMapper; |
| | |
| | | import com.ks.daylucky.query.UserInfoQuery; |
| | | import com.ks.daylucky.service.UserInfoExtraService; |
| | | import com.ks.daylucky.service.UserInfoService; |
| | | import com.ks.lib.common.exception.ParamsException; |
| | | import com.ks.lucky.pojo.DO.BaseUser; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | |
| | | @Validated |
| | | @Override |
| | | public Long addUserInfo(@Valid UserInfo userInfo) throws ParameterException, UserInfoException { |
| | | public Long addUserInfo(@Valid UserInfo userInfo) throws ParamsException, UserInfoException { |
| | | UserInfo old = getUserInfo(userInfo.getAppId(), userInfo.getIdentifyCode()); |
| | | if (old != null) { |
| | | throw new UserInfoException(UserInfoException.CODE_EXIST, "用户已存在"); |