fix : 接口开关bug
This commit is contained in:
@@ -87,19 +87,23 @@ public class MappingSwitchVo {
|
|||||||
private String operName;
|
private String operName;
|
||||||
|
|
||||||
public static MappingSwitchVo toMappingSwitchVo(MappingSwitchInfo mappingSwitchInfo) {
|
public static MappingSwitchVo toMappingSwitchVo(MappingSwitchInfo mappingSwitchInfo) {
|
||||||
return MappingSwitchVo.builder()
|
MappingSwitchVo mappingSwitchVo = MappingSwitchVo.builder()
|
||||||
.key(mappingSwitchInfo.getKey())
|
.key(mappingSwitchInfo.getKey())
|
||||||
.applicationName(mappingSwitchInfo.getApplicationName())
|
.applicationName(mappingSwitchInfo.getApplicationName())
|
||||||
.className(mappingSwitchInfo.getClassName())
|
.className(mappingSwitchInfo.getClassName())
|
||||||
.description(mappingSwitchInfo.getDescription())
|
.description(mappingSwitchInfo.getDescription())
|
||||||
.methodName(mappingSwitchInfo.getMethodName())
|
.methodName(mappingSwitchInfo.getMethodName())
|
||||||
.uris(mappingSwitchInfo.getUris())
|
.uris(mappingSwitchInfo.getUris())
|
||||||
.type(mappingSwitchInfo.getType().toString())
|
|
||||||
.httpMethods(mappingSwitchInfo.getHttpMethods())
|
.httpMethods(mappingSwitchInfo.getHttpMethods())
|
||||||
.state(mappingSwitchInfo.getState())
|
.state(mappingSwitchInfo.getState())
|
||||||
.operName(mappingSwitchInfo.getOperName())
|
.operName(mappingSwitchInfo.getOperName())
|
||||||
.operTime(mappingSwitchInfo.getOperTime())
|
.operTime(mappingSwitchInfo.getOperTime())
|
||||||
.build();
|
.build();
|
||||||
|
MappingSwitchInfo.MappingSwitchType switchType = mappingSwitchInfo.getType();
|
||||||
|
if (switchType != null) {
|
||||||
|
mappingSwitchVo.setType(switchType.name());
|
||||||
|
}
|
||||||
|
return mappingSwitchVo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -307,7 +307,6 @@ public class UserServiceImpl implements UserService {
|
|||||||
batchUserPost(dto, Boolean.TRUE);
|
batchUserPost(dto, Boolean.TRUE);
|
||||||
dto.setPassword(null);
|
dto.setPassword(null);
|
||||||
UserBase user = dto.toUser();
|
UserBase user = dto.toUser();
|
||||||
|
|
||||||
return userMapper.update(user);
|
return userMapper.update(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user