diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/123 b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/123 new file mode 100644 index 0000000..55673f4 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/123 @@ -0,0 +1,64 @@ +package com.macro.mall.model; + +import io.swagger.annotations.ApiModelProperty; +import java.io.Serializable; +import java.math.BigDecimal; + +public class PmsProductFullReduction implements Serializable { + private Long id; + + private Long productId; + + private BigDecimal fullPrice; + + private BigDecimal reducePrice; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getProductId() { + return productId; + } + + public void setProductId(Long productId) { + this.productId = productId; + } + + public BigDecimal getFullPrice() { + return fullPrice; + } + + public void setFullPrice(BigDecimal fullPrice) { + this.fullPrice = fullPrice; + } + + public BigDecimal getReducePrice() { + return reducePrice; + } + + public void setReducePrice(BigDecimal reducePrice) { + this.reducePrice = reducePrice; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", productId=").append(productId); + sb.append(", fullPrice=").append(fullPrice); + sb.append(", reducePrice=").append(reducePrice); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsAttributeGroup.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsAttributeGroup.java deleted file mode 100644 index 26449e0..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsAttributeGroup.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 属性与组中间对象 as_attribute_group - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("as_attribute_group") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "AsAttributeGroup", description = "属性与组中间") -public class AsAttributeGroup extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 组ID */ - @Excel(name = "组ID") - @ApiModelProperty(name = "组ID", value = "组ID", required = true) - private Long groupId; - - /** 属性id */ - @Excel(name = "属性id") - @ApiModelProperty(name = "属性id", value = "属性id", required = true) - private Long attributeId; - - - public static AsAttributeGroup buildGroup (Long attributeGroupId, - Long attributeId) { - return AsAttributeGroup.builder() - .groupId(attributeGroupId) - .attributeId(attributeId) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsBrandProject.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsBrandProject.java deleted file mode 100644 index 6a89687..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsBrandProject.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品牌商品中间对象 as_brand_project - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("as_brand_project") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "AsBrandProject", description = "品牌商品中间") -public class AsBrandProject extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 品牌id */ - @Excel(name = "品牌id") - @ApiModelProperty(name = "品牌id", value = "品牌id", required = true) - private Long brandId; - - /** 商品id */ - @Excel(name = "商品id") - @ApiModelProperty(name = "商品id", value = "商品id", required = true) - private String projectId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryAttribute.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryAttribute.java deleted file mode 100644 index c32cdd8..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryAttribute.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.base.CategoryBase; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品类属性中间对象 as_category_attribute - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("as_category_attribute") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "AsCategoryAttribute", description = "品类属性中间") -public class AsCategoryAttribute extends BaseEntity implements CategoryBase { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 品类id */ - @Excel(name = "品类id") - @ApiModelProperty(name = "品类id", value = "品类id", required = true) - private Long categoryId; - - /** 属性id */ - @Excel(name = "属性id") - @ApiModelProperty(name = "属性id", value = "属性id", required = true) - private Long attributeId; - - - public static AsCategoryAttribute categoryBuild(Long categoryInfoId, Long attributeId) { - return AsCategoryAttribute.builder() - .categoryId(categoryInfoId) - .attributeId(attributeId) - .build(); - } - - @Override - public Long getBaseId () { - return this.attributeId; - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryAttributeGroup.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryAttributeGroup.java deleted file mode 100644 index 7e4ccf7..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryAttributeGroup.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.base.CategoryBase; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品类属性组中间对象 as_category_attribute_group - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("as_category_attribute_group") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "AsCategoryAttributeGroup", description = "品类属性组中间") -public class AsCategoryAttributeGroup extends BaseEntity implements CategoryBase { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 品类id */ - @Excel(name = "品类id") - @ApiModelProperty(name = "品类id", value = "品类id", required = true) - private Long categoryId; - - /** 属性组 */ - @Excel(name = "属性组") - @ApiModelProperty(name = "属性组", value = "属性组", required = true) - private Long attributeGroupId; - - - public static AsCategoryAttributeGroup categoryBuild(Long categoryInfoId, Long attributeGroupId) { - return AsCategoryAttributeGroup.builder() - .attributeGroupId(attributeGroupId) - .categoryId(categoryInfoId) - .build(); - } - - @Override - public Long getBaseId () { - return this.attributeGroupId; - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryBrand.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryBrand.java deleted file mode 100644 index 9a0da88..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsCategoryBrand.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.base.CategoryBase; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品类品牌中间对象 as_category_brand - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("as_category_brand") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "AsCategoryBrand", description = "品类品牌中间") -public class AsCategoryBrand extends BaseEntity implements CategoryBase { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 品类id */ - @Excel(name = "品类id") - @ApiModelProperty(name = "品类id", value = "品类id", required = true) - private Long categoryId; - - /** 品牌id */ - @Excel(name = "品牌id") - @ApiModelProperty(name = "品牌id", value = "品牌id", required = true) - private Long brandId; - - public static AsCategoryBrand categoryBuild(Long categoryInfoId, Long brandId) { - return AsCategoryBrand.builder() - .brandId(brandId) - .categoryId(categoryInfoId) - .build(); - } - - @Override - public Long getBaseId () { - return this.brandId; - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsProductAttributeInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsProductAttributeInfo.java deleted file mode 100644 index 0098d21..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AsProductAttributeInfo.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品属性对象 as_product_attribute_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("as_product_attribute_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "AsProductAttributeInfo", description = "商品属性") -public class AsProductAttributeInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 属性编号 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "属性编号", value = "属性编号") - private Long id; - - /** 商品 */ - @Excel(name = "商品") - @ApiModelProperty(name = "商品", value = "商品", required = true) - private Long productId; - - /** 属性 */ - @Excel(name = "属性") - @ApiModelProperty(name = "属性", value = "属性", required = true) - private Long attributeId; - - /** 属性值 */ - @Excel(name = "属性值") - @ApiModelProperty(name = "属性值", value = "属性值", required = true) - private String value; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AttributeGroup.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AttributeGroup.java deleted file mode 100644 index b232a55..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AttributeGroup.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.req.AttributeGroupEditReq; -import com.muyu.product.domain.req.AttributeGroupQueryReq; -import com.muyu.product.domain.req.AttributeGroupSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 属性组对象 attribute_group - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("attribute_group") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "AttributeGroup", description = "属性组") -public class AttributeGroup extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 属性组编号 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "属性组编号", value = "属性组编号") - private Long id; - - /** 组名称 */ - @Excel(name = "组名称") - @ApiModelProperty(name = "组名称", value = "组名称", required = true) - private String name; - - /** 状态 */ - @Excel(name = "状态") - @ApiModelProperty(name = "状态", value = "状态", required = true) - private String states; - - - /** - * 查询构造器 - */ - public static AttributeGroup queryBuild( AttributeGroupQueryReq attributeGroupQueryReq){ - return AttributeGroup.builder() - .name(attributeGroupQueryReq.getName()) - .states(attributeGroupQueryReq.getStates()) - .build(); - } - - /** - * 添加构造器 - */ - public static AttributeGroup saveBuild(AttributeGroupSaveReq attributeGroupSaveReq){ - return AttributeGroup.builder() - .name(attributeGroupSaveReq.getName()) - .states(attributeGroupSaveReq.getStates()) - .build(); - } - - /** - * 修改构造器 - */ - public static AttributeGroup editBuild(Long id, AttributeGroupEditReq attributeGroupEditReq){ - return AttributeGroup.builder() - .id(id) - .name(attributeGroupEditReq.getName()) - .states(attributeGroupEditReq.getStates()) - .build(); - } - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AttributeInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AttributeInfo.java deleted file mode 100644 index 529efae..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/AttributeInfo.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.core.conditions.Wrapper; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.model.TemplateAttributeModel; -import com.muyu.product.domain.req.AttributeInfoEditReq; -import com.muyu.product.domain.req.AttributeInfoQueryReq; -import com.muyu.product.domain.req.AttributeInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品属性对象 attribute_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("attribute_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "AttributeInfo", description = "商品属性") -public class AttributeInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 属性编号 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "属性编号", value = "属性编号") - private Long id; - - /** 属性编码 */ - @Excel(name = "属性编码") - @ApiModelProperty(name = "属性编码", value = "属性编码", required = true) - private String code; - - /** 属性名 */ - @Excel(name = "属性名") - @ApiModelProperty(name = "属性名", value = "属性名", required = true) - private String name; - - - public TemplateAttributeModel buildTemplateModel(){ - return TemplateAttributeModel.builder() - .id(this.getId()) - .code(this.getCode()) - .name(this.getName()) - .build(); - } - - /** - * 查询构造器 - */ - public static AttributeInfo queryBuild( AttributeInfoQueryReq attributeInfoQueryReq){ - return AttributeInfo.builder() - .name(attributeInfoQueryReq.getName()) - .code(attributeInfoQueryReq.getCode()) - .build(); - } - - /** - * 添加构造器 - */ - public static AttributeInfo saveBuild(AttributeInfoSaveReq attributeInfoSaveReq){ - return AttributeInfo.builder() - .name(attributeInfoSaveReq.getName()) - .code(attributeInfoSaveReq.getCode()) - .build(); - } - - /** - * 修改构造器 - */ - public static AttributeInfo editBuild(Long id, AttributeInfoEditReq attributeInfoEditReq){ - return AttributeInfo.builder() - .id(id) - .name(attributeInfoEditReq.getName()) - .code(attributeInfoEditReq.getCode()) - .build(); - } - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/BrandInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/BrandInfo.java deleted file mode 100644 index 9bf829a..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/BrandInfo.java +++ /dev/null @@ -1,114 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.req.BrandInfoEditReq; -import com.muyu.product.domain.req.BrandInfoQueryReq; -import com.muyu.product.domain.req.BrandInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品牌信息对象 brand_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("brand_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "BrandInfo", description = "品牌信息") -public class BrandInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** - * 主键 - */ - @TableId(value = "id", type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** - * 品牌名称 - */ - @Excel(name = "品牌名称") - @ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true) - private String name; - - /** - * LOGO - */ - @Excel(name = "LOGO") - @ApiModelProperty(name = "LOGO", value = "LOGO", required = true) - private String logo; - - /** - * 是否启用 - */ - @Excel(name = "是否启用") - @ApiModelProperty(name = "是否启用", value = "是否启用", required = true) - private String start; - - /** - * 介绍 - */ - @Excel(name = "介绍") - @ApiModelProperty(name = "介绍", value = "介绍") - private String introduction; - - /** - * 查询构造器 - */ - public static BrandInfo queryBuild(BrandInfoQueryReq brandInfoQueryReq) { - return BrandInfo.builder() - .name(brandInfoQueryReq.getName()) - .logo(brandInfoQueryReq.getLogo()) - .start(brandInfoQueryReq.getStart()) - .introduction(brandInfoQueryReq.getIntroduction()) - .build(); - } - - /** - * 添加构造器 - */ - public static BrandInfo saveBuild(BrandInfoSaveReq brandInfoSaveReq) { - return BrandInfo.builder() - .name(brandInfoSaveReq.getName()) - .logo(brandInfoSaveReq.getLogo()) - .start(brandInfoSaveReq.getStart()) - .introduction(brandInfoSaveReq.getIntroduction()) - .remark(brandInfoSaveReq.getRemark()) - .build(); - } - - /** - * 修改构造器 - */ - public static BrandInfo editBuild(Long id, BrandInfoEditReq brandInfoEditReq) { - return BrandInfo.builder() - .id(id) - .name(brandInfoEditReq.getName()) - .logo(brandInfoEditReq.getLogo()) - .start(brandInfoEditReq.getStart()) - .introduction(brandInfoEditReq.getIntroduction()) - .createBy(brandInfoEditReq.getCreateBy()) - .createTime(brandInfoEditReq.getCreateTime()) - .updateBy(brandInfoEditReq.getUpdateBy()) - .createTime(brandInfoEditReq.getCreateTime()) - .remark(brandInfoEditReq.getRemark()) - .build(); - } - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CategoryInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CategoryInfo.java deleted file mode 100644 index f50dae7..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CategoryInfo.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.TreeEntity; -import com.muyu.product.domain.model.CategoryInfoSaveModel; -import com.muyu.product.domain.req.CategoryInfoEditReq; -import com.muyu.product.domain.req.CategoryInfoQueryReq; -import com.muyu.product.domain.req.CategoryInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.Date; -import java.util.function.Supplier; - -/** - * 品类信息对象 category_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("category_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "CategoryInfo", description = "品类信息") -public class CategoryInfo extends TreeEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 品类名称 */ - @Excel(name = "品类名称") - @ApiModelProperty(name = "品类名称", value = "品类名称", required = true) - private String name; - - /** 图片 */ - @Excel(name = "图片") - @ApiModelProperty(name = "图片", value = "图片", required = true) - private String image; - - /** 是否启用 */ - @Excel(name = "是否启用") - @ApiModelProperty(name = "是否启用", value = "是否启用", required = true) - private String start; - - /** 介绍 */ - @Excel(name = "介绍") - @ApiModelProperty(name = "介绍", value = "介绍") - private String introduction; - - /** - * 查询构造器 - */ - public static CategoryInfo queryBuild( CategoryInfoQueryReq categoryInfoQueryReq){ - return CategoryInfo.builder() - .name(categoryInfoQueryReq.getName()) - .image(categoryInfoQueryReq.getImage()) - .start(categoryInfoQueryReq.getStart()) - .introduction(categoryInfoQueryReq.getIntroduction()) - .build(); - } - - /** - * 添加构造器 - */ - public static CategoryInfo saveBuild(CategoryInfoSaveReq categoryInfoSaveReq, Supplier supplier){ - return CategoryInfo.builder() - .name(categoryInfoSaveReq.getName()) - .image(categoryInfoSaveReq.getImage()) - .start(categoryInfoSaveReq.getStart()) - .introduction(categoryInfoSaveReq.getIntroduction()) - .parentId(categoryInfoSaveReq.getParentId()) - .createBy(supplier.get()) - .createTime(new Date()) - .build(); - } - - /** - * 修改构造器 - */ - public static CategoryInfo editBuild(Long id, CategoryInfoEditReq categoryInfoEditReq){ - return CategoryInfo.builder() - .id(id) - .name(categoryInfoEditReq.getName()) - .image(categoryInfoEditReq.getImage()) - .start(categoryInfoEditReq.getStart()) - .introduction(categoryInfoEditReq.getIntroduction()) - .build(); - } - - public static CategoryInfo saveModelBuild(CategoryInfoSaveModel categoryInfoSaveModel) { - return CategoryInfo.builder() - .name(categoryInfoSaveModel.getName()) - .image(categoryInfoSaveModel.getImage()) - .start(categoryInfoSaveModel.getStart()) - .introduction(categoryInfoSaveModel.getIntroduction()) - .parentId(categoryInfoSaveModel.getParentId()) - .createBy(categoryInfoSaveModel.getCreateBy()) - .createTime(new Date()) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CommentInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CommentInfo.java deleted file mode 100644 index 8de6f97..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CommentInfo.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.req.CommentInfoEditReq; -import com.muyu.product.domain.req.CommentInfoQueryReq; -import com.muyu.product.domain.req.CommentInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品评论对象 comment_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("comment_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "CommentInfo", description = "商品评论") -public class CommentInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 商品id */ - @Excel(name = "商品id") - @ApiModelProperty(name = "商品id", value = "商品id", required = true) - private Long projectId; - - /** 评论 */ - @Excel(name = "评论") - @ApiModelProperty(name = "评论", value = "评论") - private String comment; - - /** 图片 */ - @Excel(name = "图片") - @ApiModelProperty(name = "图片", value = "图片") - private String images; - - /** 父类id */ - @Excel(name = "父类id") - @ApiModelProperty(name = "父类id", value = "父类id") - private String parentId; - - /** - * 查询构造器 - */ - public static CommentInfo queryBuild( CommentInfoQueryReq commentInfoQueryReq){ - return CommentInfo.builder() - .projectId(commentInfoQueryReq.getProjectId()) - .comment(commentInfoQueryReq.getComment()) - .images(commentInfoQueryReq.getImages()) - .parentId(commentInfoQueryReq.getParentId()) - .build(); - } - - /** - * 添加构造器 - */ - public static CommentInfo saveBuild(CommentInfoSaveReq commentInfoSaveReq){ - return CommentInfo.builder() - .projectId(commentInfoSaveReq.getProjectId()) - .comment(commentInfoSaveReq.getComment()) - .images(commentInfoSaveReq.getImages()) - .parentId(commentInfoSaveReq.getParentId()) - .build(); - } - - /** - * 修改构造器 - */ - public static CommentInfo editBuild(Long id, CommentInfoEditReq commentInfoEditReq){ - return CommentInfo.builder() - .id(id) - .projectId(commentInfoEditReq.getProjectId()) - .comment(commentInfoEditReq.getComment()) - .images(commentInfoEditReq.getImages()) - .parentId(commentInfoEditReq.getParentId()) - .build(); - } - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CommentLikeInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CommentLikeInfo.java deleted file mode 100644 index 43be272..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/CommentLikeInfo.java +++ /dev/null @@ -1,82 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.req.CommentLikeInfoEditReq; -import com.muyu.product.domain.req.CommentLikeInfoQueryReq; -import com.muyu.product.domain.req.CommentLikeInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 评论点赞对象 comment_like_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("comment_like_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "CommentLikeInfo", description = "评论点赞") -public class CommentLikeInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 评论id */ - @Excel(name = "评论id") - @ApiModelProperty(name = "评论id", value = "评论id", required = true) - private Long commentId; - - /** 点赞人id */ - @Excel(name = "点赞人id") - @ApiModelProperty(name = "点赞人id", value = "点赞人id", required = true) - private Long userId; - - /** - * 查询构造器 - */ - public static CommentLikeInfo queryBuild( CommentLikeInfoQueryReq commentLikeInfoQueryReq){ - return CommentLikeInfo.builder() - .commentId(commentLikeInfoQueryReq.getCommentId()) - .userId(commentLikeInfoQueryReq.getUserId()) - .build(); - } - - /** - * 添加构造器 - */ - public static CommentLikeInfo saveBuild(CommentLikeInfoSaveReq commentLikeInfoSaveReq){ - return CommentLikeInfo.builder() - .commentId(commentLikeInfoSaveReq.getCommentId()) - .userId(commentLikeInfoSaveReq.getUserId()) - .build(); - } - - /** - * 修改构造器 - */ - public static CommentLikeInfo editBuild(Long id, CommentLikeInfoEditReq commentLikeInfoEditReq){ - return CommentLikeInfo.builder() - .id(id) - .commentId(commentLikeInfoEditReq.getCommentId()) - .userId(commentLikeInfoEditReq.getUserId()) - .build(); - } - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/ProjectInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/ProjectInfo.java deleted file mode 100644 index 08c24d4..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/ProjectInfo.java +++ /dev/null @@ -1,146 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.req.ProjectInfoEditReq; -import com.muyu.product.domain.req.ProjectInfoQueryReq; -import com.muyu.product.domain.req.ProjectInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品信息对象 project_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("project_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "ProjectInfo", description = "商品信息") -public class ProjectInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 商品名称 */ - @Excel(name = "商品名称") - @ApiModelProperty(name = "商品名称", value = "商品名称") - private String name; - - /** 商品描述 */ - @Excel(name = "商品描述") - @ApiModelProperty(name = "商品描述", value = "商品描述") - private String introduction; - - /** 主类型 */ - @Excel(name = "主类型") - @ApiModelProperty(name = "主类型", value = "主类型") - private String mianType; - - /** 父类型 */ - @Excel(name = "父类型") - @ApiModelProperty(name = "父类型", value = "父类型") - private String parentType; - - /** 商品类型 */ - @Excel(name = "商品类型") - @ApiModelProperty(name = "商品类型", value = "商品类型") - private String type; - - /** 商品图片 */ - @Excel(name = "商品图片") - @ApiModelProperty(name = "商品图片", value = "商品图片") - private String image; - - /** 商品轮播图 */ - @Excel(name = "商品轮播图") - @ApiModelProperty(name = "商品轮播图", value = "商品轮播图") - private String carouselImages; - - /** 商品状态 */ - @Excel(name = "商品状态") - @ApiModelProperty(name = "商品状态", value = "商品状态") - private String status; - - /** 规格 */ - @Excel(name = "规格") - @ApiModelProperty(name = "规格", value = "规格") - private Long ruleId; - - /** 品牌 */ - @Excel(name = "品牌") - @ApiModelProperty(name = "品牌", value = "品牌") - private Long brandId; - - /** - * 查询构造器 - */ - public static ProjectInfo queryBuild( ProjectInfoQueryReq projectInfoQueryReq){ - return ProjectInfo.builder() - .name(projectInfoQueryReq.getName()) - .introduction(projectInfoQueryReq.getIntroduction()) - .mianType(projectInfoQueryReq.getMianType()) - .parentType(projectInfoQueryReq.getParentType()) - .type(projectInfoQueryReq.getType()) - .image(projectInfoQueryReq.getImage()) - .carouselImages(projectInfoQueryReq.getCarouselImages()) - .status(projectInfoQueryReq.getStatus()) - .ruleId(projectInfoQueryReq.getRuleId()) - .brandId(projectInfoQueryReq.getBrandId()) - .build(); - } - - /** - * 添加构造器 - */ - public static ProjectInfo saveBuild(ProjectInfoSaveReq projectInfoSaveReq){ - return ProjectInfo.builder() - .name(projectInfoSaveReq.getName()) - .introduction(projectInfoSaveReq.getIntroduction()) - .mianType(projectInfoSaveReq.getMianType()) - .parentType(projectInfoSaveReq.getParentType()) - .type(projectInfoSaveReq.getType()) - .image(projectInfoSaveReq.getImage()) - .carouselImages(projectInfoSaveReq.getCarouselImages()) - .status(projectInfoSaveReq.getStatus()) - .ruleId(projectInfoSaveReq.getRuleId()) - .brandId(projectInfoSaveReq.getBrandId()) - .build(); - } - - /** - * 修改构造器 - */ - public static ProjectInfo editBuild(Long id, ProjectInfoEditReq projectInfoEditReq){ - return ProjectInfo.builder() - .id(id) - .name(projectInfoEditReq.getName()) - .introduction(projectInfoEditReq.getIntroduction()) - .mianType(projectInfoEditReq.getMianType()) - .parentType(projectInfoEditReq.getParentType()) - .type(projectInfoEditReq.getType()) - .image(projectInfoEditReq.getImage()) - .carouselImages(projectInfoEditReq.getCarouselImages()) - .status(projectInfoEditReq.getStatus()) - .ruleId(projectInfoEditReq.getRuleId()) - .brandId(projectInfoEditReq.getBrandId()) - .build(); - } - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/ProjectSkuInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/ProjectSkuInfo.java deleted file mode 100644 index d4c8e57..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/ProjectSkuInfo.java +++ /dev/null @@ -1,108 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.req.ProjectSkuInfoEditReq; -import com.muyu.product.domain.req.ProjectSkuInfoQueryReq; -import com.muyu.product.domain.req.ProjectSkuInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.math.BigDecimal; - -/** - * 商品SKU对象 project_sku_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("project_sku_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "ProjectSkuInfo", description = "商品SKU") -public class ProjectSkuInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 商品id */ - @Excel(name = "商品id") - @ApiModelProperty(name = "商品id", value = "商品id", required = true) - private Long projectId; - - /** sku */ - @Excel(name = "sku") - @ApiModelProperty(name = "sku", value = "sku", required = true) - private String sku; - - /** 商品库存 */ - @Excel(name = "商品库存") - @ApiModelProperty(name = "商品库存", value = "商品库存", required = true) - private Long stock; - - /** 商品价格 */ - @Excel(name = "商品价格") - @ApiModelProperty(name = "商品价格", value = "商品价格", required = true) - private BigDecimal price; - - /** 规格图片 */ - @Excel(name = "规格图片") - @ApiModelProperty(name = "规格图片", value = "规格图片", required = true) - private String image; - - /** - * 查询构造器 - */ - public static ProjectSkuInfo queryBuild( ProjectSkuInfoQueryReq projectSkuInfoQueryReq){ - return ProjectSkuInfo.builder() - .projectId(projectSkuInfoQueryReq.getProjectId()) - .sku(projectSkuInfoQueryReq.getSku()) - .stock(projectSkuInfoQueryReq.getStock()) - .price(projectSkuInfoQueryReq.getPrice()) - .image(projectSkuInfoQueryReq.getImage()) - .build(); - } - - /** - * 添加构造器 - */ - public static ProjectSkuInfo saveBuild(ProjectSkuInfoSaveReq projectSkuInfoSaveReq){ - return ProjectSkuInfo.builder() - .projectId(projectSkuInfoSaveReq.getProjectId()) - .sku(projectSkuInfoSaveReq.getSku()) - .stock(projectSkuInfoSaveReq.getStock()) - .price(projectSkuInfoSaveReq.getPrice()) - .image(projectSkuInfoSaveReq.getImage()) - .build(); - } - - /** - * 修改构造器 - */ - public static ProjectSkuInfo editBuild(Long id, ProjectSkuInfoEditReq projectSkuInfoEditReq){ - return ProjectSkuInfo.builder() - .id(id) - .projectId(projectSkuInfoEditReq.getProjectId()) - .sku(projectSkuInfoEditReq.getSku()) - .stock(projectSkuInfoEditReq.getStock()) - .price(projectSkuInfoEditReq.getPrice()) - .image(projectSkuInfoEditReq.getImage()) - .build(); - } - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/RuleAttrInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/RuleAttrInfo.java deleted file mode 100644 index 8e6449e..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/RuleAttrInfo.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.model.RuleAttrAddModel; -import com.muyu.product.domain.req.RuleAttrInfoEditReq; -import com.muyu.product.domain.req.RuleAttrInfoQueryReq; -import com.muyu.product.domain.req.RuleAttrInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.Date; -import java.util.function.Supplier; - -/** - * 规格详情对象 rule_attr_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("rule_attr_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "RuleAttrInfo", description = "规格详情") -public class RuleAttrInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 规格id */ - @Excel(name = "规格id") - @ApiModelProperty(name = "规格id", value = "规格id", required = true) - private Long ruleId; - - /** 类目名称 */ - @Excel(name = "类目名称") - @ApiModelProperty(name = "类目名称", value = "类目名称") - private String name; - - /** 规格值 */ - @Excel(name = "规格值") - @ApiModelProperty(name = "规格值", value = "规格值") - private String attrValue; - - /** - * 查询构造器 - */ - public static RuleAttrInfo queryBuild( RuleAttrInfoQueryReq ruleAttrInfoQueryReq){ - return RuleAttrInfo.builder() - .ruleId(ruleAttrInfoQueryReq.getRuleId()) - .name(ruleAttrInfoQueryReq.getName()) - .attrValue(ruleAttrInfoQueryReq.getAttrValue()) - .build(); - } - - /** - * 添加构造器 - */ - public static RuleAttrInfo saveBuild(RuleAttrInfoSaveReq ruleAttrInfoSaveReq){ - return RuleAttrInfo.builder() - .ruleId(ruleAttrInfoSaveReq.getRuleId()) - .name(ruleAttrInfoSaveReq.getName()) - .attrValue(ruleAttrInfoSaveReq.getAttrValue()) - .build(); - } - - /** - * 修改构造器 - */ - public static RuleAttrInfo editBuild(Long id, RuleAttrInfoEditReq ruleAttrInfoEditReq){ - return RuleAttrInfo.builder() - .id(id) - .ruleId(ruleAttrInfoEditReq.getRuleId()) - .name(ruleAttrInfoEditReq.getName()) - .attrValue(ruleAttrInfoEditReq.getAttrValue()) - .build(); - } - - public static RuleAttrInfo addModelBuild (RuleAttrAddModel ruleAttrAddModel, Supplier ruleId, Supplier createBy) { - return RuleAttrInfo.builder() - .ruleId(ruleId.get()) - .name(ruleAttrAddModel.getName()) - .attrValue(String.join(",", ruleAttrAddModel.getValueList())) - .createBy(createBy.get()) - .createTime(new Date()) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/RuleInfo.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/RuleInfo.java deleted file mode 100644 index 4484110..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/RuleInfo.java +++ /dev/null @@ -1,100 +0,0 @@ -package com.muyu.product.domain; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.muyu.common.core.annotation.Excel; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.model.RuleInfoAddModel; -import com.muyu.product.domain.req.RuleInfoEditReq; -import com.muyu.product.domain.req.RuleInfoQueryReq; -import com.muyu.product.domain.req.RuleInfoSaveReq; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.Date; -import java.util.function.Supplier; - -/** - * 商品规格对象 rule_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@TableName("rule_info") -@EqualsAndHashCode(callSuper = true) -@ApiModel(value = "RuleInfo", description = "商品规格") -public class RuleInfo extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - @TableId(value = "id",type = IdType.AUTO) - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 规格名称 */ - @Excel(name = "规格名称") - @ApiModelProperty(name = "规格名称", value = "规格名称") - private String name; - - /** 规格状态 */ - @Excel(name = "规格状态") - @ApiModelProperty(name = "规格状态", value = "规格状态") - private String status; - - /** - * 查询构造器 - */ - public static RuleInfo queryBuild( RuleInfoQueryReq ruleInfoQueryReq){ - return RuleInfo.builder() - .name(ruleInfoQueryReq.getName()) - .status(ruleInfoQueryReq.getStatus()) - .build(); - } - - /** - * 添加构造器 - */ - public static RuleInfo saveBuild(RuleInfoSaveReq ruleInfoSaveReq){ - return RuleInfo.builder() - .name(ruleInfoSaveReq.getName()) - .status(ruleInfoSaveReq.getStatus()) - .build(); - } - - /** - * 修改构造器 - */ - public static RuleInfo editBuild(Long id, RuleInfoEditReq ruleInfoEditReq){ - return RuleInfo.builder() - .id(id) - .name(ruleInfoEditReq.getName()) - .status(ruleInfoEditReq.getStatus()) - .build(); - } - - /** - * - * @param ruleInfoAddModel 添加模型 - * @param createBy 创建者 - * @return 规格对象 - */ - public static RuleInfo addModelBuild (RuleInfoAddModel ruleInfoAddModel, Supplier createBy) { - return RuleInfo.builder() - .name(ruleInfoAddModel.getName()) - .status(ruleInfoAddModel.getStatus()) - .createBy(createBy.get()) - .createTime(new Date()) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/base/CategoryBase.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/base/CategoryBase.java deleted file mode 100644 index ae3b33c..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/base/CategoryBase.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.muyu.product.domain.base; - -/** - * @author DongZl - * @description: attribute基础方法 - * @Date 2024-3-1 下午 02:28 - */ -public interface CategoryBase { - - public Long getBaseId(); -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/dto/PmsBrandParam.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/dto/PmsBrandParam.java new file mode 100644 index 0000000..b039b19 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/dto/PmsBrandParam.java @@ -0,0 +1,51 @@ +package com.muyu.product.domain.dto; + +import com.muyu.product.domain.validator.FlagValidator; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.validation.constraints.Min; +import javax.validation.constraints.NotEmpty; + +/** + * 描述:品牌请求参数 + * @Author: wangxinyuan + * @Date: 2024/3/24 9:23 + */ +@Data +@EqualsAndHashCode +public class PmsBrandParam { + + + @NotEmpty + @ApiModelProperty(value = "品牌名称",required = true) + private String name; + + + @ApiModelProperty(value = "品牌首字母") + private String firstLetter; + + @Min(value = 0) + @ApiModelProperty(value = "排序字段") + private Integer sort; + + @ApiModelProperty(value = "是否为厂家制造商") + @FlagValidator(value = {"0","1"}, message = "厂家状态不正确") + private Integer factoryStatus; + + + @FlagValidator(value = {"0","1"}, message = "显示状态不正确") + @ApiModelProperty("是否显示") + private Integer showStatus; + + @NotEmpty + @ApiModelProperty(value = "品牌LOGO",required = true) + private String logo; + + @ApiModelProperty(value = "品牌大图") + private String bigPic; + + @ApiModelProperty(value = "描述") + private String brandStory; +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/dto/PmsProductAttributeCategoryItem.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/dto/PmsProductAttributeCategoryItem.java new file mode 100644 index 0000000..c96cbc8 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/dto/PmsProductAttributeCategoryItem.java @@ -0,0 +1,24 @@ +package com.muyu.product.domain.dto; + +import com.muyu.product.domain.model.PmsProductAttribute; +import com.muyu.product.domain.model.PmsProductAttributeCategory; +import io.swagger.annotations.ApiModelProperty; +import lombok.Getter; +import lombok.Setter; + +import java.util.List; + +/** + * 描述:带有属性的商品属性分类 + * @Author: wangxinyuan + * @Date: 2024/3/24 10:08 + */ +public class PmsProductAttributeCategoryItem extends PmsProductAttributeCategory { + + + @Getter + @Setter + @ApiModelProperty(value = "商品属性列表") + private ListproductAttributeList; + +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/AttributeGroupSaveModel.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/AttributeGroupSaveModel.java deleted file mode 100644 index eecfb3f..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/AttributeGroupSaveModel.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.muyu.product.domain.model; - -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.AttributeGroup; -import com.muyu.product.domain.req.AttributeGroupSaveReq; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; - - - -/** - * @author DongZl - * @description: 属性组添加模型 - * @Date 2024-2-28 下午 03:16 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class AttributeGroupSaveModel extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 组名称 */ - private String name; - - /** 状态 */ - private String states; - - /** - * 属性ID集合 - */ - private List attributeIdList; - - public static AttributeGroupSaveModel saveReqBuild (AttributeGroupSaveReq req){ - return AttributeGroupSaveModel.builder() - .name(req.getName()) - .states(req.getStates()) - .attributeIdList(req.getAttributeIdList()) - .build(); - } - - public AttributeGroup buildAttributeGroup () { - return AttributeGroup.builder() - .name(this.getName()) - .states(this.getStates()) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/CategoryInfoSaveModel.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/CategoryInfoSaveModel.java deleted file mode 100644 index 1313247..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/CategoryInfoSaveModel.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.muyu.product.domain.model; - -import com.muyu.common.core.web.domain.TreeEntity; -import com.muyu.product.domain.req.CategoryInfoSaveReq; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.Date; -import java.util.List; -import java.util.function.Supplier; - -/** - * 品类信息对象 category_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class CategoryInfoSaveModel extends TreeEntity { - - private static final long serialVersionUID = 1L; - - - /** 品类名称 */ - private String name; - - /** 图片 */ - private String image; - - /** 是否启用 */ - private String start; - - /** 介绍 */ - private String introduction; - - /** - * 商品属性组关联ID - */ - private List attributeGroupIdList; - /** - * 商品属性关联ID - */ - private List attributeIdList; - - /** - * 商品品牌组关联ID - */ - private List brandIdList; - - /** - * 添加构造器 - */ - public static CategoryInfoSaveModel saveBuild(CategoryInfoSaveReq categoryInfoSaveReq, Supplier supplier){ - return CategoryInfoSaveModel.builder() - .name(categoryInfoSaveReq.getName()) - .image(categoryInfoSaveReq.getImage()) - .start(categoryInfoSaveReq.getStart()) - .introduction(categoryInfoSaveReq.getIntroduction()) - .parentId(categoryInfoSaveReq.getParentId()) - .attributeGroupIdList(categoryInfoSaveReq.getAttributeGroupIdList()) - .attributeIdList(categoryInfoSaveReq.getAttributeIdList()) - .brandIdList(categoryInfoSaveReq.getBrandIdList()) - .createBy(supplier.get()) - .createTime(new Date()) - .build(); - } - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProduct.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProduct.java new file mode 100644 index 0000000..0f573a2 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProduct.java @@ -0,0 +1,521 @@ +package com.muyu.product.domain.model; + +import io.swagger.annotations.ApiModelProperty; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * @Author: wangxinyuan + * @Date: 2024/3/24 10:33 + */ + +public class PmsProduct implements Serializable { + + private Long id; + + private Long brandId; + + private Long productCategoryId; + + private Long feightTemplateId; + + private Long productAttributeCategoryId; + + private String name; + + private String pic; + + @ApiModelProperty(value = "货号") + private String productSn; + + @ApiModelProperty(value = "删除状态:0->未删除;1->已删除") + private Integer deleteStatus; + + @ApiModelProperty(value = "上架状态:0->下架;1->上架") + private Integer publishStatus; + + @ApiModelProperty(value = "新品状态:0->不是新品;1->新品") + private Integer newStatus; + + @ApiModelProperty(value = "推荐状态;0->不推荐;1->推荐") + private Integer recommandStatus; + + @ApiModelProperty(value = "审核状态:0->未审核;1->审核通过") + private Integer verifyStatus; + + @ApiModelProperty(value = "排序") + private Integer sort; + + @ApiModelProperty(value = "销量") + private Integer sale; + + private BigDecimal price; + + @ApiModelProperty(value = "促销价格") + private BigDecimal promotionPrice; + + @ApiModelProperty(value = "赠送成长值") + private Integer giftGrowth; + + @ApiModelProperty(value = "赠送积分") + private Integer giftPoint; + + @ApiModelProperty(value = "限制使用的积分") + private Integer usePointLimit; + + @ApiModelProperty(value = "副标题") + private String subTitle; + + @ApiModelProperty(value = "市场价") + private BigDecimal originalPrice; + + @ApiModelProperty(value = "库存") + private Integer stock; + + @ApiModelProperty(value = "库存预警数") + private Integer lowStock; + + @ApiModelProperty(value = "单位") + private String unit; + + @ApiModelProperty(value = "商品重量,默认为克") + private BigDecimal weight; + + @ApiModelProperty(value = "是否为预告商品:0->不是;1->是") + private Integer previewStatus; + + @ApiModelProperty(value = "以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮") + private String serviceIds; + private String keywords; + private String note; + + @ApiModelProperty(value = "画册图片,连产品图片限制为5张,以逗号分割") + private String albumPics; + + private String detailTitle; + + @ApiModelProperty(value = "促销开始时间") + private Date promotionStartTime; + + @ApiModelProperty(value = "促销结束时间") + private Date promotionEndTime; + + @ApiModelProperty("活动限购时间") + private Integer promotionPerLimit; + + @ApiModelProperty(value = "促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格;5->限时购") + private Integer promotionType; + + @ApiModelProperty(value = "品牌名称") + private String brandName; + + @ApiModelProperty(value = "商品分类名称") + private String productCategoryName; + + @ApiModelProperty(value = "商品描述") + private String description; + + private String detailDesc; + + @ApiModelProperty(value = "产品详细内容") + private String detailHtml; + + @ApiModelProperty(value = "移动端详情") + private String detailMobileHtml; + + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getBrandId() { + return brandId; + } + + public void setBrandId(Long brandId) { + this.brandId = brandId; + } + + public Long getProductCategoryId() { + return productCategoryId; + } + + public void setProductCategoryId(Long productCategoryId) { + this.productCategoryId = productCategoryId; + } + + public Long getFeightTemplateId() { + return feightTemplateId; + } + + public void setFeightTemplateId(Long feightTemplateId) { + this.feightTemplateId = feightTemplateId; + } + + 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 String getPic() { + return pic; + } + + public void setPic(String pic) { + this.pic = pic; + } + + public String getProductSn() { + return productSn; + } + + public void setProductSn(String productSn) { + this.productSn = productSn; + } + + public Integer getDeleteStatus() { + return deleteStatus; + } + + public void setDeleteStatus(Integer deleteStatus) { + this.deleteStatus = deleteStatus; + } + + public Integer getPublishStatus() { + return publishStatus; + } + + public void setPublishStatus(Integer publishStatus) { + this.publishStatus = publishStatus; + } + + public Integer getNewStatus() { + return newStatus; + } + + public void setNewStatus(Integer newStatus) { + this.newStatus = newStatus; + } + + public Integer getRecommandStatus() { + return recommandStatus; + } + + public void setRecommandStatus(Integer recommandStatus) { + this.recommandStatus = recommandStatus; + } + + public Integer getVerifyStatus() { + return verifyStatus; + } + + public void setVerifyStatus(Integer verifyStatus) { + this.verifyStatus = verifyStatus; + } + + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public Integer getSale() { + return sale; + } + + public void setSale(Integer sale) { + this.sale = sale; + } + + public BigDecimal getPrice() { + return price; + } + + public void setPrice(BigDecimal price) { + this.price = price; + } + + public BigDecimal getPromotionPrice() { + return promotionPrice; + } + + public void setPromotionPrice(BigDecimal promotionPrice) { + this.promotionPrice = promotionPrice; + } + + public Integer getGiftGrowth() { + return giftGrowth; + } + + public void setGiftGrowth(Integer giftGrowth) { + this.giftGrowth = giftGrowth; + } + + public Integer getGiftPoint() { + return giftPoint; + } + + public void setGiftPoint(Integer giftPoint) { + this.giftPoint = giftPoint; + } + + public Integer getUsePointLimit() { + return usePointLimit; + } + + public void setUsePointLimit(Integer usePointLimit) { + this.usePointLimit = usePointLimit; + } + + public String getSubTitle() { + return subTitle; + } + + public void setSubTitle(String subTitle) { + this.subTitle = subTitle; + } + + public BigDecimal getOriginalPrice() { + return originalPrice; + } + + public void setOriginalPrice(BigDecimal originalPrice) { + this.originalPrice = originalPrice; + } + + public Integer getStock() { + return stock; + } + + public void setStock(Integer stock) { + this.stock = stock; + } + + public Integer getLowStock() { + return lowStock; + } + + public void setLowStock(Integer lowStock) { + this.lowStock = lowStock; + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit; + } + + public BigDecimal getWeight() { + return weight; + } + + public void setWeight(BigDecimal weight) { + this.weight = weight; + } + + public Integer getPreviewStatus() { + return previewStatus; + } + + public void setPreviewStatus(Integer previewStatus) { + this.previewStatus = previewStatus; + } + + public String getServiceIds() { + return serviceIds; + } + + public void setServiceIds(String serviceIds) { + this.serviceIds = serviceIds; + } + + public String getKeywords() { + return keywords; + } + + public void setKeywords(String keywords) { + this.keywords = keywords; + } + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public String getAlbumPics() { + return albumPics; + } + + public void setAlbumPics(String albumPics) { + this.albumPics = albumPics; + } + + public String getDetailTitle() { + return detailTitle; + } + + public void setDetailTitle(String detailTitle) { + this.detailTitle = detailTitle; + } + + public Date getPromotionStartTime() { + return promotionStartTime; + } + + public void setPromotionStartTime(Date promotionStartTime) { + this.promotionStartTime = promotionStartTime; + } + + public Date getPromotionEndTime() { + return promotionEndTime; + } + + public void setPromotionEndTime(Date promotionEndTime) { + this.promotionEndTime = promotionEndTime; + } + + public Integer getPromotionPerLimit() { + return promotionPerLimit; + } + + public void setPromotionPerLimit(Integer promotionPerLimit) { + this.promotionPerLimit = promotionPerLimit; + } + + public Integer getPromotionType() { + return promotionType; + } + + public void setPromotionType(Integer promotionType) { + this.promotionType = promotionType; + } + + public String getBrandName() { + return brandName; + } + + public void setBrandName(String brandName) { + this.brandName = brandName; + } + + public String getProductCategoryName() { + return productCategoryName; + } + + public void setProductCategoryName(String productCategoryName) { + this.productCategoryName = productCategoryName; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDetailDesc() { + return detailDesc; + } + + public void setDetailDesc(String detailDesc) { + this.detailDesc = detailDesc; + } + + public String getDetailHtml() { + return detailHtml; + } + + public void setDetailHtml(String detailHtml) { + this.detailHtml = detailHtml; + } + + public String getDetailMobileHtml() { + return detailMobileHtml; + } + + public void setDetailMobileHtml(String detailMobileHtml) { + this.detailMobileHtml = detailMobileHtml; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", brandId=").append(brandId); + sb.append(", productCategoryId=").append(productCategoryId); + sb.append(", feightTemplateId=").append(feightTemplateId); + sb.append(", productAttributeCategoryId=").append(productAttributeCategoryId); + sb.append(", name=").append(name); + sb.append(", pic=").append(pic); + sb.append(", productSn=").append(productSn); + sb.append(", deleteStatus=").append(deleteStatus); + sb.append(", publishStatus=").append(publishStatus); + sb.append(", newStatus=").append(newStatus); + sb.append(", recommandStatus=").append(recommandStatus); + sb.append(", verifyStatus=").append(verifyStatus); + sb.append(", sort=").append(sort); + sb.append(", sale=").append(sale); + sb.append(", price=").append(price); + sb.append(", promotionPrice=").append(promotionPrice); + sb.append(", giftGrowth=").append(giftGrowth); + sb.append(", giftPoint=").append(giftPoint); + sb.append(", usePointLimit=").append(usePointLimit); + sb.append(", subTitle=").append(subTitle); + sb.append(", originalPrice=").append(originalPrice); + sb.append(", stock=").append(stock); + sb.append(", lowStock=").append(lowStock); + sb.append(", unit=").append(unit); + sb.append(", weight=").append(weight); + sb.append(", previewStatus=").append(previewStatus); + sb.append(", serviceIds=").append(serviceIds); + sb.append(", keywords=").append(keywords); + sb.append(", note=").append(note); + sb.append(", albumPics=").append(albumPics); + sb.append(", detailTitle=").append(detailTitle); + sb.append(", promotionStartTime=").append(promotionStartTime); + sb.append(", promotionEndTime=").append(promotionEndTime); + sb.append(", promotionPerLimit=").append(promotionPerLimit); + sb.append(", promotionType=").append(promotionType); + sb.append(", brandName=").append(brandName); + sb.append(", productCategoryName=").append(productCategoryName); + sb.append(", description=").append(description); + sb.append(", detailDesc=").append(detailDesc); + sb.append(", detailHtml=").append(detailHtml); + sb.append(", detailMobileHtml=").append(detailMobileHtml); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } + + +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttribute.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttribute.java new file mode 100644 index 0000000..7ce01f2 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttribute.java @@ -0,0 +1,170 @@ +package com.muyu.product.domain.model; + +import io.swagger.annotations.ApiModelProperty; + +import java.io.Serializable; + +/** + * @Author: wangxinyuan + * @Date: 2024/3/24 10:18 + */ +public class PmsProductAttribute implements Serializable { + + private Long id; + + private Long productAttributeCategoryId; + + private String name; + + @ApiModelProperty(value = "属性选择类型:0->唯一;1->单选;2->多选") + private Integer selectType; + + @ApiModelProperty(value = "属性录入方式:0->手工录入;1->从列表中选取") + private Integer inputType; + + @ApiModelProperty(value = "可选值列表,以逗号隔开") + private String inputList; + + @ApiModelProperty(value = "排序字段:最高的可以单独上传图片") + private Integer sort; + + @ApiModelProperty(value = "分类筛选样式:1->普通;1->颜色") + private Integer filterType; + + @ApiModelProperty(value = "检索类型;0->不需要进行检索;1->关键字检索;2->范围检索") + private Integer searchType; + + @ApiModelProperty(value = "相同属性产品是否关联;0->不关联;1->关联") + private Integer relatedStatus; + + @ApiModelProperty(value = "是否支持手动新增;0->不支持;1->支持") + private Integer handAddStatus; + + @ApiModelProperty(value = "属性的类型;0->规格;1->参数") + private Integer type; + + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + 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; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", productAttributeCategoryId=").append(productAttributeCategoryId); + sb.append(", name=").append(name); + sb.append(", selectType=").append(selectType); + sb.append(", inputType=").append(inputType); + sb.append(", inputList=").append(inputList); + sb.append(", sort=").append(sort); + sb.append(", filterType=").append(filterType); + sb.append(", searchType=").append(searchType); + sb.append(", relatedStatus=").append(relatedStatus); + sb.append(", handAddStatus=").append(handAddStatus); + sb.append(", type=").append(type); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } + + +} + diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeCategory.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeCategory.java new file mode 100644 index 0000000..535b08d --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeCategory.java @@ -0,0 +1,74 @@ +package com.muyu.product.domain.model; + +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import lombok.experimental.SuperBuilder; + +import java.io.Serializable; +@Data +@SuperBuilder +@NoArgsConstructor +@AllArgsConstructor +public class PmsProductAttributeCategory implements Serializable { + private Long id; + + private String name; + + @ApiModelProperty(value = "属性数量") + private Integer attributeCount; + + @ApiModelProperty(value = "参数数量") + private Integer paramCount; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer getAttributeCount() { + return attributeCount; + } + + public void setAttributeCount(Integer attributeCount) { + this.attributeCount = attributeCount; + } + + public Integer getParamCount() { + return paramCount; + } + + public void setParamCount(Integer paramCount) { + this.paramCount = paramCount; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", name=").append(name); + sb.append(", attributeCount=").append(attributeCount); + sb.append(", paramCount=").append(paramCount); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeCategoryExample.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeCategoryExample.java new file mode 100644 index 0000000..77ab3ed --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeCategoryExample.java @@ -0,0 +1,449 @@ +package com.muyu.product.domain.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsProductAttributeCategoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductAttributeCategoryExample() { + oredCriteria = new ArrayList<>(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andAttributeCountIsNull() { + addCriterion("attribute_count is null"); + return (Criteria) this; + } + + public Criteria andAttributeCountIsNotNull() { + addCriterion("attribute_count is not null"); + return (Criteria) this; + } + + public Criteria andAttributeCountEqualTo(Integer value) { + addCriterion("attribute_count =", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountNotEqualTo(Integer value) { + addCriterion("attribute_count <>", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountGreaterThan(Integer value) { + addCriterion("attribute_count >", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountGreaterThanOrEqualTo(Integer value) { + addCriterion("attribute_count >=", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountLessThan(Integer value) { + addCriterion("attribute_count <", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountLessThanOrEqualTo(Integer value) { + addCriterion("attribute_count <=", value, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountIn(List values) { + addCriterion("attribute_count in", values, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountNotIn(List values) { + addCriterion("attribute_count not in", values, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountBetween(Integer value1, Integer value2) { + addCriterion("attribute_count between", value1, value2, "attributeCount"); + return (Criteria) this; + } + + public Criteria andAttributeCountNotBetween(Integer value1, Integer value2) { + addCriterion("attribute_count not between", value1, value2, "attributeCount"); + return (Criteria) this; + } + + public Criteria andParamCountIsNull() { + addCriterion("param_count is null"); + return (Criteria) this; + } + + public Criteria andParamCountIsNotNull() { + addCriterion("param_count is not null"); + return (Criteria) this; + } + + public Criteria andParamCountEqualTo(Integer value) { + addCriterion("param_count =", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountNotEqualTo(Integer value) { + addCriterion("param_count <>", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountGreaterThan(Integer value) { + addCriterion("param_count >", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountGreaterThanOrEqualTo(Integer value) { + addCriterion("param_count >=", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountLessThan(Integer value) { + addCriterion("param_count <", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountLessThanOrEqualTo(Integer value) { + addCriterion("param_count <=", value, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountIn(List values) { + addCriterion("param_count in", values, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountNotIn(List values) { + addCriterion("param_count not in", values, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountBetween(Integer value1, Integer value2) { + addCriterion("param_count between", value1, value2, "paramCount"); + return (Criteria) this; + } + + public Criteria andParamCountNotBetween(Integer value1, Integer value2) { + addCriterion("param_count not between", value1, value2, "paramCount"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeExample.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeExample.java new file mode 100644 index 0000000..1c8eb15 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductAttributeExample.java @@ -0,0 +1,939 @@ +package com.muyu.product.domain.model; + +import java.util.ArrayList; +import java.util.List; + +public class PmsProductAttributeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PmsProductAttributeExample() { + oredCriteria = new ArrayList<>(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdIsNull() { + addCriterion("product_attribute_category_id is null"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdIsNotNull() { + addCriterion("product_attribute_category_id is not null"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdEqualTo(Long value) { + addCriterion("product_attribute_category_id =", value, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdNotEqualTo(Long value) { + addCriterion("product_attribute_category_id <>", value, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdGreaterThan(Long value) { + addCriterion("product_attribute_category_id >", value, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdGreaterThanOrEqualTo(Long value) { + addCriterion("product_attribute_category_id >=", value, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdLessThan(Long value) { + addCriterion("product_attribute_category_id <", value, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdLessThanOrEqualTo(Long value) { + addCriterion("product_attribute_category_id <=", value, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdIn(List values) { + addCriterion("product_attribute_category_id in", values, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdNotIn(List values) { + addCriterion("product_attribute_category_id not in", values, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdBetween(Long value1, Long value2) { + addCriterion("product_attribute_category_id between", value1, value2, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andProductAttributeCategoryIdNotBetween(Long value1, Long value2) { + addCriterion("product_attribute_category_id not between", value1, value2, "productAttributeCategoryId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andSelectTypeIsNull() { + addCriterion("select_type is null"); + return (Criteria) this; + } + + public Criteria andSelectTypeIsNotNull() { + addCriterion("select_type is not null"); + return (Criteria) this; + } + + public Criteria andSelectTypeEqualTo(Integer value) { + addCriterion("select_type =", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeNotEqualTo(Integer value) { + addCriterion("select_type <>", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeGreaterThan(Integer value) { + addCriterion("select_type >", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("select_type >=", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeLessThan(Integer value) { + addCriterion("select_type <", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeLessThanOrEqualTo(Integer value) { + addCriterion("select_type <=", value, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeIn(List values) { + addCriterion("select_type in", values, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeNotIn(List values) { + addCriterion("select_type not in", values, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeBetween(Integer value1, Integer value2) { + addCriterion("select_type between", value1, value2, "selectType"); + return (Criteria) this; + } + + public Criteria andSelectTypeNotBetween(Integer value1, Integer value2) { + addCriterion("select_type not between", value1, value2, "selectType"); + return (Criteria) this; + } + + public Criteria andInputTypeIsNull() { + addCriterion("input_type is null"); + return (Criteria) this; + } + + public Criteria andInputTypeIsNotNull() { + addCriterion("input_type is not null"); + return (Criteria) this; + } + + public Criteria andInputTypeEqualTo(Integer value) { + addCriterion("input_type =", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeNotEqualTo(Integer value) { + addCriterion("input_type <>", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeGreaterThan(Integer value) { + addCriterion("input_type >", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("input_type >=", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeLessThan(Integer value) { + addCriterion("input_type <", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeLessThanOrEqualTo(Integer value) { + addCriterion("input_type <=", value, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeIn(List values) { + addCriterion("input_type in", values, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeNotIn(List values) { + addCriterion("input_type not in", values, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeBetween(Integer value1, Integer value2) { + addCriterion("input_type between", value1, value2, "inputType"); + return (Criteria) this; + } + + public Criteria andInputTypeNotBetween(Integer value1, Integer value2) { + addCriterion("input_type not between", value1, value2, "inputType"); + return (Criteria) this; + } + + public Criteria andInputListIsNull() { + addCriterion("input_list is null"); + return (Criteria) this; + } + + public Criteria andInputListIsNotNull() { + addCriterion("input_list is not null"); + return (Criteria) this; + } + + public Criteria andInputListEqualTo(String value) { + addCriterion("input_list =", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListNotEqualTo(String value) { + addCriterion("input_list <>", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListGreaterThan(String value) { + addCriterion("input_list >", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListGreaterThanOrEqualTo(String value) { + addCriterion("input_list >=", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListLessThan(String value) { + addCriterion("input_list <", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListLessThanOrEqualTo(String value) { + addCriterion("input_list <=", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListLike(String value) { + addCriterion("input_list like", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListNotLike(String value) { + addCriterion("input_list not like", value, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListIn(List values) { + addCriterion("input_list in", values, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListNotIn(List values) { + addCriterion("input_list not in", values, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListBetween(String value1, String value2) { + addCriterion("input_list between", value1, value2, "inputList"); + return (Criteria) this; + } + + public Criteria andInputListNotBetween(String value1, String value2) { + addCriterion("input_list not between", value1, value2, "inputList"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andFilterTypeIsNull() { + addCriterion("filter_type is null"); + return (Criteria) this; + } + + public Criteria andFilterTypeIsNotNull() { + addCriterion("filter_type is not null"); + return (Criteria) this; + } + + public Criteria andFilterTypeEqualTo(Integer value) { + addCriterion("filter_type =", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeNotEqualTo(Integer value) { + addCriterion("filter_type <>", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeGreaterThan(Integer value) { + addCriterion("filter_type >", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("filter_type >=", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeLessThan(Integer value) { + addCriterion("filter_type <", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeLessThanOrEqualTo(Integer value) { + addCriterion("filter_type <=", value, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeIn(List values) { + addCriterion("filter_type in", values, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeNotIn(List values) { + addCriterion("filter_type not in", values, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeBetween(Integer value1, Integer value2) { + addCriterion("filter_type between", value1, value2, "filterType"); + return (Criteria) this; + } + + public Criteria andFilterTypeNotBetween(Integer value1, Integer value2) { + addCriterion("filter_type not between", value1, value2, "filterType"); + return (Criteria) this; + } + + public Criteria andSearchTypeIsNull() { + addCriterion("search_type is null"); + return (Criteria) this; + } + + public Criteria andSearchTypeIsNotNull() { + addCriterion("search_type is not null"); + return (Criteria) this; + } + + public Criteria andSearchTypeEqualTo(Integer value) { + addCriterion("search_type =", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeNotEqualTo(Integer value) { + addCriterion("search_type <>", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeGreaterThan(Integer value) { + addCriterion("search_type >", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("search_type >=", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeLessThan(Integer value) { + addCriterion("search_type <", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeLessThanOrEqualTo(Integer value) { + addCriterion("search_type <=", value, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeIn(List values) { + addCriterion("search_type in", values, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeNotIn(List values) { + addCriterion("search_type not in", values, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeBetween(Integer value1, Integer value2) { + addCriterion("search_type between", value1, value2, "searchType"); + return (Criteria) this; + } + + public Criteria andSearchTypeNotBetween(Integer value1, Integer value2) { + addCriterion("search_type not between", value1, value2, "searchType"); + return (Criteria) this; + } + + public Criteria andRelatedStatusIsNull() { + addCriterion("related_status is null"); + return (Criteria) this; + } + + public Criteria andRelatedStatusIsNotNull() { + addCriterion("related_status is not null"); + return (Criteria) this; + } + + public Criteria andRelatedStatusEqualTo(Integer value) { + addCriterion("related_status =", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusNotEqualTo(Integer value) { + addCriterion("related_status <>", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusGreaterThan(Integer value) { + addCriterion("related_status >", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("related_status >=", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusLessThan(Integer value) { + addCriterion("related_status <", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusLessThanOrEqualTo(Integer value) { + addCriterion("related_status <=", value, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusIn(List values) { + addCriterion("related_status in", values, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusNotIn(List values) { + addCriterion("related_status not in", values, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusBetween(Integer value1, Integer value2) { + addCriterion("related_status between", value1, value2, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andRelatedStatusNotBetween(Integer value1, Integer value2) { + addCriterion("related_status not between", value1, value2, "relatedStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusIsNull() { + addCriterion("hand_add_status is null"); + return (Criteria) this; + } + + public Criteria andHandAddStatusIsNotNull() { + addCriterion("hand_add_status is not null"); + return (Criteria) this; + } + + public Criteria andHandAddStatusEqualTo(Integer value) { + addCriterion("hand_add_status =", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusNotEqualTo(Integer value) { + addCriterion("hand_add_status <>", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusGreaterThan(Integer value) { + addCriterion("hand_add_status >", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("hand_add_status >=", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusLessThan(Integer value) { + addCriterion("hand_add_status <", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusLessThanOrEqualTo(Integer value) { + addCriterion("hand_add_status <=", value, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusIn(List values) { + addCriterion("hand_add_status in", values, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusNotIn(List values) { + addCriterion("hand_add_status not in", values, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusBetween(Integer value1, Integer value2) { + addCriterion("hand_add_status between", value1, value2, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andHandAddStatusNotBetween(Integer value1, Integer value2) { + addCriterion("hand_add_status not between", value1, value2, "handAddStatus"); + return (Criteria) this; + } + + public Criteria andTypeIsNull() { + addCriterion("type is null"); + return (Criteria) this; + } + + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); + return (Criteria) this; + } + + public Criteria andTypeEqualTo(Integer value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(Integer value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(Integer value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(Integer value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(Integer value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeIn(List values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List values) { + addCriterion("type not in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeBetween(Integer value1, Integer value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(Integer value1, Integer value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductFullReduction.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductFullReduction.java new file mode 100644 index 0000000..d33ff5b --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/PmsProductFullReduction.java @@ -0,0 +1,14 @@ +package com.muyu.product.domain.model; + +import java.io.Serializable; + +/** + * @Author: wangxinyuan + * @Date: 2024/3/24 11:35 + */ +public class PmsProductFullReduction implements Serializable { + + private Long id; + + +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/RuleAttrAddModel.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/RuleAttrAddModel.java deleted file mode 100644 index b4a8e44..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/RuleAttrAddModel.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.muyu.product.domain.model; - -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.RuleAttrInfo; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.Arrays; -import java.util.List; - - -/** - * @author DongZl - * @description: 规格属性,添加模型 - * @Date 2024-3-4 下午 02:28 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class RuleAttrAddModel extends BaseEntity { - - /** - * 规格属性名称 - */ - private String name; - - /** - * 规格属性值集合 - */ - private List valueList; - - public static RuleAttrAddModel infoBuild (RuleAttrInfo ruleAttrInfo) { - return RuleAttrAddModel.builder() - .name(ruleAttrInfo.getName()) - .valueList(Arrays.stream(ruleAttrInfo.getAttrValue().split(",")).toList()) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/RuleInfoAddModel.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/RuleInfoAddModel.java deleted file mode 100644 index 44557e8..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/RuleInfoAddModel.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.muyu.product.domain.model; - -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.req.RuleInfoSaveReq; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; - -/** - * @author DongZl - * @description: 规格保存模型 - * @Date 2024-3-4 下午 02:33 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class RuleInfoAddModel extends BaseEntity { - - /** 规格名称 */ - private String name; - - /** 规格状态 */ - private String status; - - /** - * 规格属性集合 - */ - private List ruleAttrList; - - public static RuleInfoAddModel saveReqBuild(RuleInfoSaveReq req){ - return RuleInfoAddModel.builder() - .name(req.getName()) - .status(req.getStatus()) - .ruleAttrList(req.getRuleAttrList()) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/TemplateAttributeGroupModel.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/TemplateAttributeGroupModel.java deleted file mode 100644 index ca4d1e6..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/TemplateAttributeGroupModel.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.muyu.product.domain.model; - -import com.muyu.common.core.utils.StringUtils; -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.AttributeGroup; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; -import java.util.function.Function; - -/** - * @author DongZl - * @description: 共有属性组 - * @Date 2024-3-6 下午 02:29 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class TemplateAttributeGroupModel extends BaseEntity { - - /** - * 组名称 - */ - private String groupName; - - /** - * 属性组下属性集合 - */ - private List attributeList; - - /** - * 是否有效 - * @return - */ - public boolean isEffective(){ - return StringUtils.isNotEmpty(groupName) && attributeList != null && !attributeList.isEmpty(); - } - - /** - * - * @param attributeGroup - * @param attributeList - * @return - */ - public static TemplateAttributeGroupModel attributeGroupBuild(AttributeGroup attributeGroup, - Function> attributeList){ - return TemplateAttributeGroupModel.builder() - .groupName(attributeGroup.getName()) - .attributeList(attributeList.apply(attributeGroup.getId())) - .build(); - - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/TemplateAttributeModel.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/TemplateAttributeModel.java deleted file mode 100644 index 8cbeb02..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/model/TemplateAttributeModel.java +++ /dev/null @@ -1,36 +0,0 @@ -package com.muyu.product.domain.model; - -import com.muyu.common.core.web.domain.BaseEntity; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * @author DongZl - * @description: 共有属性 - * @Date 2024-3-6 下午 02:30 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class TemplateAttributeModel extends BaseEntity { - - /** - * 主键 - */ - private Long id; - - /** - * 属性名称 - */ - private String name; - - /** - * 编码 - */ - private String code; -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupEditReq.java deleted file mode 100644 index 0148766..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupEditReq.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 属性组对象 attribute_group - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "AttributeGroupEditReq", description = "属性组") -public class AttributeGroupEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 组名称 */ - @ApiModelProperty(name = "组名称", value = "组名称", required = true) - private String name; - - /** 状态 */ - @ApiModelProperty(name = "状态", value = "状态", required = true) - private String states; - - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupQueryReq.java deleted file mode 100644 index 6ce5c4f..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupQueryReq.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 属性组对象 attribute_group - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "AttributeGroupQueryReq", description = "属性组") -public class AttributeGroupQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 组名称 */ - @ApiModelProperty(name = "组名称", value = "组名称") - private String name; - - /** 状态 */ - @ApiModelProperty(name = "状态", value = "状态") - private String states; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupSaveReq.java deleted file mode 100644 index becf126..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeGroupSaveReq.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; - -/** - * 属性组对象 attribute_group - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "AttributeGroupSaveReq", description = "属性组") -public class AttributeGroupSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 属性组编号 */ - @ApiModelProperty(name = "属性组编号", value = "属性组编号") - private Long id; - - /** 组名称 */ - @ApiModelProperty(name = "组名称", value = "组名称", required = true) - private String name; - - /** 状态 */ - @ApiModelProperty(name = "状态", value = "状态", required = true) - private String states; - - /** - * 属性ID集合 - */ - @ApiModelProperty(name = "属性ID集合", value = "属性ID集合", required = true) - private List attributeIdList; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoEditReq.java deleted file mode 100644 index 1706588..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoEditReq.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品属性对象 attribute_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "AttributeInfoEditReq", description = "商品属性") -public class AttributeInfoEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 属性名 */ - @ApiModelProperty(name = "属性名", value = "属性名", required = true) - private String name; - - /** 分组 */ - @ApiModelProperty(name = "分组", value = "分组") - private Long groupId; - - @ApiModelProperty(name = "属性编码", value = "属性编码") - private String code; - - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoQueryReq.java deleted file mode 100644 index e3e8b10..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoQueryReq.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品属性对象 attribute_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "AttributeInfoQueryReq", description = "商品属性") -public class AttributeInfoQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 属性名 */ - @ApiModelProperty(name = "属性名", value = "属性名") - private String name; - - @ApiModelProperty(name = "属性编码", value = "属性编码") - private String code; - - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoSaveReq.java deleted file mode 100644 index 01f6d9c..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/AttributeInfoSaveReq.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品属性对象 attribute_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "AttributeInfoSaveReq", description = "商品属性") -public class AttributeInfoSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 属性编号 */ - - @ApiModelProperty(name = "属性编号", value = "属性编号") - private Long id; - - /** 属性名 */ - - @ApiModelProperty(name = "属性名", value = "属性名", required = true) - private String name; - - @ApiModelProperty(name = "属性编码", value = "属性编码") - private String code; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoEditReq.java deleted file mode 100644 index 387d61d..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoEditReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品牌信息对象 brand_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "BrandInfoEditReq", description = "品牌信息") -public class BrandInfoEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 品牌名称 */ - @ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true) - private String name; - - /** LOGO */ - @ApiModelProperty(name = "LOGO", value = "LOGO", required = true) - private String logo; - - /** 是否启用 */ - @ApiModelProperty(name = "是否启用", value = "是否启用", required = true) - private String start; - - /** 介绍 */ - @ApiModelProperty(name = "介绍", value = "介绍") - private String introduction; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoQueryReq.java deleted file mode 100644 index 4cbae45..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoQueryReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品牌信息对象 brand_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "BrandInfoQueryReq", description = "品牌信息") -public class BrandInfoQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 品牌名称 */ - @ApiModelProperty(name = "品牌名称", value = "品牌名称") - private String name; - - /** LOGO */ - @ApiModelProperty(name = "LOGO", value = "LOGO") - private String logo; - - /** 是否启用 */ - @ApiModelProperty(name = "是否启用", value = "是否启用") - private String start; - - /** 介绍 */ - @ApiModelProperty(name = "介绍", value = "介绍") - private String introduction; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoSaveReq.java deleted file mode 100644 index 5008402..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/BrandInfoSaveReq.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品牌信息对象 brand_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "BrandInfoSaveReq", description = "品牌信息") -public class BrandInfoSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 品牌名称 */ - - @ApiModelProperty(name = "品牌名称", value = "品牌名称", required = true) - private String name; - - /** LOGO */ - - @ApiModelProperty(name = "LOGO", value = "LOGO", required = true) - private String logo; - - /** 是否启用 */ - - @ApiModelProperty(name = "是否启用", value = "是否启用", required = true) - private String start; - - /** 介绍 */ - - @ApiModelProperty(name = "介绍", value = "介绍") - private String introduction; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoEditReq.java deleted file mode 100644 index 7c353a4..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoEditReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.TreeEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品类信息对象 category_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CategoryInfoEditReq", description = "品类信息") -public class CategoryInfoEditReq extends TreeEntity { - - private static final long serialVersionUID = 1L; - - /** 品类名称 */ - @ApiModelProperty(name = "品类名称", value = "品类名称", required = true) - private String name; - - /** 图片 */ - @ApiModelProperty(name = "图片", value = "图片", required = true) - private String image; - - /** 是否启用 */ - @ApiModelProperty(name = "是否启用", value = "是否启用", required = true) - private String start; - - /** 介绍 */ - @ApiModelProperty(name = "介绍", value = "介绍") - private String introduction; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoQueryReq.java deleted file mode 100644 index 448174c..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoQueryReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.TreeEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 品类信息对象 category_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CategoryInfoQueryReq", description = "品类信息") -public class CategoryInfoQueryReq extends TreeEntity { - - private static final long serialVersionUID = 1L; - - /** 品类名称 */ - @ApiModelProperty(name = "品类名称", value = "品类名称") - private String name; - - /** 图片 */ - @ApiModelProperty(name = "图片", value = "图片") - private String image; - - /** 是否启用 */ - @ApiModelProperty(name = "是否启用", value = "是否启用") - private String start; - - /** 介绍 */ - @ApiModelProperty(name = "介绍", value = "介绍") - private String introduction; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoSaveReq.java deleted file mode 100644 index 71d1da9..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CategoryInfoSaveReq.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.TreeEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; - -/** - * 品类信息对象 category_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CategoryInfoSaveReq", description = "品类信息") -public class CategoryInfoSaveReq extends TreeEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 品类名称 */ - - @ApiModelProperty(name = "品类名称", value = "品类名称", required = true) - private String name; - - /** 图片 */ - - @ApiModelProperty(name = "图片", value = "图片", required = true) - private String image; - - /** 是否启用 */ - - @ApiModelProperty(name = "是否启用", value = "是否启用", required = true) - private String start; - - /** 介绍 */ - - @ApiModelProperty(name = "介绍", value = "介绍") - private String introduction; - - /** - * 商品属性组关联ID - */ - private List attributeGroupIdList; - /** - * 商品属性关联ID - */ - private List attributeIdList; - - /** - * 商品品牌组关联ID - */ - private List brandIdList; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoEditReq.java deleted file mode 100644 index ca5a199..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoEditReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品评论对象 comment_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CommentInfoEditReq", description = "商品评论") -public class CommentInfoEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 商品id */ - @ApiModelProperty(name = "商品id", value = "商品id", required = true) - private Long projectId; - - /** 评论 */ - @ApiModelProperty(name = "评论", value = "评论") - private String comment; - - /** 图片 */ - @ApiModelProperty(name = "图片", value = "图片") - private String images; - - /** 父类id */ - @ApiModelProperty(name = "父类id", value = "父类id") - private String parentId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoQueryReq.java deleted file mode 100644 index 2ea8193..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoQueryReq.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品评论对象 comment_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CommentInfoQueryReq", description = "商品评论") -public class CommentInfoQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 商品id */ - @ApiModelProperty(name = "商品id", value = "商品id") - private Long projectId; - - /** 评论 */ - @ApiModelProperty(name = "评论", value = "评论") - private String comment; - - /** 图片 */ - @ApiModelProperty(name = "图片", value = "图片") - private String images; - - /** 父类id */ - @ApiModelProperty(name = "父类id", value = "父类id") - private String parentId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoSaveReq.java deleted file mode 100644 index cea3617..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentInfoSaveReq.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品评论对象 comment_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CommentInfoSaveReq", description = "商品评论") -public class CommentInfoSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 商品id */ - - @ApiModelProperty(name = "商品id", value = "商品id", required = true) - private Long projectId; - - /** 评论 */ - - @ApiModelProperty(name = "评论", value = "评论") - private String comment; - - /** 图片 */ - - @ApiModelProperty(name = "图片", value = "图片") - private String images; - - /** 父类id */ - - @ApiModelProperty(name = "父类id", value = "父类id") - private String parentId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoEditReq.java deleted file mode 100644 index b51501d..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoEditReq.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 评论点赞对象 comment_like_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CommentLikeInfoEditReq", description = "评论点赞") -public class CommentLikeInfoEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 评论id */ - @ApiModelProperty(name = "评论id", value = "评论id", required = true) - private Long commentId; - - /** 点赞人id */ - @ApiModelProperty(name = "点赞人id", value = "点赞人id", required = true) - private Long userId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoQueryReq.java deleted file mode 100644 index 8f3a6d6..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoQueryReq.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 评论点赞对象 comment_like_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CommentLikeInfoQueryReq", description = "评论点赞") -public class CommentLikeInfoQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 评论id */ - @ApiModelProperty(name = "评论id", value = "评论id") - private Long commentId; - - /** 点赞人id */ - @ApiModelProperty(name = "点赞人id", value = "点赞人id") - private Long userId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoSaveReq.java deleted file mode 100644 index 0cb1c31..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/CommentLikeInfoSaveReq.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 评论点赞对象 comment_like_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "CommentLikeInfoSaveReq", description = "评论点赞") -public class CommentLikeInfoSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 评论id */ - - @ApiModelProperty(name = "评论id", value = "评论id", required = true) - private Long commentId; - - /** 点赞人id */ - - @ApiModelProperty(name = "点赞人id", value = "点赞人id", required = true) - private Long userId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoEditReq.java deleted file mode 100644 index 1505976..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoEditReq.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品信息对象 project_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "ProjectInfoEditReq", description = "商品信息") -public class ProjectInfoEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 商品名称 */ - @ApiModelProperty(name = "商品名称", value = "商品名称") - private String name; - - /** 商品描述 */ - @ApiModelProperty(name = "商品描述", value = "商品描述") - private String introduction; - - /** 主类型 */ - @ApiModelProperty(name = "主类型", value = "主类型") - private String mianType; - - /** 父类型 */ - @ApiModelProperty(name = "父类型", value = "父类型") - private String parentType; - - /** 商品类型 */ - @ApiModelProperty(name = "商品类型", value = "商品类型") - private String type; - - /** 商品图片 */ - @ApiModelProperty(name = "商品图片", value = "商品图片") - private String image; - - /** 商品轮播图 */ - @ApiModelProperty(name = "商品轮播图", value = "商品轮播图") - private String carouselImages; - - /** 商品状态 */ - @ApiModelProperty(name = "商品状态", value = "商品状态") - private String status; - - /** 规格 */ - @ApiModelProperty(name = "规格", value = "规格") - private Long ruleId; - - /** 品牌 */ - @ApiModelProperty(name = "品牌", value = "品牌") - private Long brandId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoQueryReq.java deleted file mode 100644 index 2562ea4..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoQueryReq.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品信息对象 project_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "ProjectInfoQueryReq", description = "商品信息") -public class ProjectInfoQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 商品名称 */ - @ApiModelProperty(name = "商品名称", value = "商品名称") - private String name; - - /** 商品描述 */ - @ApiModelProperty(name = "商品描述", value = "商品描述") - private String introduction; - - /** 主类型 */ - @ApiModelProperty(name = "主类型", value = "主类型") - private String mianType; - - /** 父类型 */ - @ApiModelProperty(name = "父类型", value = "父类型") - private String parentType; - - /** 商品类型 */ - @ApiModelProperty(name = "商品类型", value = "商品类型") - private String type; - - /** 商品图片 */ - @ApiModelProperty(name = "商品图片", value = "商品图片") - private String image; - - /** 商品轮播图 */ - @ApiModelProperty(name = "商品轮播图", value = "商品轮播图") - private String carouselImages; - - /** 商品状态 */ - @ApiModelProperty(name = "商品状态", value = "商品状态") - private String status; - - /** 规格 */ - @ApiModelProperty(name = "规格", value = "规格") - private Long ruleId; - - /** 品牌 */ - @ApiModelProperty(name = "品牌", value = "品牌") - private Long brandId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoSaveReq.java deleted file mode 100644 index 2af45a3..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectInfoSaveReq.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品信息对象 project_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "ProjectInfoSaveReq", description = "商品信息") -public class ProjectInfoSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 商品名称 */ - - @ApiModelProperty(name = "商品名称", value = "商品名称") - private String name; - - /** 商品描述 */ - - @ApiModelProperty(name = "商品描述", value = "商品描述") - private String introduction; - - /** 主类型 */ - - @ApiModelProperty(name = "主类型", value = "主类型") - private String mianType; - - /** 父类型 */ - - @ApiModelProperty(name = "父类型", value = "父类型") - private String parentType; - - /** 商品类型 */ - - @ApiModelProperty(name = "商品类型", value = "商品类型") - private String type; - - /** 商品图片 */ - - @ApiModelProperty(name = "商品图片", value = "商品图片") - private String image; - - /** 商品轮播图 */ - - @ApiModelProperty(name = "商品轮播图", value = "商品轮播图") - private String carouselImages; - - /** 商品状态 */ - - @ApiModelProperty(name = "商品状态", value = "商品状态") - private String status; - - /** 规格 */ - - @ApiModelProperty(name = "规格", value = "规格") - private Long ruleId; - - /** 品牌 */ - - @ApiModelProperty(name = "品牌", value = "品牌") - private Long brandId; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoEditReq.java deleted file mode 100644 index b2c5d68..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoEditReq.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.math.BigDecimal; - -/** - * 商品SKU对象 project_sku_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "ProjectSkuInfoEditReq", description = "商品SKU") -public class ProjectSkuInfoEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 商品id */ - @ApiModelProperty(name = "商品id", value = "商品id", required = true) - private Long projectId; - - /** sku */ - @ApiModelProperty(name = "sku", value = "sku", required = true) - private String sku; - - /** 商品库存 */ - @ApiModelProperty(name = "商品库存", value = "商品库存", required = true) - private Long stock; - - /** 商品价格 */ - @ApiModelProperty(name = "商品价格", value = "商品价格", required = true) - private BigDecimal price; - - /** 规格图片 */ - @ApiModelProperty(name = "规格图片", value = "规格图片", required = true) - private String image; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoQueryReq.java deleted file mode 100644 index f8aac9b..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoQueryReq.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.math.BigDecimal; - -/** - * 商品SKU对象 project_sku_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "ProjectSkuInfoQueryReq", description = "商品SKU") -public class ProjectSkuInfoQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 商品id */ - @ApiModelProperty(name = "商品id", value = "商品id") - private Long projectId; - - /** sku */ - @ApiModelProperty(name = "sku", value = "sku") - private String sku; - - /** 商品库存 */ - @ApiModelProperty(name = "商品库存", value = "商品库存") - private Long stock; - - /** 商品价格 */ - @ApiModelProperty(name = "商品价格", value = "商品价格") - private BigDecimal price; - - /** 规格图片 */ - @ApiModelProperty(name = "规格图片", value = "规格图片") - private String image; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoSaveReq.java deleted file mode 100644 index dea5752..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/ProjectSkuInfoSaveReq.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.math.BigDecimal; - -/** - * 商品SKU对象 project_sku_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "ProjectSkuInfoSaveReq", description = "商品SKU") -public class ProjectSkuInfoSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 商品id */ - - @ApiModelProperty(name = "商品id", value = "商品id", required = true) - private Long projectId; - - /** sku */ - - @ApiModelProperty(name = "sku", value = "sku", required = true) - private String sku; - - /** 商品库存 */ - - @ApiModelProperty(name = "商品库存", value = "商品库存", required = true) - private Long stock; - - /** 商品价格 */ - - @ApiModelProperty(name = "商品价格", value = "商品价格", required = true) - private BigDecimal price; - - /** 规格图片 */ - - @ApiModelProperty(name = "规格图片", value = "规格图片", required = true) - private String image; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoEditReq.java deleted file mode 100644 index a37a49d..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoEditReq.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 规格详情对象 rule_attr_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "RuleAttrInfoEditReq", description = "规格详情") -public class RuleAttrInfoEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 规格id */ - @ApiModelProperty(name = "规格id", value = "规格id", required = true) - private Long ruleId; - - /** 类目名称 */ - @ApiModelProperty(name = "类目名称", value = "类目名称") - private String name; - - /** 规格值 */ - @ApiModelProperty(name = "规格值", value = "规格值") - private String attrValue; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoQueryReq.java deleted file mode 100644 index 599c783..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoQueryReq.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 规格详情对象 rule_attr_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "RuleAttrInfoQueryReq", description = "规格详情") -public class RuleAttrInfoQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 规格id */ - @ApiModelProperty(name = "规格id", value = "规格id") - private Long ruleId; - - /** 类目名称 */ - @ApiModelProperty(name = "类目名称", value = "类目名称") - private String name; - - /** 规格值 */ - @ApiModelProperty(name = "规格值", value = "规格值") - private String attrValue; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoSaveReq.java deleted file mode 100644 index bf88bb5..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleAttrInfoSaveReq.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 规格详情对象 rule_attr_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "RuleAttrInfoSaveReq", description = "规格详情") -public class RuleAttrInfoSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 主键 */ - - @ApiModelProperty(name = "主键", value = "主键") - private Long id; - - /** 规格id */ - - @ApiModelProperty(name = "规格id", value = "规格id", required = true) - private Long ruleId; - - /** 类目名称 */ - - @ApiModelProperty(name = "类目名称", value = "类目名称") - private String name; - - /** 规格值 */ - - @ApiModelProperty(name = "规格值", value = "规格值") - private String attrValue; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoEditReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoEditReq.java deleted file mode 100644 index 6bacf89..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoEditReq.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品规格对象 rule_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "RuleInfoEditReq", description = "商品规格") -public class RuleInfoEditReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 规格名称 */ - @ApiModelProperty(name = "规格名称", value = "规格名称") - private String name; - - /** 规格状态 */ - @ApiModelProperty(name = "规格状态", value = "规格状态") - private String status; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoQueryReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoQueryReq.java deleted file mode 100644 index 13f7225..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoQueryReq.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -/** - * 商品规格对象 rule_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "RuleInfoQueryReq", description = "商品规格") -public class RuleInfoQueryReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 规格名称 */ - @ApiModelProperty(name = "规格名称", value = "规格名称") - private String name; - - /** 规格状态 */ - @ApiModelProperty(name = "规格状态", value = "规格状态") - private String status; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoSaveReq.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoSaveReq.java deleted file mode 100644 index cb1e1cd..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/req/RuleInfoSaveReq.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.muyu.product.domain.req; - -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.model.RuleAttrAddModel; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; - -/** - * 商品规格对象 rule_info - * - * @author DongZeLiang - * @date 2024-02-27 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@ApiModel(value = "RuleInfoSaveReq", description = "商品规格") -public class RuleInfoSaveReq extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 规格名称 */ - @ApiModelProperty(name = "规格名称", value = "规格名称") - private String name; - - /** 规格状态 */ - @ApiModelProperty(name = "规格状态", value = "规格状态") - private String status; - - /** - * 规格属性集合 - */ - private List ruleAttrList; -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/AttributeGroupPageResp.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/AttributeGroupPageResp.java deleted file mode 100644 index 7936caf..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/AttributeGroupPageResp.java +++ /dev/null @@ -1,59 +0,0 @@ -package com.muyu.product.domain.resp; - -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.AttributeGroup; -import com.muyu.product.domain.AttributeInfo; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; -import java.util.function.Function; - -/** - * @author DongZl - * @description: 属性组列表对象 - * @Date 2024-2-28 下午 04:15 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class AttributeGroupPageResp extends BaseEntity { - - private static final long serialVersionUID = 1L; - - /** 属性组编号 */ - private Long id; - - /** 组名称 */ - private String name; - - /** 状态 */ - private String states; - - /** - * 属性对象集合 - */ - private List attributeInfoList; - - public static AttributeGroupPageResp groupBuild (AttributeGroup attributeGroup, List attributeInfos) { - return AttributeGroupPageResp.builder() - .id(attributeGroup.getId()) - .name(attributeGroup.getName()) - .states(attributeGroup.getStates()) - .attributeInfoList(attributeInfos) - .build(); - } - public static AttributeGroupPageResp groupFunBuild (AttributeGroup attributeGroup, Function > function) { - return AttributeGroupPageResp.builder() - .id(attributeGroup.getId()) - .name(attributeGroup.getName()) - .states(attributeGroup.getStates()) - .attributeInfoList(function.apply(attributeGroup.getId())) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/CategoryCommonElementResp.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/CategoryCommonElementResp.java deleted file mode 100644 index 36a0189..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/CategoryCommonElementResp.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.muyu.product.domain.resp; - -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.model.TemplateAttributeGroupModel; -import com.muyu.product.domain.model.TemplateAttributeModel; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; - -/** - * @author DongZl - * @description: 商品类别公共元素 - * @Date 2024-3-6 下午 02:25 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class CategoryCommonElementResp extends BaseEntity { - - /** - * 共有属性组 - */ - private List templateAttributeGroupList; - - /** - * 共有属性 - */ - private List templateAttributeList; - - /** - * 自有属性(所有未包含属性) - */ - private List attributeList; - - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/CategoryParentCommonElementResp.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/CategoryParentCommonElementResp.java deleted file mode 100644 index ba5576a..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/CategoryParentCommonElementResp.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.muyu.product.domain.resp; - -import com.muyu.product.domain.AttributeGroup; -import com.muyu.product.domain.AttributeInfo; -import com.muyu.product.domain.BrandInfo; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; - -import java.util.List; - -/** - * @author DongZl - * @description: 类别父通用元素 - * @Date 2024-3-1 上午 11:02 - */ -@Data -@Builder -@NoArgsConstructor -@AllArgsConstructor -public class CategoryParentCommonElementResp { - - /** - * 属性集合 - */ - private List attributeInfoList; - - /** - * 属性组集合 - */ - private List attributeGroupList; - - /** - * 品牌集合 - */ - private List brandInfoList; - -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/RuleInfoResp.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/RuleInfoResp.java deleted file mode 100644 index 8596383..0000000 --- a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/resp/RuleInfoResp.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.muyu.product.domain.resp; - -import com.muyu.common.core.web.domain.BaseEntity; -import com.muyu.product.domain.RuleInfo; -import com.muyu.product.domain.model.RuleAttrAddModel; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; - -import java.util.List; -import java.util.function.Function; - -/** - * @author DongZl - * @description: 规格返回结果集 - * @Date 2024-3-4 下午 04:08 - */ -@Data -@SuperBuilder -@NoArgsConstructor -@AllArgsConstructor -@EqualsAndHashCode(callSuper = true) -public class RuleInfoResp extends BaseEntity { - - private Long id; - - /** 规格名称 */ - private String name; - - /** 规格状态 */ - private String status; - - /** - * 规格属性集合 - */ - private List ruleAttrList; - - public static RuleInfoResp infoBuild (RuleInfo ruleInfo, Function> ruleAttrList) { - return RuleInfoResp.builder() - .id(ruleInfo.getId()) - .name(ruleInfo.getName()) - .status(ruleInfo.getStatus()) - .ruleAttrList(ruleAttrList.apply(ruleInfo.getId())) - .build(); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/ConstraintValidator.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/ConstraintValidator.java new file mode 100644 index 0000000..bb605ee --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/ConstraintValidator.java @@ -0,0 +1,17 @@ +package com.muyu.product.domain.validator; + +import com.fasterxml.jackson.databind.introspect.Annotated; + +import javax.validation.ConstraintValidatorContext; + +/** + * @Author: wangxinyuan + * @Date: 2024/3/24 9:39 + */ +public interface ConstraintValidator { + + default void initialize(A constraintAnnotation) { + } + + boolean isValid(T var1, ConstraintValidatorContext var2); +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/FlagValidator.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/FlagValidator.java new file mode 100644 index 0000000..e208df9 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/FlagValidator.java @@ -0,0 +1,24 @@ +package com.muyu.product.domain.validator; + +import javax.validation.Constraint; +import java.lang.annotation.*; +import javax.validation.Payload; + +/** + * @Author: wangxinyuan + * @Date: 2024/3/24 9:34 + */ + +@Documented +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.FIELD,ElementType.PARAMETER}) +@Constraint(validatedBy = FlagValidatorClass.class) +public @interface FlagValidator { + String[] value() default {}; + + String message() default "flag is not found"; + + Class[] groups() default {}; + + Class[] payload() default {}; +} diff --git a/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/FlagValidatorClass.java b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/FlagValidatorClass.java new file mode 100644 index 0000000..e004119 --- /dev/null +++ b/muyu-modules/muyu-product/muyu-product-commo/src/main/java/com/muyu/product/domain/validator/FlagValidatorClass.java @@ -0,0 +1,29 @@ +package com.muyu.product.domain.validator; + +import com.muyu.product.domain.validator.FlagValidator; + +import javax.validation.ConstraintValidator; +import javax.validation.ConstraintValidatorContext; + +/** + * 状态标记校验器 + */ +public class FlagValidatorClass implements ConstraintValidator { + private String[] values; + @Override + public void initialize(FlagValidator flagValidator) { + this.values = flagValidator.value(); + } + + @Override + public boolean isValid(Integer value, ConstraintValidatorContext constraintValidatorContext) { + boolean isValid = false; + for(int i=0;i>list(AttributeGroupQueryReq attributeGroupQueryReq){ - startPage(); - TableDataInfotableDataInfo= - attributeGroupService.page(AttributeGroup.queryBuild(attributeGroupQueryReq)); - return Result.success(tableDataInfo); - - } -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/AttributeInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/AttributeInfoController.java deleted file mode 100644 index 55ccb47..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/AttributeInfoController.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.muyu.product.controller; - -import java.util.List; -import javax.servlet.http.HttpServletResponse; - -import io.swagger.annotations.*; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import com.muyu.common.core.domain.Result; -import com.muyu.common.core.utils.poi.ExcelUtil; -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.common.log.annotation.Log; -import com.muyu.common.log.enums.BusinessType; -import com.muyu.common.security.annotation.RequiresPermissions; -import com.muyu.product.domain.AttributeInfo; -import com.muyu.product.domain.req.AttributeInfoQueryReq; -import com.muyu.product.domain.req.AttributeInfoSaveReq; -import com.muyu.product.domain.req.AttributeInfoEditReq; -import com.muyu.product.service.AttributeInfoService; -import com.muyu.common.core.web.page.TableDataInfo; - -@Api(tags = "商品属性") -@RestController -@RequestMapping("/attribute") -public class AttributeInfoController extends BaseController { - - @Autowired - private AttributeInfoService attributeInfoService; - - - /* - * 查询商品属性列表 - * */ - -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandInfoController.java deleted file mode 100644 index 772b6e7..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/BrandInfoController.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.muyu.product.controller; - -import com.muyu.common.core.domain.Result; -import com.muyu.common.core.text.Convert; -import com.muyu.common.core.utils.poi.ExcelUtil; -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.common.log.annotation.Log; -import com.muyu.common.log.enums.BusinessType; -import com.muyu.common.security.annotation.RequiresPermissions; -import com.muyu.product.domain.BrandInfo; -import com.muyu.product.domain.req.BrandInfoEditReq; -import com.muyu.product.domain.req.BrandInfoQueryReq; -import com.muyu.product.domain.req.BrandInfoSaveReq; -import com.muyu.product.service.BrandInfoService; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; - -import javax.servlet.http.HttpServletResponse; -import java.util.List; - -@Api(tags = "品牌信息") -@RestController -@RequestMapping("/brand") -public class BrandInfoController extends BaseController { - - @Autowired - private BrandInfoService brandInfoService; - - @ApiOperation("获取品牌信息列表") - @RequiresPermissions("product:brand:list") - @GetMapping("/list") - public Result list(BrandInfoQueryReq brandInfoQueryReq){ - boolean isPage=brandInfoQueryReq.getParams().get("isPage") == null || Convert.toBool(brandInfoQueryReq.getParams().get("isPage"),true); - if(isPage){ - startPage(); - } - Listlist=brandInfoService.list(BrandInfo.queryBuild(brandInfoQueryReq)); - return isPage ? getDataTable(list) : Result.success(list); - } - - @ApiOperation("导出品牌信息列表") - @RequiresPermissions("product:brand:export") - @Log(title = "品牌信息", businessType = BusinessType.EXPORT) - @PostMapping("/export") - public void export(HttpServletResponse response, BrandInfo brandInfo) { - List list = brandInfoService.list(brandInfo); - ExcelUtil util = new ExcelUtil(BrandInfo.class); - util.exportExcel(response, list, "品牌信息数据"); - } - - - @ApiOperation("获取品牌信息详细信息") - @RequiresPermissions("product:brand:query") - @GetMapping(value = "/{id}") - @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class) - public Result getInfo(@PathVariable("id") Long id) { - return Result.success(brandInfoService.getById(id)); - } - - - /* - *新增品牌信息 - * */ - @RequiresPermissions("product:brand:add") - @Log(title = "品牌信息",businessType =BusinessType.INSERT ) - @PostMapping - @ApiOperation("新增品牌信息") - public Result add(@RequestBody BrandInfoSaveReq brandInfoSaveReq){ - return toAjax(brandInfoService.save(BrandInfo.saveBuild(brandInfoSaveReq))); - } - - /* - * 修改品牌信息 - * */ - @RequiresPermissions("product:brand:edit") - @Log(title = "品牌信息",businessType = BusinessType.UPDATE) - @PutMapping("{id}") - @ApiOperation("修改品牌信息") - public Resultedit(@PathVariable Long id , @RequestBody BrandInfoEditReq brandInfoEditReq){ - return toAjax(brandInfoService.updateById(BrandInfo.editBuild(id,brandInfoEditReq))); - } - - /* - * 删除品牌信息 - * */ - @RequiresPermissions("product:brand:remove") - @Log(title = "品牌信息",businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") - @ApiOperation("删除品牌信息") - @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4") - public Resultremove(@PathVariable List ids){ - return toAjax(brandInfoService.removeBatchByIds(ids)); - } - - - - - - - - - -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CategoryInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CategoryInfoController.java deleted file mode 100644 index a176c66..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CategoryInfoController.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.muyu.product.controller; - -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.product.service.CategoryInfoService; -import io.swagger.annotations.Api; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api(tags = "品类信息") -@RestController -@RequestMapping("/category") -public class CategoryInfoController extends BaseController { - - @Autowired - private CategoryInfoService categoryInfoService; -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CommentInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CommentInfoController.java deleted file mode 100644 index 345b0b0..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CommentInfoController.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.muyu.product.controller; - -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.product.service.CommentInfoService; -import io.swagger.annotations.Api; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api("/商品评论") -@RestController -@RequestMapping("/comment") -public class CommentInfoController extends BaseController { - - @Autowired - private CommentInfoService commentInfoService; - - -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CommentLikeInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CommentLikeInfoController.java deleted file mode 100644 index bfc8607..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/CommentLikeInfoController.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.muyu.product.controller; - -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.product.service.CommentLikeInfoService; -import io.swagger.annotations.Api; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api(tags = "评论点赞") -@RestController -@RequestMapping("/commentLike") -public class CommentLikeInfoController extends BaseController { - - @Autowired - private CommentLikeInfoService commentLikeInfoService; -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/ProjectInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/ProjectInfoController.java deleted file mode 100644 index d2f52e4..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/ProjectInfoController.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.muyu.product.controller; - -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.product.service.ProjectInfoService; -import io.swagger.annotations.Api; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api(tags = "商品信息") -@RestController -@RequestMapping("/info") -public class ProjectInfoController extends BaseController { - - @Autowired - private ProjectInfoService projectInfoService; -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/ProjectSkuInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/ProjectSkuInfoController.java deleted file mode 100644 index 0eeff4c..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/ProjectSkuInfoController.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.muyu.product.controller; - -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.product.service.ProjectSkuInfoService; -import io.swagger.annotations.Api; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api(tags = "商品SKU") -@RestController -@RequestMapping("/sku") -public class ProjectSkuInfoController extends BaseController { - - @Autowired - private ProjectSkuInfoService projectSkuInfoService; -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/RuleAttrInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/RuleAttrInfoController.java deleted file mode 100644 index a969a3b..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/RuleAttrInfoController.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.muyu.product.controller; - -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.product.service.RuleAttrInfoService; -import io.swagger.annotations.Api; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api(tags = "规格详情") -@RestController -@RequestMapping("/ruleAttr") -public class RuleAttrInfoController extends BaseController { - - @Autowired - private RuleAttrInfoService ruleAttrInfoService; -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/RuleInfoController.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/RuleInfoController.java deleted file mode 100644 index cc7fd66..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/controller/RuleInfoController.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.muyu.product.controller; - -import com.muyu.common.core.web.controller.BaseController; -import com.muyu.product.service.RuleInfoService; -import io.swagger.annotations.Api; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api(tags = "商品规格") -@RestController -@RequestMapping("/rule") -public class RuleInfoController extends BaseController { - - @Autowired - private RuleInfoService ruleInfoService; -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsAttributeGroupMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsAttributeGroupMapper.java deleted file mode 100644 index 8111dde..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsAttributeGroupMapper.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.AsAttributeGroup; -/** - * 属性与组中间Mapper接口 - * - * */ -public interface AsAttributeGroupMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsBrandProjectMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsBrandProjectMapper.java deleted file mode 100644 index 5f961cd..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsBrandProjectMapper.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -/* -* 品牌商品中间Mapper接口 -* */ -public interface AsBrandProjectMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryAttributeGroupMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryAttributeGroupMapper.java deleted file mode 100644 index 28a6fc2..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryAttributeGroupMapper.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.AsCategoryAttributeGroup; -/* -* 品类属性组中间Mapper接口 -* */ -public interface AsCategoryAttributeGroupMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryAttributeMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryAttributeMapper.java deleted file mode 100644 index 8ade54c..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryAttributeMapper.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.AsCategoryAttribute; -/* -* 品类属性中间Mapper接口 -* */ -public interface AsCategoryAttributeMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryBrandMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryBrandMapper.java deleted file mode 100644 index 3a64917..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsCategoryBrandMapper.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.AsCategoryBrand; -/* -* 品类品牌中间Mapper接口 -* */ -public interface AsCategoryBrandMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsProductAttributeInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsProductAttributeInfoMapper.java deleted file mode 100644 index 918b0a1..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AsProductAttributeInfoMapper.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.AsProductAttributeInfo; -/* -* 商品属性Mapper接口 -* */ -public interface AsProductAttributeInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AttributeGroupMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AttributeGroupMapper.java deleted file mode 100644 index adcef11..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AttributeGroupMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.AttributeGroup; - -public interface AttributeGroupMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AttributeInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AttributeInfoMapper.java deleted file mode 100644 index 570b06c..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/AttributeInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.AttributeInfo; - -public interface AttributeInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/BrandInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/BrandInfoMapper.java deleted file mode 100644 index 4a9161e..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/BrandInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.BrandInfo; - -public interface BrandInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CategoryInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CategoryInfoMapper.java deleted file mode 100644 index 647df3e..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CategoryInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.CategoryInfo; - -public interface CategoryInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CommentInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CommentInfoMapper.java deleted file mode 100644 index a23ab17..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CommentInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.CommentInfo; - -public interface CommentInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CommentLikeInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CommentLikeInfoMapper.java deleted file mode 100644 index 01e703e..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/CommentLikeInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.CommentLikeInfo; - -public interface CommentLikeInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/ProjectInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/ProjectInfoMapper.java deleted file mode 100644 index 0a28033..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/ProjectInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.ProjectInfo; - -public interface ProjectInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/ProjectSkuInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/ProjectSkuInfoMapper.java deleted file mode 100644 index cd64383..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/ProjectSkuInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.ProjectSkuInfo; - -public interface ProjectSkuInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/RuleAttrInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/RuleAttrInfoMapper.java deleted file mode 100644 index 5d28d73..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/RuleAttrInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.RuleAttrInfo; - -public interface RuleAttrInfoMapper extends BaseMapper { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/RuleInfoMapper.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/RuleInfoMapper.java deleted file mode 100644 index e4cb334..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/mapper/RuleInfoMapper.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.muyu.product.domain.RuleInfo; - -public interface RuleInfoMapper extends BaseMapper{ -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsAttributeGroupService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsAttributeGroupService.java deleted file mode 100644 index fbaf919..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsAttributeGroupService.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.AsAttributeGroup; - -import java.util.List; - -public interface AsAttributeGroupService extends IService { - - /* - * 查询属性与组中间列表 - * */ - - public Listlist(AsAttributeGroup attributeGroup); -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsBrandProjectService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsBrandProjectService.java deleted file mode 100644 index d9c4498..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsBrandProjectService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.AsBrandProject; - -public interface AsBrandProjectService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryAttributeGroupService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryAttributeGroupService.java deleted file mode 100644 index b0da901..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryAttributeGroupService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.AsCategoryAttributeGroup; - -public interface AsCategoryAttributeGroupService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryAttributeService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryAttributeService.java deleted file mode 100644 index f8fa5e2..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryAttributeService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.AsCategoryAttribute; - -public interface AsCategoryAttributeService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryBrandService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryBrandService.java deleted file mode 100644 index d9f9995..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsCategoryBrandService.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.muyu.product.service; - -public interface AsCategoryBrandService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsProductAttributeInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsProductAttributeInfoService.java deleted file mode 100644 index 070fe40..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AsProductAttributeInfoService.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.muyu.product.service; - -public interface AsProductAttributeInfoService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AttributeGroupService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AttributeGroupService.java deleted file mode 100644 index 2d4e02a..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AttributeGroupService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.common.core.web.page.TableDataInfo; -import com.muyu.product.domain.AttributeGroup; -import com.muyu.product.domain.AttributeInfo; -import com.muyu.product.domain.model.AttributeGroupSaveModel; -import com.muyu.product.domain.resp.AttributeGroupPageResp; - -import java.util.List; - -public interface AttributeGroupService extends IService { - - public TableDataInfopage(AttributeGroup attributeGroup); - - - public Listlist(AttributeGroup attributeGroup); - - - public Boolean save(AttributeGroupSaveModel attributeGroupSaveModel); - - -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AttributeInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AttributeInfoService.java deleted file mode 100644 index cd00f7c..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/AttributeInfoService.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.AttributeInfo; - -import java.util.List; - -public interface AttributeInfoService extends IService { - - - - public Listlist(AttributeInfo attributeInfo); - - public ListattributeListByGroupId(Long groupId); - - -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/BrandInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/BrandInfoService.java deleted file mode 100644 index d9f1b23..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/BrandInfoService.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.BrandInfo; - -import java.util.List; -import java.util.Map; - -public interface BrandInfoService extends IService { - - List list(BrandInfo brandInfo); - - -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CategoryInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CategoryInfoService.java deleted file mode 100644 index c53e591..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CategoryInfoService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.CategoryInfo; - -public interface CategoryInfoService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CommentInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CommentInfoService.java deleted file mode 100644 index 1f79485..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CommentInfoService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.CommentInfo; - -public interface CommentInfoService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CommentLikeInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CommentLikeInfoService.java deleted file mode 100644 index 085f355..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/CommentLikeInfoService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.CommentLikeInfo; - -public interface CommentLikeInfoService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/ProjectInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/ProjectInfoService.java deleted file mode 100644 index 81eb1eb..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/ProjectInfoService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.ProjectInfo; - -public interface ProjectInfoService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/ProjectSkuInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/ProjectSkuInfoService.java deleted file mode 100644 index e37c207..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/ProjectSkuInfoService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.ProjectSkuInfo; - -public interface ProjectSkuInfoService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/RuleAttrInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/RuleAttrInfoService.java deleted file mode 100644 index 8bb7335..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/RuleAttrInfoService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.RuleAttrInfo; - -public interface RuleAttrInfoService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/RuleInfoService.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/RuleInfoService.java deleted file mode 100644 index d4567e5..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/RuleInfoService.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.muyu.product.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.muyu.product.domain.RuleInfo; - -public interface RuleInfoService extends IService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AsAttributeGroupServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AsAttributeGroupServiceimpl.java deleted file mode 100644 index 3fabf67..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AsAttributeGroupServiceimpl.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.common.core.utils.uuid.ObjUtils; -import com.muyu.product.domain.AsAttributeGroup; -import com.muyu.product.mapper.AsAttributeGroupMapper; -import com.muyu.product.service.AsAttributeGroupService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -import java.util.List; - -/* -* 属性与组中间Service业务层处理 -* */ -@Slf4j -@Service -public class AsAttributeGroupServiceimpl extends ServiceImplimplements AsAttributeGroupService { - @Override - public List list(AsAttributeGroup attributeGroup) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - return list(queryWrapper); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AsBrandProjectServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AsBrandProjectServiceimpl.java deleted file mode 100644 index 17f79d0..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AsBrandProjectServiceimpl.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.muyu.product.service.impl; - -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -@Slf4j -@Service -public class AsBrandProjectServiceimpl { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AttributeGroupServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AttributeGroupServiceimpl.java deleted file mode 100644 index 17df706..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AttributeGroupServiceimpl.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.github.pagehelper.PageInfo; -import com.muyu.common.core.utils.ObjUtils; -import com.muyu.common.core.web.page.TableDataInfo; -import com.muyu.product.domain.AsAttributeGroup; -import com.muyu.product.domain.AttributeGroup; -import com.muyu.product.domain.model.AttributeGroupSaveModel; -import com.muyu.product.domain.resp.AttributeGroupPageResp; -import com.muyu.product.mapper.AttributeGroupMapper; -import com.muyu.product.service.AsAttributeGroupService; -import com.muyu.product.service.AttributeGroupService; -import com.muyu.product.service.AttributeInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Slf4j -@Service -public class AttributeGroupServiceimpl extends ServiceImplimplements AttributeGroupService { - - @Autowired - private AsAttributeGroupService attributeGroupService; - - @Autowired - private AttributeInfoService attributeInfoService; - - - /** - * 分页查询 - * - * @param attributeGroupQuery 分组对象 - * - * @return 返回结果 - */ - @Override - public TableDataInfo page (AttributeGroup attributeGroupQuery) { - List list = this.list(attributeGroupQuery); - List pageRespList = list.stream() - .map(attributeGroup -> - AttributeGroupPageResp.groupFunBuild( - attributeGroup, groupId -> attributeInfoService.attributeListByGroupId(groupId) - ) - ) - .toList(); - return TableDataInfo.builder() - .total(new PageInfo(list).getTotal()) - .rows(pageRespList) - .build(); - } - - - /* - * 查询属性组 - * */ - @Override - public List list(AttributeGroup attributeGroup) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - if(ObjUtils.notNull(attributeGroup.getName())){ - queryWrapper.like(AttributeGroup::getName,attributeGroup.getName()); - } - if (ObjUtils.notNull(attributeGroup.getStates())) { - queryWrapper.eq(AttributeGroup::getStates, attributeGroup.getStates()); - } - return this.list(queryWrapper); - } - - /* - * 是否成功 - * */ - @Override - public Boolean save(AttributeGroupSaveModel attributeGroupSaveModel) { - AttributeGroup attributeGroup=attributeGroupSaveModel.buildAttributeGroup(); - boolean save=this.save(attributeGroup); - Long attributeGroupId=attributeGroup.getId(); - ListattributeIdList=attributeGroupSaveModel.getAttributeIdList(); - - attributeGroupService.saveBatch( - attributeIdList.stream() - .map(attributeId-> AsAttributeGroup.buildGroup(attributeGroupId,attributeId)) - .toList() - ); - return save; - } - - -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AttributeInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AttributeInfoServiceimpl.java deleted file mode 100644 index 5e17646..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/AttributeInfoServiceimpl.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.common.core.utils.ObjUtils; -import com.muyu.product.domain.AttributeInfo; -import com.muyu.product.mapper.AttributeInfoMapper; -import com.muyu.product.service.AsAttributeGroupService; -import com.muyu.product.service.AttributeInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Slf4j -@Service -public class AttributeInfoServiceimpl extends ServiceImplimplements AttributeInfoService { - - - @Autowired - private AsAttributeGroupService attributeGroupService; - - - - @Override - public List list(AttributeInfo attributeInfo) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - - if(ObjUtils.notNull(attributeInfo.getName())){ - queryWrapper.like(AttributeInfo::getName,attributeInfo.getName()); - } - - if (ObjUtils.notNull(attributeInfo.getCode())){ - queryWrapper.like(AttributeInfo::getCode, attributeInfo.getCode()); - } - - return this.list(queryWrapper); - } - @Override - public List attributeListByGroupId(Long groupId) { - return null; - } -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/BrandInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/BrandInfoServiceimpl.java deleted file mode 100644 index 906018f..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/BrandInfoServiceimpl.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.common.core.utils.uuid.ObjUtils; -import com.muyu.common.security.utils.SecurityUtils; -import com.muyu.product.domain.BrandInfo; -import com.muyu.product.mapper.BrandInfoMapper; -import com.muyu.product.service.BrandInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - - -import java.util.Date; -import java.util.List; - - -@Slf4j -@Service -public class BrandInfoServiceimpl extends ServiceImplimplements BrandInfoService { - /* - * 品牌 - * */ - @Override - public List list(BrandInfo brandInfo) { - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - if(ObjUtils.notNull(brandInfo.getName())){ - queryWrapper.like(BrandInfo::getName,brandInfo.getName()); - } - if(ObjUtils.notNull(brandInfo.getLogo())){ - queryWrapper.eq(BrandInfo::getLogo,brandInfo.getLogo()); - } - if(ObjUtils.notNull(brandInfo.getStart())){ - queryWrapper.eq(BrandInfo::getStart,brandInfo.getStart()); - } - if(ObjUtils.notNull(brandInfo.getIntroduction())){ - queryWrapper.eq(BrandInfo::getIntroduction,brandInfo.getIntroduction()); - } - return list(queryWrapper); - } - - @Override - public boolean save(BrandInfo entity) { - entity.setCreateBy(SecurityUtils.getUsername()); - entity.setCreateTime(new Date()); - return super.save(entity); - } - - @Override - public boolean updateById(BrandInfo entity) { - entity.setUpdateBy(SecurityUtils.getUsername()); - entity.setUpdateTime(new Date()); - return super.updateById(entity); - } -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CategoryInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CategoryInfoServiceimpl.java deleted file mode 100644 index 8ca7cb2..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CategoryInfoServiceimpl.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.product.domain.CategoryInfo; -import com.muyu.product.mapper.CategoryInfoMapper; -import com.muyu.product.service.CategoryInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -@Slf4j -@Service -public class CategoryInfoServiceimpl extends ServiceImpl implements CategoryInfoService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CommentInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CommentInfoServiceimpl.java deleted file mode 100644 index 51e142a..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CommentInfoServiceimpl.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.product.domain.CommentInfo; -import com.muyu.product.mapper.CommentInfoMapper; -import com.muyu.product.service.CommentInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -@Slf4j -@Service -public class CommentInfoServiceimpl extends ServiceImpl implements CommentInfoService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CommentLikeInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CommentLikeInfoServiceimpl.java deleted file mode 100644 index 6600bc4..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/CommentLikeInfoServiceimpl.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.product.domain.CommentLikeInfo; -import com.muyu.product.mapper.CommentLikeInfoMapper; -import com.muyu.product.service.CommentLikeInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -@Slf4j -@Service -public class CommentLikeInfoServiceimpl extends ServiceImpl implements CommentLikeInfoService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/ProjectInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/ProjectInfoServiceimpl.java deleted file mode 100644 index a4ba4fe..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/ProjectInfoServiceimpl.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.product.domain.ProjectInfo; -import com.muyu.product.mapper.ProjectInfoMapper; -import com.muyu.product.service.ProjectInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -@Slf4j -@Service -public class ProjectInfoServiceimpl extends ServiceImplimplements ProjectInfoService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/ProjectSkuInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/ProjectSkuInfoServiceimpl.java deleted file mode 100644 index 2635165..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/ProjectSkuInfoServiceimpl.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.product.domain.ProjectSkuInfo; -import com.muyu.product.mapper.ProjectSkuInfoMapper; -import com.muyu.product.service.ProjectSkuInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -@Slf4j -@Service -public class ProjectSkuInfoServiceimpl extends ServiceImplimplements ProjectSkuInfoService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/RuleAttrInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/RuleAttrInfoServiceimpl.java deleted file mode 100644 index 3ac417e..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/RuleAttrInfoServiceimpl.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.product.domain.RuleAttrInfo; -import com.muyu.product.mapper.RuleAttrInfoMapper; -import com.muyu.product.service.RuleAttrInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -@Slf4j -@Service -public class RuleAttrInfoServiceimpl extends ServiceImpl implements RuleAttrInfoService { -} diff --git a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/RuleInfoServiceimpl.java b/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/RuleInfoServiceimpl.java deleted file mode 100644 index 971aa64..0000000 --- a/muyu-modules/muyu-product/muyu-product-server/src/main/java/com/muyu/product/service/impl/RuleInfoServiceimpl.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.muyu.product.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.muyu.product.domain.RuleInfo; -import com.muyu.product.mapper.RuleInfoMapper; -import com.muyu.product.service.RuleInfoService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -@Slf4j -@Service -public class RuleInfoServiceimpl extends ServiceImpl implements RuleInfoService { -}