diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyNetinfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyNetinfoController.java index bc623b8..f05866a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyNetinfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/property/TdPropertyNetinfoController.java @@ -45,10 +45,10 @@ public class TdPropertyNetinfoController extends BaseController @RequiresPermissions("system:network:list") @PostMapping("/list") @ResponseBody - public TableDataInfo list(@RequestParam String netId) + public TableDataInfo list(TdPropertyNetinfo tdPropertyNetinfo) { startPage(); - List list = tdPropertyNetinfoService.selectTdPropertyNetinfoByNetId(netId); + List list = tdPropertyNetinfoService.selectTdPropertyNetinfoList(tdPropertyNetinfo); return getDataTable(list); } diff --git a/ruoyi-admin/src/main/resources/templates/system/network/netinfo/netinfo.html b/ruoyi-admin/src/main/resources/templates/system/network/netinfo/netinfo.html index 9e4fd56..c22de4b 100644 --- a/ruoyi-admin/src/main/resources/templates/system/network/netinfo/netinfo.html +++ b/ruoyi-admin/src/main/resources/templates/system/network/netinfo/netinfo.html @@ -84,6 +84,7 @@ updateUrl: prefix + "/edit/{id}", removeUrl: prefix + "/remove", exportUrl: prefix + "/export", + queryParams: queryParams, modalName: "涉密网络登记", columns: [{ checkbox: true @@ -146,6 +147,12 @@ }] }; $.table.init(options); + + function queryParams(params) { + var search = $.table.queryParams(params); + search.netId = [[${netId}]]; + return search; + } }); diff --git a/ruoyi-system/src/main/resources/mapper/system/TdPropertyNetinfoMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdPropertyNetinfoMapper.xml index 583c52d..7c84ce7 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdPropertyNetinfoMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdPropertyNetinfoMapper.xml @@ -27,12 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"