Commit 23b1fa58 authored by 曹盼盼's avatar 曹盼盼

修改设备认领接口

parent 0fbfc35d
...@@ -553,16 +553,24 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -553,16 +553,24 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
//企业 //企业
map.put("USE_UNIT_CREDIT_CODE", companyCode); map.put("USE_UNIT_CREDIT_CODE", companyCode);
m= idxFeignService.getPage(map); m= idxFeignService.getPage(map);
map.remove("USE_UNIT_CREDIT_CODE");
} else { } else {
//监管单位 //监管单位
map.put("ORG_BRANCH_CODE", code); map.put("ORG_BRANCH_CODE", code);
m = idxFeignService.getPage(map); m = idxFeignService.getPage(map);
map.remove("ORG_BRANCH_CODE");
}
if (!ValidationUtil.isEmpty(m)&&!ValidationUtil.isEmpty(m.getResult())&&!ValidationUtil.isEmpty(m.getResult().getRecords())) {
res.addAll(m.getResult().getRecords());
} }
} }
res.addAll(model.getResult().getRecords());
} }
model.getResult().setRecords(res);
Page<Map<String, Object>> objectPage = new Page<>();
objectPage.setRecords(res);
model.setResult(objectPage);
if (!ValidationUtil.isEmpty(res)) { if (!ValidationUtil.isEmpty(res)) {
model.getResult().setTotal(res.size()); model.getResult().setTotal(res.size());
} }
......
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