设备信息树后端

master
zhouhy 12 months ago
parent 84d75200e1
commit ab9c707be7

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

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

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

Loading…
Cancel
Save