OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2021-11-11 9f7091d2bf6e1353e3e747f3db49a0b933c2bd1d
src/main/java/kr/wisestone/owl/web/condition/DepartmentCondition.java
@@ -2,6 +2,7 @@
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;
@@ -15,13 +16,21 @@
    private String departmentDescription;
    private Long departmentCount;
    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> departmentConditions) {
        return ConvertUtil.convertMapToClass(departmentConditions, DepartmentCondition.class);
        DepartmentCondition condition = ConvertUtil.convertMapToClass(departmentConditions, DepartmentCondition.class);
        if (MapUtil.getStrings(departmentConditions, "excludeIds") != null) {
            condition.setExcludeIds(MapUtil.getLongs(departmentConditions, "excludeIds"));
        }
        return condition;
    }
    public Long getId() {
@@ -79,4 +88,12 @@
    public void setDepartmentIds(List<Long> departmentIds) {
        this.departmentIds = departmentIds;
    }
    public List<Long> getExcludeIds() {
        return excludeIds;
    }
    public void setExcludeIds(List<Long> excludeIds) {
        this.excludeIds = excludeIds;
    }
}