Commit 3a6b6476 authored by 赵啸非's avatar 赵啸非

添加照片海康下载

parent a2776f48
......@@ -85,7 +85,7 @@ public class WindowOwnerEntity extends WindowOwnerVo {
this.phone = "";
this.windowCount = -1;
this.windowCount = 0;
this.remark = "";
}
......
......@@ -42,6 +42,8 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
if (!ObjectUtils.isEmpty(entity.getWindowOwnerDetailList())) {
entity.setWindowCount(entity.getWindowOwnerDetailList().size());
}
DeptEntity deptEntity = deptService.get(entity.getId());
entity.setDeptName(deptEntity == null ? "" : deptEntity.getDeptName());
}
@Override
......@@ -60,9 +62,7 @@ public class WindowOwnerServiceImpl extends AbstractCRUDServiceImpl<WindowOwnerD
item.setCreateTime(new Date());
}).count();
DeptEntity deptEntity = deptService.get(entity.getId());
entity.setDeptName(deptEntity == null ? "" : deptEntity.getDeptName());
entity.setNumber(entity.getWindowOwnerDetailList().size() + "");
windowOwnerDetailService.save(entity.getWindowOwnerDetailList());
}
super.saveAfter(entity, context);
......
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