From 3d9ff1a9148d17898e6a8fd7eb2b5a88d21da69c Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 월, 06 12월 2021 17:31:04 +0900 Subject: [PATCH] 이슈 리스트에 이슈 데이터 모두 삭제시 '데이터 없음' 수정 --- src/main/java/kr/wisestone/owl/web/condition/DepartmentCondition.java | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 40 insertions(+), 2 deletions(-) diff --git a/src/main/java/kr/wisestone/owl/web/condition/DepartmentCondition.java b/src/main/java/kr/wisestone/owl/web/condition/DepartmentCondition.java index 0b20ebf..815b458 100644 --- a/src/main/java/kr/wisestone/owl/web/condition/DepartmentCondition.java +++ b/src/main/java/kr/wisestone/owl/web/condition/DepartmentCondition.java @@ -1,7 +1,10 @@ package kr.wisestone.owl.web.condition; +import com.google.common.collect.Lists; import kr.wisestone.owl.util.ConvertUtil; +import kr.wisestone.owl.util.MapUtil; +import java.util.List; import java.util.Map; /** @@ -12,12 +15,23 @@ private String departmentName; private String departmentDescription; private Long departmentCount; + private Long projectId; + + private List<Long> excludeIds = Lists.newArrayList(); + + private List<Long> departmentIds = Lists.newArrayList(); private Integer Page; private Integer PageSize; - public static DepartmentCondition make(Map<String, Object> departmentManageConditions) { - return ConvertUtil.convertMapToClass(departmentManageConditions, DepartmentCondition.class); + public static DepartmentCondition make(Map<String, Object> departmentConditions) { + DepartmentCondition condition = ConvertUtil.convertMapToClass(departmentConditions, DepartmentCondition.class); + + if (MapUtil.getStrings(departmentConditions, "excludeIds") != null) { + condition.setExcludeIds(MapUtil.getLongs(departmentConditions, "excludeIds")); + } + + return condition; } public Long getId() { @@ -52,6 +66,14 @@ this.departmentCount = departmentCount; } + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + public Integer getPage() { return Page; } @@ -67,4 +89,20 @@ public void setPageSize(Integer pageSize) { PageSize = pageSize; } + + public List<Long> getDepartmentIds() { + return departmentIds; + } + + public void setDepartmentIds(List<Long> departmentIds) { + this.departmentIds = departmentIds; + } + + public List<Long> getExcludeIds() { + return excludeIds; + } + + public void setExcludeIds(List<Long> excludeIds) { + this.excludeIds = excludeIds; + } } -- Gitblit v1.8.0