From 91feac596cd6d3cdd2e0897d18af79482f12b68a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=9A=93=E9=9B=AF?= <18868469283@qq.com> Date: Fri, 11 Jan 2019 20:06:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/PmsProductAttributeCategoryItem.java | 21 +++ .../mall/dto/PmsProductAttributeParam.java | 134 ++++++++++++++++++ .../mall/dto/PmsProductCategoryParam.java | 118 +++++++++++++++ .../PmsProductCategoryWithChildrenItem.java | 20 +++ .../com/sock/mall/dto/PmsProductParam.java | 82 +++++++++++ .../sock/mall/dto/PmsProductQueryParam.java | 69 +++++++++ .../com/sock/mall/dto/PmsProductResult.java | 17 +++ 7 files changed, 461 insertions(+) create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeCategoryItem.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeParam.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryParam.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryWithChildrenItem.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductParam.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductQueryParam.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductResult.java diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeCategoryItem.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeCategoryItem.java new file mode 100644 index 0000000..b263219 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeCategoryItem.java @@ -0,0 +1,21 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.PmsProductAttribute; +import com.macro.mall.model.PmsProductAttributeCategory; + +import java.util.List; + +/** + * зԵdto + */ +public class PmsProductAttributeCategoryItem extends PmsProductAttributeCategory {//ƷԷϢ + private List productAttributeList; + + public List getProductAttributeList() {//ȡƷб + return productAttributeList; + } + + public void setProductAttributeList(List productAttributeList) {//༭Ʒб + this.productAttributeList = productAttributeList; + } +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeParam.java new file mode 100644 index 0000000..298a604 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductAttributeParam.java @@ -0,0 +1,134 @@ +package com.macro.mall.dto; + +import com.macro.mall.validator.FlagValidator; +import io.swagger.annotations.ApiModelProperty; +import org.hibernate.validator.constraints.NotEmpty; + +/** + * ƷԲ + */ +public class PmsProductAttributeParam { + @ApiModelProperty("ԷID") + @NotEmpty(message = "Է಻Ϊ") + private Long productAttributeCategoryId; + @ApiModelProperty("") + @NotEmpty(message = "ƲΪ") + private String name; + @ApiModelProperty("ѡͣ0->Ψһ1->ѡ2->ѡ") + @FlagValidator({"0","1","2"}) + private Integer selectType; + @ApiModelProperty("¼뷽ʽ0->ֹ¼룻1->бѡȡ") + @FlagValidator({"0","1"}) + private Integer inputType; + @ApiModelProperty("ѡֵбԶŸ") + private String inputList; + + private Integer sort; + @ApiModelProperty("ɸѡʽ0->ͨ1->ɫ") + @FlagValidator({"0","1"}) + private Integer filterType; + @ApiModelProperty("ͣ0->Ҫм1->ؼּ2->Χ") + @FlagValidator({"0","1","2"}) + private Integer searchType; + @ApiModelProperty("ͬԲƷǷ0->1->") + @FlagValidator({"0","1"}) + private Integer relatedStatus; + @ApiModelProperty("Ƿֶ֧0->֧֣1->֧") + @FlagValidator({"0","1"}) + private Integer handAddStatus; + @ApiModelProperty("Եͣ0->1->") + @FlagValidator({"0","1"}) + private Integer type; + + public Long getProductAttributeCategoryId() { + return productAttributeCategoryId; + } + + public void setProductAttributeCategoryId(Long productAttributeCategoryId) { + this.productAttributeCategoryId = productAttributeCategoryId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getSelectType() { + /*ȡ*/ + return selectType; + } + + public void setSelectType(Integer selectType) { + /*༭*/ + this.selectType = selectType; + } + + public Integer getInputType() { + return inputType; + } + + public void setInputType(Integer inputType) { + this.inputType = inputType; + } + + public String getInputList() { + /*ȡѡֵб*/ + return inputList; + } + + public void setInputList(String inputList) { + /*༭ѡֵб*/ + this.inputList = inputList; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Integer getFilterType() { + return filterType; + } + + public void setFilterType(Integer filterType) { + this.filterType = filterType; + } + + public Integer getSearchType() { + return searchType; + } + + public void setSearchType(Integer searchType) { + this.searchType = searchType; + } + + public Integer getRelatedStatus() { + return relatedStatus; + } + + public void setRelatedStatus(Integer relatedStatus) { + this.relatedStatus = relatedStatus; + } + + public Integer getHandAddStatus() { + return handAddStatus; + } + + public void setHandAddStatus(Integer handAddStatus) { + this.handAddStatus = handAddStatus; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryParam.java new file mode 100644 index 0000000..9c1a65e --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryParam.java @@ -0,0 +1,118 @@ +package com.macro.mall.dto; + +import com.macro.mall.validator.FlagValidator; +import io.swagger.annotations.ApiModelProperty; +import org.hibernate.validator.constraints.NotEmpty; + +import javax.validation.constraints.Min; +import java.util.List; + +/** + * Ӹ²ƷIJ + */ +public class PmsProductCategoryParam {//Ʒ + @ApiModelProperty("ı") + private Long parentId; + @ApiModelProperty(value = "Ʒ",required = true) + @NotEmpty(message = "ƷƲΪ") + private String name; + @ApiModelProperty("൥λ") + private String productUnit; + @ApiModelProperty("Ƿڵʾ") + @FlagValidator(value = {"0","1"},message = "״ֻ̬Ϊ01") + private Integer navStatus; + @ApiModelProperty("Ƿʾ") + @FlagValidator(value = {"0","1"},message = "״ֻ̬Ϊ01") + private Integer showStatus; + @ApiModelProperty("") + @Min(value = 0,message = "СΪ0") + private Integer sort; + @ApiModelProperty("ͼ") + private String icon; + @ApiModelProperty("ؼ") + private String keywords; + @ApiModelProperty("") + private String description; + @ApiModelProperty("ƷɸѡԼ") + private List productAttributeIdList; + + public Long getParentId() { + return parentId; + } + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getProductUnit() { + return productUnit; + } + + public void setProductUnit(String productUnit) { + this.productUnit = productUnit; + } + + public Integer getNavStatus() { + return navStatus; + } + + public void setNavStatus(Integer navStatus) { + this.navStatus = navStatus; + } + + public Integer getShowStatus() { + return showStatus; + } + + public void setShowStatus(Integer showStatus) { + this.showStatus = showStatus; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public String getKeywords() { + return keywords; + } + + public void setKeywords(String keywords) { + this.keywords = keywords; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public List getProductAttributeIdList() { + return productAttributeIdList; + } + + public void setProductAttributeIdList(List productAttributeIdList) { + this.productAttributeIdList = productAttributeIdList; + } +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryWithChildrenItem.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryWithChildrenItem.java new file mode 100644 index 0000000..6eac75e --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductCategoryWithChildrenItem.java @@ -0,0 +1,20 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.PmsProductCategory; + +import java.util.List; + +/** + *ƷӷϢ + */ +public class PmsProductCategoryWithChildrenItem extends PmsProductCategory { + private List children; + + public List getChildren() {//ȡӷ + return children; + } + + public void setChildren(List children) { + this.children = children; + } +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductParam.java new file mode 100644 index 0000000..e078980 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductParam.java @@ -0,0 +1,82 @@ +package com.macro.mall.dto; + +import com.macro.mall.model.*; +import io.swagger.annotations.ApiModelProperty; + +import java.util.List; + +/** + * ޸ƷʱʹõIJ + */ +public class PmsProductParam extends PmsProduct{ + @ApiModelProperty("Ʒݼ۸") + private List productLadderList; + @ApiModelProperty("Ʒ۸") + private List productFullReductionList; + @ApiModelProperty("ƷԱ۸") + private List memberPriceList; + @ApiModelProperty("ƷskuϢ") + private List skuStockList; + @ApiModelProperty("ƷԶ") + private List productAttributeValueList; + @ApiModelProperty("רƷϵ") + private List subjectProductRelationList; + @ApiModelProperty("ѡרƷĹϵ") + private List prefrenceAreaProductRelationList; + + public List getProductLadderList() { + return productLadderList; + } + + public void setProductLadderList(List productLadderList) { + this.productLadderList = productLadderList; + } + + public List getProductFullReductionList() { + return productFullReductionList; + } + + public void setProductFullReductionList(List productFullReductionList) { + this.productFullReductionList = productFullReductionList; + } + + public List getMemberPriceList() { + return memberPriceList; + } + + public void setMemberPriceList(List memberPriceList) { + this.memberPriceList = memberPriceList; + } + + public List getSkuStockList() { + return skuStockList; + } + + public void setSkuStockList(List skuStockList) { + this.skuStockList = skuStockList; + } + + public List getProductAttributeValueList() { + return productAttributeValueList; + } + + public void setProductAttributeValueList(List productAttributeValueList) { + this.productAttributeValueList = productAttributeValueList; + } + + public List getSubjectProductRelationList() { + return subjectProductRelationList; + } + + public void setSubjectProductRelationList(List subjectProductRelationList) { + this.subjectProductRelationList = subjectProductRelationList; + } + + public List getPrefrenceAreaProductRelationList() { + return prefrenceAreaProductRelationList; + } + + public void setPrefrenceAreaProductRelationList(List prefrenceAreaProductRelationList) { + this.prefrenceAreaProductRelationList = prefrenceAreaProductRelationList; + } +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductQueryParam.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductQueryParam.java new file mode 100644 index 0000000..fe61f8e --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductQueryParam.java @@ -0,0 +1,69 @@ +package com.macro.mall.dto; + +import io.swagger.annotations.ApiModelProperty; + +/** + * Ʒѯ + */ +public class PmsProductQueryParam { + @ApiModelProperty("ϼ״̬") + private Integer publishStatus; + @ApiModelProperty("״̬") + private Integer verifyStatus; + @ApiModelProperty("Ʒģؼ") + private String keyword; + @ApiModelProperty("Ʒ") + private String productSn; + @ApiModelProperty("Ʒ") + private Long productCategoryId; + @ApiModelProperty("ƷƷƱ") + private Long brandId; + + public Integer getPublishStatus() { + return publishStatus; + } + + public void setPublishStatus(Integer publishStatus) { + this.publishStatus = publishStatus; + } + + public Integer getVerifyStatus() { + return verifyStatus; + } + + public void setVerifyStatus(Integer verifyStatus) { + this.verifyStatus = verifyStatus; + } + + public String getKeyword() { + return keyword; + } + + public void setKeyword(String keyword) { + this.keyword = keyword; + } + + public String getProductSn() { + return productSn; + } + + public void setProductSn(String productSn) { + this.productSn = productSn; + } + + public Long getProductCategoryId() { + return productCategoryId; + } + + public void setProductCategoryId(Long productCategoryId) { + this.productCategoryId = productCategoryId; + } + + public Long getBrandId() { + return brandId; + } + + public void setBrandId(Long brandId) { + this.brandId = brandId; + } +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductResult.java b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductResult.java new file mode 100644 index 0000000..7cb327f --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dto/PmsProductResult.java @@ -0,0 +1,17 @@ +package com.macro.mall.dto; + +/** + * ѯƷ޸ʱصĽ + */ +public class PmsProductResult extends PmsProductParam { + //Ʒѡĸid + private Long cateParentId; + + public Long getCateParentId() { + return cateParentId; + } + + public void setCateParentId(Long cateParentId) { + this.cateParentId = cateParentId; + } +}