Commit 755c3f8c authored by 赵啸非's avatar 赵啸非

添加基础设备同步

parent 7fda7aef
...@@ -35,6 +35,12 @@ public class WindowBusinessVo extends BaseEntityLong { ...@@ -35,6 +35,12 @@ public class WindowBusinessVo extends BaseEntityLong {
*/ */
private List<Long> windowIdList; private List<Long> windowIdList;
/**
* 部门ID
*/
private Long deptId;
private String deptName;
/** /**
* 大厅ID * 大厅ID
*/ */
......
...@@ -59,12 +59,15 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus ...@@ -59,12 +59,15 @@ public class WindowBusinessServiceImpl extends AbstractCRUDServiceImpl<WindowBus
Iterator iterator = list.iterator(); Iterator iterator = list.iterator();
while (iterator.hasNext()) { while (iterator.hasNext()) {
WindowBusinessEntity item = (WindowBusinessEntity) iterator.next(); WindowBusinessEntity item = (WindowBusinessEntity) iterator.next();
if (!ObjectUtils.isEmpty(item.getWindowId()) && !ObjectUtils.isEmpty(collect.get(item.getWindowId()))) { WindowEntity windowEntity = collect.get(item.getWindowId());
item.setFromnum(collect.get(item.getWindowId()).getFromnum()); if (!ObjectUtils.isEmpty(item.getWindowId()) && !ObjectUtils.isEmpty(windowEntity)) {
item.setDeptId(windowEntity.getDeptId());
item.setDeptName(windowEntity.getDeptName());
item.setFromnum(windowEntity.getFromnum());
WindowHallEntity windowHallEntity = windowHallEntityMap.get(item.getWindowId()); WindowHallEntity windowHallEntity = windowHallEntityMap.get(item.getWindowId());
if(!ObjectUtils.isEmpty(windowHallEntity)){ if (!ObjectUtils.isEmpty(windowHallEntity)) {
item.setHallId( windowHallEntity.getWindowId()); item.setHallId(windowHallEntity.getWindowId());
item.setHallName( windowHallEntity.getHallName()); item.setHallName(windowHallEntity.getHallName());
} }
} else { } else {
iterator.remove(); iterator.remove();
......
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