临时提交
parent
e078360928
commit
36f94593a4
|
@ -167,4 +167,25 @@ public class CommonChannelController {
|
||||||
Assert.notEmpty(param.getDeviceIds(),"参数异常");
|
Assert.notEmpty(param.getDeviceIds(),"参数异常");
|
||||||
channelService.deleteChannelToGroupByGbDevice(param.getDeviceIds());
|
channelService.deleteChannelToGroupByGbDevice(param.getDeviceIds());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "获取树节点", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||||
|
@Parameter(name = "parentId", description = "父节点ID", required = false)
|
||||||
|
@Parameter(name = "parentDeviceId", description = "父节点国标编号", required = false)
|
||||||
|
@Parameter(name = "showRegion", description = "显示行政区划", required = false)
|
||||||
|
@Parameter(name = "showGroup", description = "显示分组", required = false)
|
||||||
|
@GetMapping("/tree")
|
||||||
|
public List<CommonGBChannel> queryTree(
|
||||||
|
@RequestParam(required = false) Integer parentId,
|
||||||
|
@RequestParam(required = false) String parentDeviceId,
|
||||||
|
@RequestParam(required = false) Boolean showRegion,
|
||||||
|
@RequestParam(required = false) Boolean showGroup
|
||||||
|
){
|
||||||
|
if (showRegion == null) {
|
||||||
|
showRegion = false;
|
||||||
|
}
|
||||||
|
if (showGroup == null) {
|
||||||
|
showRegion = false;
|
||||||
|
}
|
||||||
|
return channelService.queryTree(parentId, parentDeviceId, showRegion, showGroup);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,4 +77,6 @@ public interface IGbChannelService {
|
||||||
CommonGBChannel queryOneWithPlatform(Integer platformId, String channelDeviceId);
|
CommonGBChannel queryOneWithPlatform(Integer platformId, String channelDeviceId);
|
||||||
|
|
||||||
void updateCivilCode(String oldCivilCode, String newCivilCode);
|
void updateCivilCode(String oldCivilCode, String newCivilCode);
|
||||||
|
|
||||||
|
List<CommonGBChannel> queryTree(Integer parentId, String parentDeviceId, Boolean showRegion, Boolean showGroup);
|
||||||
}
|
}
|
||||||
|
|
|
@ -675,4 +675,12 @@ public class GbChannelServiceImpl implements IGbChannelService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CommonGBChannel> queryTree(Integer parentId, String parentDeviceId, Boolean showRegion, Boolean showGroup) {
|
||||||
|
if (parentId == null || Objects.isNull(parentDeviceId)) {
|
||||||
|
// 查询顶级节点
|
||||||
|
}
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue