|
@@ -18,6 +18,7 @@ import com.xy.utils.*;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -39,6 +40,7 @@ import static com.xy.utils.PlusBeans.toPageBean;
|
|
|
* @author lijin
|
|
|
* @since 2023-01-12
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
@AllArgsConstructor
|
|
|
@Api(tags = "用户表")
|
|
@@ -111,11 +113,12 @@ public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> i
|
|
|
UserInfo userInfo = getOne(lambdaQueryWrapper);
|
|
|
if (userInfo != null) {
|
|
|
if (ObjectUtil.equals(userInfo.getTel(), save.getTel())) {
|
|
|
- return R.fail("手机号已存在!");
|
|
|
+ log.error("手机号:{},已存在", save.getTel());
|
|
|
}
|
|
|
if (ObjectUtil.equals(userInfo.getMail(), save.getMail())) {
|
|
|
- return R.fail("邮箱已存在!");
|
|
|
+ log.error("邮箱:{},已存在", save.getMail());
|
|
|
}
|
|
|
+ return R.ok(copy(UserInfoDto.Vo.class, userInfo));
|
|
|
}
|
|
|
//添加权限用户
|
|
|
AddDto addDto = copy(AddDto.class, save)
|