临时提交
This commit is contained in:
@@ -94,11 +94,12 @@ public class CommonChannelController {
|
||||
public PageInfo<CommonGBChannel> queryList(int page, int count,
|
||||
@RequestParam(required = false) String query,
|
||||
@RequestParam(required = false) Boolean online,
|
||||
@RequestParam(required = false) Boolean hasCivilCode){
|
||||
@RequestParam(required = false) Boolean hasCivilCode,
|
||||
@RequestParam(required = false) Boolean hasGroup){
|
||||
if (ObjectUtils.isEmpty(query)){
|
||||
query = null;
|
||||
}
|
||||
return channelService.queryList(page, count, query, online, hasCivilCode);
|
||||
return channelService.queryList(page, count, query, online, hasCivilCode, hasGroup);
|
||||
}
|
||||
|
||||
@Operation(summary = "通道设置行政区划", security = @SecurityRequirement(name = JwtUtils.HEADER))
|
||||
|
||||
@@ -73,21 +73,21 @@ public class GroupController {
|
||||
}
|
||||
}
|
||||
|
||||
@Operation(summary = "根据分组Id查询分组")
|
||||
@Parameter(name = "groupDeviceId", description = "分组节点编号", required = true)
|
||||
@ResponseBody
|
||||
@GetMapping("/one")
|
||||
public Group queryGroupByDeviceId(
|
||||
@RequestParam(required = true) String deviceId
|
||||
){
|
||||
Assert.hasLength(deviceId, "");
|
||||
return groupService.queryGroupByDeviceId(deviceId);
|
||||
}
|
||||
// @Operation(summary = "根据分组Id查询分组")
|
||||
// @Parameter(name = "groupDeviceId", description = "分组节点编号", required = true)
|
||||
// @ResponseBody
|
||||
// @GetMapping("/one")
|
||||
// public Group queryGroupByDeviceId(
|
||||
// @RequestParam(required = true) String deviceId
|
||||
// ){
|
||||
// Assert.hasLength(deviceId, "");
|
||||
// return groupService.queryGroupByDeviceId(deviceId);
|
||||
// }
|
||||
|
||||
@Operation(summary = "从通道中同步分组")
|
||||
@ResponseBody
|
||||
@GetMapping("/sync")
|
||||
public void sync(){
|
||||
groupService.syncFromChannel();
|
||||
}
|
||||
// @Operation(summary = "从通道中同步分组")
|
||||
// @ResponseBody
|
||||
// @GetMapping("/sync")
|
||||
// public void sync(){
|
||||
// groupService.syncFromChannel();
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user