|
|
@@ -1,17 +1,21 @@
|
|
|
package shop.alien.lawyer.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiOperationSupport;
|
|
|
import io.swagger.annotations.ApiSort;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import shop.alien.entity.result.R;
|
|
|
import shop.alien.entity.store.LawyerUser;
|
|
|
import shop.alien.entity.store.dto.LawyerUserDto;
|
|
|
import shop.alien.entity.store.vo.LawyerUserVo;
|
|
|
+import shop.alien.lawyer.config.BaseRedisService;
|
|
|
import shop.alien.lawyer.service.LawyerUserLogInService;
|
|
|
import shop.alien.mapper.LawyerUserMapper;
|
|
|
|
|
|
@@ -35,6 +39,7 @@ public class LawyerUserLogInController {
|
|
|
|
|
|
private final LawyerUserLogInService lawyerUserService;
|
|
|
private final LawyerUserMapper lawyerUserMapper;
|
|
|
+ private final BaseRedisService baseRedisService;
|
|
|
|
|
|
@ApiOperation("律师用户注册")
|
|
|
@ApiOperationSupport(order = 1)
|
|
|
@@ -93,11 +98,7 @@ public class LawyerUserLogInController {
|
|
|
if (lawyerUser.getStatus() == 0) {
|
|
|
return R.fail("账号被禁用");
|
|
|
}
|
|
|
- LawyerUser update = new LawyerUser();
|
|
|
- update.setPassword(lawyerUserDto.getPassWord());
|
|
|
- update.setId(lawyerUser.getId());
|
|
|
- lawyerUserMapper.updateById(update);
|
|
|
- return R.success("修改成功");
|
|
|
+ return lawyerUserService.updatePassWord(lawyerUserDto);
|
|
|
}catch (Exception e){
|
|
|
return R.fail("修改密码失败");
|
|
|
}
|