测试环境
This commit is contained in:
parent
567f0cea59
commit
4418e0d341
|
|
@ -69,7 +69,6 @@ public class ProductController extends BaseController {
|
||||||
* @param product
|
* @param product
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('tb:product:details')")
|
|
||||||
@PostMapping("/getDetails")
|
@PostMapping("/getDetails")
|
||||||
public AjaxResult getDetails(@RequestBody TbProduct product ){
|
public AjaxResult getDetails(@RequestBody TbProduct product ){
|
||||||
return service.getDetails(product) ;
|
return service.getDetails(product) ;
|
||||||
|
|
|
||||||
|
|
@ -37,12 +37,12 @@ public class LoginUserService {
|
||||||
if (StringUtils.isNull(user))
|
if (StringUtils.isNull(user))
|
||||||
{
|
{
|
||||||
log.info("登录用户:{} 不存在.", username);
|
log.info("登录用户:{} 不存在.", username);
|
||||||
throw new ServiceException(MessageUtils.message("登录用户不存在"));
|
throw new ServiceException("用户名/密码错误");
|
||||||
}
|
}
|
||||||
else if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
|
else if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
|
||||||
{
|
{
|
||||||
log.info("登录用户:{} 已被删除.", username);
|
log.info("登录用户:{} 已被删除.", username);
|
||||||
throw new ServiceException(MessageUtils.message("登录用户已被删除"));
|
throw new ServiceException("登录用户已被删除");
|
||||||
}
|
}
|
||||||
else if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
|
else if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -41,17 +41,17 @@ public class UserDetailsServiceImpl implements UserDetailsService
|
||||||
if (StringUtils.isNull(user))
|
if (StringUtils.isNull(user))
|
||||||
{
|
{
|
||||||
log.info("登录用户:{} 不存在.", username);
|
log.info("登录用户:{} 不存在.", username);
|
||||||
throw new ServiceException(MessageUtils.message("登录用户不存在"));
|
throw new ServiceException("用户名/密码错误");
|
||||||
}
|
}
|
||||||
else if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
|
else if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
|
||||||
{
|
{
|
||||||
log.info("登录用户:{} 已被删除.", username);
|
log.info("登录用户:{} 已被删除.", username);
|
||||||
throw new ServiceException(MessageUtils.message("登录用户已被删除"));
|
throw new ServiceException("登录用户已被删除");
|
||||||
}
|
}
|
||||||
else if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
|
else if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
|
||||||
{
|
{
|
||||||
log.info("登录用户:{} 已被停用.", username);
|
log.info("登录用户:{} 已被停用.", username);
|
||||||
throw new ServiceException(MessageUtils.message("登录用户已被删除"));
|
throw new ServiceException("登录用户已被删除");
|
||||||
}
|
}
|
||||||
|
|
||||||
passwordService.validate(user);
|
passwordService.validate(user);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue