fix : 接口开关bug

This commit is contained in:
clay
2024-03-09 13:59:00 +08:00
parent 27ead40bb3
commit c0e7c5b349
2 changed files with 6 additions and 3 deletions

View File

@@ -87,19 +87,23 @@ public class MappingSwitchVo {
private String operName;
public static MappingSwitchVo toMappingSwitchVo(MappingSwitchInfo mappingSwitchInfo) {
return MappingSwitchVo.builder()
MappingSwitchVo mappingSwitchVo = MappingSwitchVo.builder()
.key(mappingSwitchInfo.getKey())
.applicationName(mappingSwitchInfo.getApplicationName())
.className(mappingSwitchInfo.getClassName())
.description(mappingSwitchInfo.getDescription())
.methodName(mappingSwitchInfo.getMethodName())
.uris(mappingSwitchInfo.getUris())
.type(mappingSwitchInfo.getType().toString())
.httpMethods(mappingSwitchInfo.getHttpMethods())
.state(mappingSwitchInfo.getState())
.operName(mappingSwitchInfo.getOperName())
.operTime(mappingSwitchInfo.getOperTime())
.build();
MappingSwitchInfo.MappingSwitchType switchType = mappingSwitchInfo.getType();
if (switchType != null) {
mappingSwitchVo.setType(switchType.name());
}
return mappingSwitchVo;
}

View File

@@ -307,7 +307,6 @@ public class UserServiceImpl implements UserService {
batchUserPost(dto, Boolean.TRUE);
dto.setPassword(null);
UserBase user = dto.toUser();
return userMapper.update(user);
}