Commit 40ea5c8a authored by 赵啸非's avatar 赵啸非

添加设备相关

parent 165cf1fb
Pipeline #2555 canceled with stages
...@@ -14,6 +14,6 @@ public class HomeQueryPdu { ...@@ -14,6 +14,6 @@ public class HomeQueryPdu {
private String title; private String title;
private String devicenum; private String deviceCode;
} }
...@@ -158,8 +158,8 @@ public class HomeController extends BaseJsonBodyController { ...@@ -158,8 +158,8 @@ public class HomeController extends BaseJsonBodyController {
DeptPdu deptPdu = new DeptPdu(); DeptPdu deptPdu = new DeptPdu();
deptPdu.setSiteId(queryPdu.getSiteId()); deptPdu.setSiteId(queryPdu.getSiteId());
deptPdu.setSize(-1); deptPdu.setSize(-1);
if(!ObjectUtils.isEmpty(queryPdu.getDevicenum())){ if(!ObjectUtils.isEmpty(queryPdu.getDeviceCode())){
List<Long> deptIdList = deviceMatterDatumService.find(new DeviceMatterDatumQuery().deviceCode(queryPdu.getDevicenum())).stream().map(item -> item.getDeptId()).collect(Collectors.toList()); List<Long> deptIdList = deviceMatterDatumService.find(new DeviceMatterDatumQuery().deviceCode(queryPdu.getDeviceCode())).stream().map(item -> item.getDeptId()).collect(Collectors.toList());
deptPdu.setIdList(deptIdList); deptPdu.setIdList(deptIdList);
} }
String resp = apiBaseManagerFeign.getDeptByQuery(deptPdu); String resp = apiBaseManagerFeign.getDeptByQuery(deptPdu);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment