From 3b019e5599dfb5d368f4e8fd50fb557f4679a645 Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 수, 12 1월 2022 15:19:58 +0900 Subject: [PATCH] 업체/isp/호스팅 기능 개편 --- src/main/java/kr/wisestone/owl/web/form/CompanyFieldForm.java | 115 +++++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 94 insertions(+), 21 deletions(-) diff --git a/src/main/java/kr/wisestone/owl/web/form/CompanyFieldForm.java b/src/main/java/kr/wisestone/owl/web/form/CompanyFieldForm.java index a872e89..7432c6c 100644 --- a/src/main/java/kr/wisestone/owl/web/form/CompanyFieldForm.java +++ b/src/main/java/kr/wisestone/owl/web/form/CompanyFieldForm.java @@ -4,15 +4,24 @@ import kr.wisestone.owl.util.ConvertUtil; import kr.wisestone.owl.util.MapUtil; +import java.util.ArrayList; import java.util.List; import java.util.Map; -public class CompanyFieldForm { - private Long id; - private String name; - private String tel; - private String email; +public class CompanyFieldForm extends UsePartnerForm { + private String manager; + private String url; private String memo; + private String tel; + private Long ispId; + private Long hostingId; + private Long companyTypeId; + private Long parentSectorId; + private Long childSectorId; + private Long regionId; + private Long statusId; + private String statusName; + private List<Long> removeIds = Lists.newArrayList(); public CompanyFieldForm() { @@ -20,26 +29,26 @@ public static CompanyFieldForm make(Map<String, Object> params) { CompanyFieldForm form = ConvertUtil.convertMapToClass(params, CompanyFieldForm.class); + if (MapUtil.getStrings(params, "tels") != null) { + form.setTelList(MapUtil.getStrings(params, "tels")); + } + + if (MapUtil.getStrings(params, "emails") != null) { + form.setEmailList(MapUtil.getStrings(params, "emails")); + } + if (MapUtil.getLongs(params,"removeIds") != null) { form.setRemoveIds(MapUtil.getLongs(params, "removeIds")); } return form; } - public Long getId() { - return id; + public String getManager() { + return manager; } - public void setId(Long id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; + public void setManager(String manager) { + this.manager = manager; } public String getTel() { @@ -50,12 +59,12 @@ this.tel = tel; } - public String getEmail() { - return email; + public String getUrl() { + return url; } - public void setEmail(String email) { - this.email = email; + public void setUrl(String url) { + this.url = url; } public String getMemo() { @@ -66,6 +75,22 @@ this.memo = memo; } + public Long getIspId() { + return ispId; + } + + public void setIspId(Long ispId) { + this.ispId = ispId; + } + + public Long getHostingId() { + return hostingId; + } + + public void setHostingId(Long hostingId) { + this.hostingId = hostingId; + } + public List<Long> getRemoveIds() { return removeIds; } @@ -73,4 +98,52 @@ public void setRemoveIds(List<Long> removeIds) { this.removeIds = removeIds; } + + public Long getCompanyTypeId() { + return companyTypeId; + } + + public void setCompanyTypeId(Long companyTypeId) { + this.companyTypeId = companyTypeId; + } + + public Long getParentSectorId() { + return parentSectorId; + } + + public void setParentSectorId(Long parentSectorId) { + this.parentSectorId = parentSectorId; + } + + public Long getChildSectorId() { + return childSectorId; + } + + public void setChildSectorId(Long childSectorId) { + this.childSectorId = childSectorId; + } + + public Long getRegionId() { + return regionId; + } + + public void setRegionId(Long regionId) { + this.regionId = regionId; + } + + public Long getStatusId() { + return statusId; + } + + public void setStatusId(Long statusId) { + this.statusId = statusId; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } } -- Gitblit v1.8.0