设备信息树后端

master
zhouhy 1 year ago
parent 84d75200e1
commit ab9c707be7

@ -42,6 +42,7 @@ public class RecordDnbInstantController extends BaseController {
@GetMapping("/list")
public TableDataInfo list(RecordDnbInstant recordDnbInstant) {
startPage();
System.out.println(recordDnbInstant);
List<RecordDnbInstant> list = recordDnbInstantService.selectRecordDnbInstantList(recordDnbInstant);
return getDataTable(list);
}

@ -23,6 +23,8 @@ public class TreeSelects implements Serializable
/** 节点名称 */
private String label;
private String code;
/** 子节点 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List<TreeSelects> children;
@ -41,6 +43,7 @@ public class TreeSelects implements Serializable
public TreeSelects(BaseMonitorInfo baseMonitorInfo){
this.id = baseMonitorInfo.getObjId();
this.label = baseMonitorInfo.getMonitorName();
this.code = baseMonitorInfo.getMonitorCode();
this.children = baseMonitorInfo.getChildren().stream().map(TreeSelects::new).collect(Collectors.toList());
}
@ -51,6 +54,14 @@ public class TreeSelects implements Serializable
this.children = menu.getChildren().stream().map(TreeSelects::new).collect(Collectors.toList());
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Long getId()
{
return id;

@ -42,6 +42,7 @@ public class ReportPointDnbController extends BaseController {
@GetMapping("/list" )
public TableDataInfo list(ReportPointDnb reportPointDnb) {
startPage();
System.out.println(reportPointDnb);
List<ReportPointDnb> list = reportPointDnbService.selectReportPointDnbList(reportPointDnb);
return getDataTable(list);
}

Loading…
Cancel
Save