|
@@ -13,7 +13,7 @@ import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.ImgVerVerVO;
|
|
|
-import com.diagbot.vo.UserImgVerVO;
|
|
|
+import com.diagbot.vo.UserSaveVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
import org.springframework.cache.annotation.CachePut;
|
|
@@ -38,11 +38,11 @@ public class UserFacade extends UserServiceImpl {
|
|
|
@Autowired
|
|
|
VerFacade verFacade;
|
|
|
|
|
|
- public User createUser(UserImgVerVO userImgVerVO){
|
|
|
+ public User createUser(UserSaveVO userSaveVO){
|
|
|
User user = new User();
|
|
|
- BeanUtil.copyProperties(userImgVerVO, user);
|
|
|
+ BeanUtil.copyProperties(userSaveVO, user);
|
|
|
ImgVerVerVO imgVerVerVO = new ImgVerVerVO();
|
|
|
- BeanUtil.copyProperties(userImgVerVO, imgVerVerVO);
|
|
|
+ BeanUtil.copyProperties(userSaveVO, imgVerVerVO);
|
|
|
User bean = findByName(user.getUsername());
|
|
|
if(bean != null) {
|
|
|
throw new CommonException(ServiceErrorCode.USER_EXIST);
|