Merge pull request 'lvleigang' (#37) from lvleigang into dev
Reviewed-on: http://192.168.2.237:3000/root/kangarooDataCenterV3/pulls/37
This commit is contained in:
commit
495017c65b
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE sys_data_source ADD COLUMN data_state char(1) DEFAULT NULL COMMENT '数据源状态 0校验失败 1校验成功';
|
||||||
|
COMMIT;
|
|
@ -30,7 +30,8 @@ public class SysDataSourceEntity extends BaseEntity {
|
||||||
private String serviceName;
|
private String serviceName;
|
||||||
/** 使用状态1启用0锁定 */
|
/** 使用状态1启用0锁定 */
|
||||||
private Integer useState;
|
private Integer useState;
|
||||||
|
/** 数据源状态 1校验成功0校验失败 */
|
||||||
|
private Integer dataState;
|
||||||
|
|
||||||
public String getSourceCode() {
|
public String getSourceCode() {
|
||||||
return sourceCode;
|
return sourceCode;
|
||||||
|
@ -155,5 +156,13 @@ public class SysDataSourceEntity extends BaseEntity {
|
||||||
|
|
||||||
return sourceTypeName;
|
return sourceTypeName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getDataState() {
|
||||||
|
return dataState;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataState(Integer dataState) {
|
||||||
|
this.dataState = dataState;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
<result property="password" column="password" jdbcType="VARCHAR"/>
|
<result property="password" column="password" jdbcType="VARCHAR"/>
|
||||||
<result property="serviceName" column="service_name" jdbcType="VARCHAR"/>
|
<result property="serviceName" column="service_name" jdbcType="VARCHAR"/>
|
||||||
<result property="useState" column="use_state" jdbcType="INTEGER"/>
|
<result property="useState" column="use_state" jdbcType="INTEGER"/>
|
||||||
|
<result property="dataState" column="data_state" jdbcType="INTEGER"/>
|
||||||
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
|
||||||
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
|
||||||
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
|
||||||
|
@ -35,6 +36,7 @@
|
||||||
,password
|
,password
|
||||||
,service_name
|
,service_name
|
||||||
,use_state
|
,use_state
|
||||||
|
,data_state
|
||||||
,sorts
|
,sorts
|
||||||
,create_user_id
|
,create_user_id
|
||||||
,create_time
|
,create_time
|
||||||
|
@ -61,6 +63,7 @@
|
||||||
<if test="password != null and password != ''">and password = #{password}</if>
|
<if test="password != null and password != ''">and password = #{password}</if>
|
||||||
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
||||||
<if test="useState != null">and use_state = #{useState}</if>
|
<if test="useState != null">and use_state = #{useState}</if>
|
||||||
|
<if test="dataState != null">and data_state = #{dataState}</if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||||
|
@ -92,6 +95,7 @@
|
||||||
<if test="password != null and password != ''">and password = #{password}</if>
|
<if test="password != null and password != ''">and password = #{password}</if>
|
||||||
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
||||||
<if test="useState != null">and use_state = #{useState}</if>
|
<if test="useState != null">and use_state = #{useState}</if>
|
||||||
|
<if test="dataState != null">and data_state = #{dataState}</if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||||
|
@ -119,6 +123,7 @@
|
||||||
<if test="password != null and password != ''">and password = #{password}</if>
|
<if test="password != null and password != ''">and password = #{password}</if>
|
||||||
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
||||||
<if test="useState != null">and use_state = #{useState}</if>
|
<if test="useState != null">and use_state = #{useState}</if>
|
||||||
|
<if test="dataState != null">and data_state = #{dataState}</if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||||
|
@ -151,6 +156,7 @@
|
||||||
<if test="serviceName != null and serviceName != ''">and service_name like concat('%',#{serviceName},'%')
|
<if test="serviceName != null and serviceName != ''">and service_name like concat('%',#{serviceName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="useState != null">and use_state like concat('%',#{useState},'%')</if>
|
<if test="useState != null">and use_state like concat('%',#{useState},'%')</if>
|
||||||
|
<if test="dataState != null">and data_state like concat('%',#{dataState},'%')</if>
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
||||||
concat('%',#{create_user_id},'%')
|
concat('%',#{create_user_id},'%')
|
||||||
|
@ -184,6 +190,7 @@
|
||||||
password as password,
|
password as password,
|
||||||
service_name as serviceName,
|
service_name as serviceName,
|
||||||
use_state as useState
|
use_state as useState
|
||||||
|
data_state as dataState
|
||||||
from sys_data_source
|
from sys_data_source
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
|
||||||
|
@ -198,6 +205,7 @@
|
||||||
<if test="serviceName != null and serviceName != ''">and service_name like concat('%',#{serviceName},'%')
|
<if test="serviceName != null and serviceName != ''">and service_name like concat('%',#{serviceName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="useState != null">and use_state like concat('%',#{useState},'%')</if>
|
<if test="useState != null">and use_state like concat('%',#{useState},'%')</if>
|
||||||
|
<if test="dataState != null">and data_state like concat('%',#{dataState},'%')</if>
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
||||||
concat('%',#{create_user_id},'%')
|
concat('%',#{create_user_id},'%')
|
||||||
|
@ -228,6 +236,7 @@
|
||||||
password as password,
|
password as password,
|
||||||
service_name as serviceName,
|
service_name as serviceName,
|
||||||
use_state as useState
|
use_state as useState
|
||||||
|
data_state as dataState
|
||||||
from sys_data_source
|
from sys_data_source
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="id != null and id != ''">and id = #{id}</if>
|
<if test="id != null and id != ''">and id = #{id}</if>
|
||||||
|
@ -241,6 +250,7 @@
|
||||||
<if test="password != null and password != ''">and password = #{password}</if>
|
<if test="password != null and password != ''">and password = #{password}</if>
|
||||||
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
||||||
<if test="useState != null">and use_state = #{useState}</if>
|
<if test="useState != null">and use_state = #{useState}</if>
|
||||||
|
<if test="dataState != null">and data_state = #{dataState}</if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
|
||||||
<if test="create_time != null">and create_time = #{create_time}</if>
|
<if test="create_time != null">and create_time = #{create_time}</if>
|
||||||
|
@ -271,6 +281,7 @@
|
||||||
<if test="serviceName != null and serviceName != ''">and service_name like concat('%',#{serviceName},'%')
|
<if test="serviceName != null and serviceName != ''">and service_name like concat('%',#{serviceName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="useState != null">and use_state like concat('%',#{useState},'%')</if>
|
<if test="useState != null">and use_state like concat('%',#{useState},'%')</if>
|
||||||
|
<if test="dataState != null">and data_state like concat('%',#{dataState},'%')</if>
|
||||||
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
|
||||||
concat('%',#{create_user_id},'%')
|
concat('%',#{create_user_id},'%')
|
||||||
|
@ -304,6 +315,7 @@
|
||||||
<if test="password != null and password != ''">or password = #{password}</if>
|
<if test="password != null and password != ''">or password = #{password}</if>
|
||||||
<if test="serviceName != null and serviceName != ''">or service_name = #{serviceName}</if>
|
<if test="serviceName != null and serviceName != ''">or service_name = #{serviceName}</if>
|
||||||
<if test="useState != null">or use_state = #{useState}</if>
|
<if test="useState != null">or use_state = #{useState}</if>
|
||||||
|
<if test="dataState != null">or data_state = #{dataState}</if>
|
||||||
<if test="sorts != null">or sorts = #{sorts}</if>
|
<if test="sorts != null">or sorts = #{sorts}</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
|
||||||
<if test="create_time != null">or create_time = #{create_time}</if>
|
<if test="create_time != null">or create_time = #{create_time}</if>
|
||||||
|
@ -333,6 +345,7 @@
|
||||||
<if test="password != null and password != ''">password ,</if>
|
<if test="password != null and password != ''">password ,</if>
|
||||||
<if test="serviceName != null and serviceName != ''">service_name ,</if>
|
<if test="serviceName != null and serviceName != ''">service_name ,</if>
|
||||||
<if test="useState != null">use_state ,</if>
|
<if test="useState != null">use_state ,</if>
|
||||||
|
<if test="dataState != null">data_state ,</if>
|
||||||
<if test="sorts != null">sorts ,</if>
|
<if test="sorts != null">sorts ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
|
||||||
<if test="create_time != null">create_time ,</if>
|
<if test="create_time != null">create_time ,</if>
|
||||||
|
@ -356,6 +369,7 @@
|
||||||
<if test="password != null and password != ''">#{password} ,</if>
|
<if test="password != null and password != ''">#{password} ,</if>
|
||||||
<if test="serviceName != null and serviceName != ''">#{serviceName} ,</if>
|
<if test="serviceName != null and serviceName != ''">#{serviceName} ,</if>
|
||||||
<if test="useState != null">#{useState} ,</if>
|
<if test="useState != null">#{useState} ,</if>
|
||||||
|
<if test="dataState != null">#{dataState} ,</if>
|
||||||
<if test="sorts != null">#{sorts} ,</if>
|
<if test="sorts != null">#{sorts} ,</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
|
||||||
<if test="create_time != null">#{create_time} ,</if>
|
<if test="create_time != null">#{create_time} ,</if>
|
||||||
|
@ -373,21 +387,21 @@
|
||||||
<!-- 批量新增 -->
|
<!-- 批量新增 -->
|
||||||
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||||
insert into sys_data_source(source_code, source_name, source_ip, source_port, db_name, source_type, login_name,
|
insert into sys_data_source(source_code, source_name, source_ip, source_port, db_name, source_type, login_name,
|
||||||
password, service_name, use_state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id,
|
password, service_name, use_state, data_state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id,
|
||||||
sts)
|
sts)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.sourceCode},#{entity.sourceName},#{entity.sourceIp},#{entity.sourcePort},#{entity.dbName},#{entity.sourceType},#{entity.loginName},#{entity.password},#{entity.serviceName},#{entity.useState},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
(#{entity.sourceCode},#{entity.sourceName},#{entity.sourceIp},#{entity.sourcePort},#{entity.dbName},#{entity.sourceType},#{entity.loginName},#{entity.password},#{entity.serviceName},#{entity.useState},#{entity.dataState},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},
|
||||||
'Y')
|
'Y')
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
<!-- 批量新增或者修改-->
|
<!-- 批量新增或者修改-->
|
||||||
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||||
insert into sys_data_source(source_code, source_name, source_ip, source_port, db_name, source_type, login_name,
|
insert into sys_data_source(source_code, source_name, source_ip, source_port, db_name, source_type, login_name,
|
||||||
password, service_name, use_state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
password, service_name, use_state, data_state, sorts, create_user_id, create_time, modify_user_id, modify_time, sts, org_id)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.sourceCode},#{entity.sourceName},#{entity.sourceIp},#{entity.sourcePort},#{entity.dbName},#{entity.sourceType},#{entity.loginName},#{entity.password},#{entity.serviceName},#{entity.useState},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
(#{entity.sourceCode},#{entity.sourceName},#{entity.sourceIp},#{entity.sourcePort},#{entity.dbName},#{entity.sourceType},#{entity.loginName},#{entity.password},#{entity.serviceName},#{entity.useState},#{entity.dataState},#{entity.sorts},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id})
|
||||||
</foreach>
|
</foreach>
|
||||||
on duplicate key update
|
on duplicate key update
|
||||||
source_code = values(source_code),
|
source_code = values(source_code),
|
||||||
|
@ -400,6 +414,7 @@
|
||||||
password = values(password),
|
password = values(password),
|
||||||
service_name = values(service_name),
|
service_name = values(service_name),
|
||||||
use_state = values(use_state),
|
use_state = values(use_state),
|
||||||
|
data_state = values(data_state),
|
||||||
sorts = values(sorts),
|
sorts = values(sorts),
|
||||||
create_user_id = values(create_user_id),
|
create_user_id = values(create_user_id),
|
||||||
create_time = values(create_time),
|
create_time = values(create_time),
|
||||||
|
@ -422,6 +437,7 @@
|
||||||
<if test="password != null and password != ''">password = #{password},</if>
|
<if test="password != null and password != ''">password = #{password},</if>
|
||||||
<if test="serviceName != null and serviceName != ''">service_name = #{serviceName},</if>
|
<if test="serviceName != null and serviceName != ''">service_name = #{serviceName},</if>
|
||||||
<if test="useState != null">use_state = #{useState},</if>
|
<if test="useState != null">use_state = #{useState},</if>
|
||||||
|
<if test="dataState != null">data_state = #{dataState},</if>
|
||||||
<if test="sorts != null">sorts = #{sorts},</if>
|
<if test="sorts != null">sorts = #{sorts},</if>
|
||||||
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
|
||||||
<if test="create_time != null">create_time = #{create_time},</if>
|
<if test="create_time != null">create_time = #{create_time},</if>
|
||||||
|
@ -453,6 +469,7 @@ where id = #{id}
|
||||||
<if test="password != null and password != ''">and password = #{password}</if>
|
<if test="password != null and password != ''">and password = #{password}</if>
|
||||||
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
<if test="serviceName != null and serviceName != ''">and service_name = #{serviceName}</if>
|
||||||
<if test="useState != null">and use_state = #{useState}</if>
|
<if test="useState != null">and use_state = #{useState}</if>
|
||||||
|
<if test="dataState != null">and data_state = #{dataState}</if>
|
||||||
<if test="sorts != null">and sorts = #{sorts}</if>
|
<if test="sorts != null">and sorts = #{sorts}</if>
|
||||||
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
<if test="sts != null and sts != ''">and sts = #{sts}</if>
|
||||||
and sts='Y'
|
and sts='Y'
|
||||||
|
|
|
@ -88,40 +88,40 @@ public class EntranceServiceImpl implements IEntranceService {
|
||||||
try {
|
try {
|
||||||
StpUtil.checkLogin();
|
StpUtil.checkLogin();
|
||||||
//校验当前登陆人是否有权限
|
//校验当前登陆人是否有权限
|
||||||
boolean flag = false;
|
// 接口权限验证 开始
|
||||||
String userId = StpUtil.getLoginIdAsString();
|
//boolean flag = false;
|
||||||
//获取接口
|
//String userId = StpUtil.getLoginIdAsString();
|
||||||
SysInterfaceEntity sysInterfaceEntity = (SysInterfaceEntity) interfaceCache.get("6","beanName"+service+"interfacName"+serviceMethod);
|
////获取接口
|
||||||
if(sysInterfaceEntity == null || sysInterfaceEntity.getId() == null){
|
//SysInterfaceEntity sysInterfaceEntity = (SysInterfaceEntity) interfaceCache.get("6","beanName"+service+"interfacName"+serviceMethod);
|
||||||
//todo 接口权限验证
|
//if(sysInterfaceEntity == null || sysInterfaceEntity.getId() == null){
|
||||||
return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员");
|
// return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员");
|
||||||
}
|
//}
|
||||||
//查询用户权限
|
////查询用户权限
|
||||||
if(!flag){
|
//if(!flag){
|
||||||
SysPopedomInterfaceEntity userPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("4","userId"+userId+"interfaceId"+sysInterfaceEntity.getId());
|
// SysPopedomInterfaceEntity userPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("4","userId"+userId+"interfaceId"+sysInterfaceEntity.getId());
|
||||||
if(userPopedomInterfaceEntity != null && userPopedomInterfaceEntity.getId() != null ){
|
// if(userPopedomInterfaceEntity != null && userPopedomInterfaceEntity.getId() != null ){
|
||||||
flag = true;
|
// flag = true;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
//查询用户角色的权限
|
////查询用户角色的权限
|
||||||
if(!flag){
|
//if(!flag){
|
||||||
List<SysUserRolesEntity> userRoleMap = (List<SysUserRolesEntity>) interfaceCache.get("3",null);
|
// List<SysUserRolesEntity> userRoleMap = (List<SysUserRolesEntity>) interfaceCache.get("3",null);
|
||||||
if(userRoleMap != null && userRoleMap.size() > 0){
|
// if(userRoleMap != null && userRoleMap.size() > 0){
|
||||||
for (SysUserRolesEntity sysUserRolesEntity : userRoleMap) {
|
// for (SysUserRolesEntity sysUserRolesEntity : userRoleMap) {
|
||||||
if(sysUserRolesEntity.getUserId().equals(userId)){
|
// if(sysUserRolesEntity.getUserId().equals(userId)){
|
||||||
SysPopedomInterfaceEntity sysPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("5","roleId"+sysUserRolesEntity.getRoleId()+"interfaceId"+sysInterfaceEntity.getId());
|
// SysPopedomInterfaceEntity sysPopedomInterfaceEntity = (SysPopedomInterfaceEntity) interfaceCache.get("5","roleId"+sysUserRolesEntity.getRoleId()+"interfaceId"+sysInterfaceEntity.getId());
|
||||||
if(sysPopedomInterfaceEntity != null && sysPopedomInterfaceEntity.getId() != null ){
|
// if(sysPopedomInterfaceEntity != null && sysPopedomInterfaceEntity.getId() != null ){
|
||||||
flag = true;
|
// flag = true;
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
if(!flag){
|
//if(!flag){
|
||||||
//todo 接口权限验证
|
// return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员");
|
||||||
return BaseResult.getFailureMessageEntity("用户无访问权限,请联系管理员");
|
//}
|
||||||
}
|
// 接口权限验证 结束
|
||||||
} catch (NotLoginException e) {
|
} catch (NotLoginException e) {
|
||||||
logger.error("token无效");
|
logger.error("token无效");
|
||||||
return BaseResult.getFailureMessageEntity("token无效");
|
return BaseResult.getFailureMessageEntity("token无效");
|
||||||
|
|
Loading…
Reference in New Issue