Commit cad0c82b authored by 赵啸非's avatar 赵啸非

添加样表设备部门过滤

parent 8586d844
...@@ -6,7 +6,7 @@ import lombok.Data; ...@@ -6,7 +6,7 @@ import lombok.Data;
public class HomeQueryPdu { public class HomeQueryPdu {
private Long siteId; private Long siteId;
private String devicenum; private String deviceCode;
private Integer newSource; private Integer newSource;
} }
...@@ -132,8 +132,8 @@ public class HomeController extends BaseJsonBodyController { ...@@ -132,8 +132,8 @@ public class HomeController extends BaseJsonBodyController {
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 = iApiBaseManagerFeign.getDeptByQuery(deptPdu); String resp = iApiBaseManagerFeign.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