创建实体类
parent
966581668b
commit
50c2c0cdfd
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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<String> 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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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<Long> ruleId, Supplier<String> createBy) {
|
||||
return RuleAttrInfo.builder()
|
||||
.ruleId(ruleId.get())
|
||||
.name(ruleAttrAddModel.getName())
|
||||
.attrValue(String.join(",", ruleAttrAddModel.getValueList()))
|
||||
.createBy(createBy.get())
|
||||
.createTime(new Date())
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -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<String> createBy) {
|
||||
return RuleInfo.builder()
|
||||
.name(ruleInfoAddModel.getName())
|
||||
.status(ruleInfoAddModel.getStatus())
|
||||
.createBy(createBy.get())
|
||||
.createTime(new Date())
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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 List<PmsProductAttribute>productAttributeList;
|
||||
|
||||
}
|
|
@ -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<Long> 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();
|
||||
}
|
||||
}
|
|
@ -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<Long> attributeGroupIdList;
|
||||
/**
|
||||
* 商品属性关联ID
|
||||
*/
|
||||
private List<Long> attributeIdList;
|
||||
|
||||
/**
|
||||
* 商品品牌组关联ID
|
||||
*/
|
||||
private List<Long> brandIdList;
|
||||
|
||||
/**
|
||||
* 添加构造器
|
||||
*/
|
||||
public static CategoryInfoSaveModel saveBuild(CategoryInfoSaveReq categoryInfoSaveReq, Supplier<String> 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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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<Criteria> 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<Criteria> 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<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> 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<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> 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<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> 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<Integer> values) {
|
||||
addCriterion("attribute_count in", values, "attributeCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttributeCountNotIn(List<Integer> 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<Integer> values) {
|
||||
addCriterion("param_count in", values, "paramCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andParamCountNotIn(List<Integer> 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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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<Criteria> 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<Criteria> 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<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> 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<Long> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Long> 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<Long> values) {
|
||||
addCriterion("product_attribute_category_id in", values, "productAttributeCategoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProductAttributeCategoryIdNotIn(List<Long> 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<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> 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<Integer> values) {
|
||||
addCriterion("select_type in", values, "selectType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSelectTypeNotIn(List<Integer> 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<Integer> values) {
|
||||
addCriterion("input_type in", values, "inputType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInputTypeNotIn(List<Integer> 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<String> values) {
|
||||
addCriterion("input_list in", values, "inputList");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInputListNotIn(List<String> 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<Integer> values) {
|
||||
addCriterion("sort in", values, "sort");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSortNotIn(List<Integer> 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<Integer> values) {
|
||||
addCriterion("filter_type in", values, "filterType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFilterTypeNotIn(List<Integer> 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<Integer> values) {
|
||||
addCriterion("search_type in", values, "searchType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSearchTypeNotIn(List<Integer> 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<Integer> values) {
|
||||
addCriterion("related_status in", values, "relatedStatus");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRelatedStatusNotIn(List<Integer> 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<Integer> values) {
|
||||
addCriterion("hand_add_status in", values, "handAddStatus");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andHandAddStatusNotIn(List<Integer> 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<Integer> values) {
|
||||
addCriterion("type in", values, "type");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTypeNotIn(List<Integer> 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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
|
@ -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<String> valueList;
|
||||
|
||||
public static RuleAttrAddModel infoBuild (RuleAttrInfo ruleAttrInfo) {
|
||||
return RuleAttrAddModel.builder()
|
||||
.name(ruleAttrInfo.getName())
|
||||
.valueList(Arrays.stream(ruleAttrInfo.getAttrValue().split(",")).toList())
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -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<RuleAttrAddModel> ruleAttrList;
|
||||
|
||||
public static RuleInfoAddModel saveReqBuild(RuleInfoSaveReq req){
|
||||
return RuleInfoAddModel.builder()
|
||||
.name(req.getName())
|
||||
.status(req.getStatus())
|
||||
.ruleAttrList(req.getRuleAttrList())
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -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<TemplateAttributeModel> 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<Long, List<TemplateAttributeModel>> attributeList){
|
||||
return TemplateAttributeGroupModel.builder()
|
||||
.groupName(attributeGroup.getName())
|
||||
.attributeList(attributeList.apply(attributeGroup.getId()))
|
||||
.build();
|
||||
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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<Long> attributeIdList;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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<Long> attributeGroupIdList;
|
||||
/**
|
||||
* 商品属性关联ID
|
||||
*/
|
||||
private List<Long> attributeIdList;
|
||||
|
||||
/**
|
||||
* 商品品牌组关联ID
|
||||
*/
|
||||
private List<Long> brandIdList;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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<RuleAttrAddModel> ruleAttrList;
|
||||
}
|
|
@ -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<AttributeInfo> attributeInfoList;
|
||||
|
||||
public static AttributeGroupPageResp groupBuild (AttributeGroup attributeGroup, List<AttributeInfo> attributeInfos) {
|
||||
return AttributeGroupPageResp.builder()
|
||||
.id(attributeGroup.getId())
|
||||
.name(attributeGroup.getName())
|
||||
.states(attributeGroup.getStates())
|
||||
.attributeInfoList(attributeInfos)
|
||||
.build();
|
||||
}
|
||||
public static AttributeGroupPageResp groupFunBuild (AttributeGroup attributeGroup, Function<Long,List<AttributeInfo> > function) {
|
||||
return AttributeGroupPageResp.builder()
|
||||
.id(attributeGroup.getId())
|
||||
.name(attributeGroup.getName())
|
||||
.states(attributeGroup.getStates())
|
||||
.attributeInfoList(function.apply(attributeGroup.getId()))
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -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<TemplateAttributeGroupModel> templateAttributeGroupList;
|
||||
|
||||
/**
|
||||
* 共有属性
|
||||
*/
|
||||
private List<TemplateAttributeModel> templateAttributeList;
|
||||
|
||||
/**
|
||||
* 自有属性(所有未包含属性)
|
||||
*/
|
||||
private List<TemplateAttributeModel> attributeList;
|
||||
|
||||
|
||||
}
|
|
@ -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<AttributeInfo> attributeInfoList;
|
||||
|
||||
/**
|
||||
* 属性组集合
|
||||
*/
|
||||
private List<AttributeGroup> attributeGroupList;
|
||||
|
||||
/**
|
||||
* 品牌集合
|
||||
*/
|
||||
private List<BrandInfo> brandInfoList;
|
||||
|
||||
}
|
|
@ -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<RuleAttrAddModel> ruleAttrList;
|
||||
|
||||
public static RuleInfoResp infoBuild (RuleInfo ruleInfo, Function<Long, List<RuleAttrAddModel>> ruleAttrList) {
|
||||
return RuleInfoResp.builder()
|
||||
.id(ruleInfo.getId())
|
||||
.name(ruleInfo.getName())
|
||||
.status(ruleInfo.getStatus())
|
||||
.ruleAttrList(ruleAttrList.apply(ruleInfo.getId()))
|
||||
.build();
|
||||
}
|
||||
}
|
|
@ -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 <A extends Annotated,T>{
|
||||
|
||||
default void initialize(A constraintAnnotation) {
|
||||
}
|
||||
|
||||
boolean isValid(T var1, ConstraintValidatorContext var2);
|
||||
}
|
|
@ -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<? extends Payload>[] payload() default {};
|
||||
}
|
|
@ -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<FlagValidator,Integer> {
|
||||
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<values.length;i++){
|
||||
if(values[i].equals(String.valueOf(value))){
|
||||
isValid = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return isValid;
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
import com.muyu.product.domain.req.AttributeGroupQueryReq;
|
||||
import com.muyu.product.domain.resp.AttributeGroupPageResp;
|
||||
import com.muyu.product.service.AttributeGroupService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "属性组")
|
||||
@RestController
|
||||
@RequestMapping("/attributeGroup")
|
||||
public class AttributeGroupController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private AttributeGroupService attributeGroupService;
|
||||
|
||||
|
||||
/*
|
||||
* 查询属性组列表
|
||||
* */
|
||||
@ApiOperation("获取属性组列表")
|
||||
@RequiresPermissions("product:attributeGroup:list")
|
||||
@GetMapping("/list")
|
||||
public Result<TableDataInfo<AttributeGroupPageResp>>list(AttributeGroupQueryReq attributeGroupQueryReq){
|
||||
startPage();
|
||||
TableDataInfo<AttributeGroupPageResp>tableDataInfo=
|
||||
attributeGroupService.page(AttributeGroup.queryBuild(attributeGroupQueryReq));
|
||||
return Result.success(tableDataInfo);
|
||||
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
||||
/*
|
||||
* 查询商品属性列表
|
||||
* */
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
List<BrandInfo>list=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<BrandInfo> list = brandInfoService.list(brandInfo);
|
||||
ExcelUtil<BrandInfo> util = new ExcelUtil<BrandInfo>(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<BrandInfo> getInfo(@PathVariable("id") Long id) {
|
||||
return Result.success(brandInfoService.getById(id));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*新增品牌信息
|
||||
* */
|
||||
@RequiresPermissions("product:brand:add")
|
||||
@Log(title = "品牌信息",businessType =BusinessType.INSERT )
|
||||
@PostMapping
|
||||
@ApiOperation("新增品牌信息")
|
||||
public Result<String> add(@RequestBody BrandInfoSaveReq brandInfoSaveReq){
|
||||
return toAjax(brandInfoService.save(BrandInfo.saveBuild(brandInfoSaveReq)));
|
||||
}
|
||||
|
||||
/*
|
||||
* 修改品牌信息
|
||||
* */
|
||||
@RequiresPermissions("product:brand:edit")
|
||||
@Log(title = "品牌信息",businessType = BusinessType.UPDATE)
|
||||
@PutMapping("{id}")
|
||||
@ApiOperation("修改品牌信息")
|
||||
public Result<String>edit(@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 Result<String>remove(@PathVariable List<Long> ids){
|
||||
return toAjax(brandInfoService.removeBatchByIds(ids));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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<AsAttributeGroup> {
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
/*
|
||||
* 品牌商品中间Mapper接口
|
||||
* */
|
||||
public interface AsBrandProjectMapper extends BaseMapper<AsBrandProjectMapper> {
|
||||
}
|
|
@ -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<AsCategoryAttributeGroup> {
|
||||
}
|
|
@ -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<AsCategoryAttribute> {
|
||||
}
|
|
@ -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<AsCategoryBrand> {
|
||||
}
|
|
@ -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<AsProductAttributeInfo> {
|
||||
}
|
|
@ -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<AttributeGroup> {
|
||||
}
|
|
@ -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<AttributeInfo> {
|
||||
}
|
|
@ -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<BrandInfo> {
|
||||
}
|
|
@ -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<CategoryInfo> {
|
||||
}
|
|
@ -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<CommentInfo> {
|
||||
}
|
|
@ -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<CommentLikeInfo> {
|
||||
}
|
|
@ -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<ProjectInfo> {
|
||||
}
|
|
@ -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<ProjectSkuInfo> {
|
||||
}
|
|
@ -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<RuleAttrInfo> {
|
||||
}
|
|
@ -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<RuleInfo>{
|
||||
}
|
|
@ -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<AsAttributeGroup> {
|
||||
|
||||
/*
|
||||
* 查询属性与组中间列表
|
||||
* */
|
||||
|
||||
public List<AsAttributeGroup>list(AsAttributeGroup attributeGroup);
|
||||
}
|
|
@ -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<AsBrandProject> {
|
||||
}
|
|
@ -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<AsCategoryAttributeGroup> {
|
||||
}
|
|
@ -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<AsCategoryAttribute> {
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
public interface AsCategoryBrandService {
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue