商品管理初始化

dev
csy 2024-02-29 20:39:55 +08:00
parent 10341472e9
commit 5e22c230d6
103 changed files with 7335 additions and 17 deletions

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -1,6 +1,6 @@
# Tomcat
server:
port: 8080
port: 18080
# Spring
spring:
@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
# 配置文件格式
file-extension: yml
# 共享配置
@ -28,12 +28,12 @@ spring:
eager: true
transport:
# 控制台地址
dashboard: 127.0.0.1:8718
dashboard: 127.0.0.1:8080
# nacos配置持久化
datasource:
ds1:
nacos:
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
dataId: sentinel-muyu-gateway
groupId: DEFAULT_GROUP
data-type: json

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-modules</artifactId>
<version>3.6.3</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>muyu-product-common</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_brand_project
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class AsBrandProject extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 品牌id */
@Excel(name = "品牌id")
private Long brandId;
/** 商品id */
@Excel(name = "商品id")
private Long projectId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setBrandId(Long brandId)
{
this.brandId = brandId;
}
public Long getBrandId()
{
return brandId;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("brandId", getBrandId())
.append("projectId", getProjectId())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_category_attribute
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class AsCategoryAttribute extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 品类id */
@Excel(name = "品类id")
private Long categoryId;
/** 属性id */
@Excel(name = "属性id")
private Long attributeId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCategoryId(Long categoryId)
{
this.categoryId = categoryId;
}
public Long getCategoryId()
{
return categoryId;
}
public void setAttributeId(Long attributeId)
{
this.attributeId = attributeId;
}
public Long getAttributeId()
{
return attributeId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("categoryId", getCategoryId())
.append("attributeId", getAttributeId())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_category_attribute_group
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class AsCategoryAttributeGroup extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 品类id */
@Excel(name = "品类id")
private Long categoryId;
/** 属性组 */
@Excel(name = "属性组")
private Long attributeGroupId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCategoryId(Long categoryId)
{
this.categoryId = categoryId;
}
public Long getCategoryId()
{
return categoryId;
}
public void setAttributeGroupId(Long attributeGroupId)
{
this.attributeGroupId = attributeGroupId;
}
public Long getAttributeGroupId()
{
return attributeGroupId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("categoryId", getCategoryId())
.append("attributeGroupId", getAttributeGroupId())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_category_brand
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class AsCategoryBrand extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 品类 */
@Excel(name = "品类")
private Long categoryId;
/** 品牌 */
@Excel(name = "品牌")
private Long brandId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCategoryId(Long categoryId)
{
this.categoryId = categoryId;
}
public Long getCategoryId()
{
return categoryId;
}
public void setBrandId(Long brandId)
{
this.brandId = brandId;
}
public Long getBrandId()
{
return brandId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("categoryId", getCategoryId())
.append("brandId", getBrandId())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,84 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* as_produt_attribute_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class AsProdutAttributeInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 商品 */
@Excel(name = "商品")
private Long productId;
/** 属性 */
@Excel(name = "属性")
private String attributeId;
/** 属性值 */
@Excel(name = "属性值")
private String value;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProductId(Long productId)
{
this.productId = productId;
}
public Long getProductId()
{
return productId;
}
public void setAttributeId(String attributeId)
{
this.attributeId = attributeId;
}
public String getAttributeId()
{
return attributeId;
}
public void setValue(String value)
{
this.value = value;
}
public String getValue()
{
return value;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("productId", getProductId())
.append("attributeId", getAttributeId())
.append("value", getValue())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_group
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class AttributeGroup extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 组名称 */
@Excel(name = "组名称")
private String name;
/** 状态 */
@Excel(name = "状态")
private String status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("status", getStatus())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* attribute_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class AttributeInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 属性编号 */
private Long id;
/** 属性名称 */
@Excel(name = "属性名称")
private String name;
/** 分组 */
@Excel(name = "分组")
private Long groupId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setGroupId(Long groupId)
{
this.groupId = groupId;
}
public Long getGroupId()
{
return groupId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("groupId", getGroupId())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,98 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* brand_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class BrandInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 品牌名称 */
@Excel(name = "品牌名称")
private String name;
/** Logo */
@Excel(name = "Logo")
private String logo;
/** 介绍 */
@Excel(name = "介绍")
private String introduction;
/** 是否启用 */
@Excel(name = "是否启用")
private String start;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setLogo(String logo)
{
this.logo = logo;
}
public String getLogo()
{
return logo;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setStart(String start)
{
this.start = start;
}
public String getStart()
{
return start;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("logo", getLogo())
.append("introduction", getIntroduction())
.append("start", getStart())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,112 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* category_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class CategoryInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 品类名称 */
@Excel(name = "品类名称")
private String name;
/** 图片 */
@Excel(name = "图片")
private String image;
/** 父级品类 */
@Excel(name = "父级品类")
private Long parentId;
/** 是否启用 */
@Excel(name = "是否启用")
private String start;
/** 介绍 */
@Excel(name = "介绍")
private String introductoin;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setParentId(Long parentId)
{
this.parentId = parentId;
}
public Long getParentId()
{
return parentId;
}
public void setStart(String start)
{
this.start = start;
}
public String getStart()
{
return start;
}
public void setIntroductoin(String introductoin)
{
this.introductoin = introductoin;
}
public String getIntroductoin()
{
return introductoin;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("image", getImage())
.append("parentId", getParentId())
.append("start", getStart())
.append("introductoin", getIntroductoin())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,98 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class CommentInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 商品id */
@Excel(name = "商品id")
private Long projectId;
/** 评价 */
@Excel(name = "评价")
private String comment;
/** 图片 */
@Excel(name = "图片")
private String image;
/** 父类id */
@Excel(name = "父类id")
private Long parentId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
public void setComment(String comment)
{
this.comment = comment;
}
public String getComment()
{
return comment;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setParentId(Long parentId)
{
this.parentId = parentId;
}
public Long getParentId()
{
return parentId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("projectId", getProjectId())
.append("comment", getComment())
.append("image", getImage())
.append("parentId", getParentId())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* comment_like_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class CommentLikeInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 评论id */
@Excel(name = "评论id")
private Long commentId;
/** 点赞人id */
@Excel(name = "点赞人id")
private Long userId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setCommentId(Long commentId)
{
this.commentId = commentId;
}
public Long getCommentId()
{
return commentId;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("commentId", getCommentId())
.append("userId", getUserId())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,197 @@
package com.muyu.product.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* project_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class ProjectInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 商品名称 */
@Excel(name = "商品名称")
private String name;
/** 商品图片 */
@Excel(name = "商品图片")
private String image;
/** 主类型 */
@Excel(name = "主类型")
private String mianType;
/** 父类型 */
@Excel(name = "父类型")
private String parentType;
/** 商品类型 */
@Excel(name = "商品类型")
private String type;
/** 商品价格 */
@Excel(name = "商品价格")
private BigDecimal price;
/** 商品数量 */
@Excel(name = "商品数量")
private Long num;
/** 商品介绍 */
@Excel(name = "商品介绍")
private String introduction;
/** 商品状态 */
@Excel(name = "商品状态")
private String status;
/** 品牌 */
@Excel(name = "品牌")
private Long brandId;
/** 规格 */
@Excel(name = "规格")
private Long ruleId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
public void setMianType(String mianType)
{
this.mianType = mianType;
}
public String getMianType()
{
return mianType;
}
public void setParentType(String parentType)
{
this.parentType = parentType;
}
public String getParentType()
{
return parentType;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setNum(Long num)
{
this.num = num;
}
public Long getNum()
{
return num;
}
public void setIntroduction(String introduction)
{
this.introduction = introduction;
}
public String getIntroduction()
{
return introduction;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setBrandId(Long brandId)
{
this.brandId = brandId;
}
public Long getBrandId()
{
return brandId;
}
public void setRuleId(Long ruleId)
{
this.ruleId = ruleId;
}
public Long getRuleId()
{
return ruleId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("image", getImage())
.append("mianType", getMianType())
.append("parentType", getParentType())
.append("type", getType())
.append("price", getPrice())
.append("num", getNum())
.append("introduction", getIntroduction())
.append("status", getStatus())
.append("brandId", getBrandId())
.append("ruleId", getRuleId())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,113 @@
package com.muyu.product.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* SKU project_sku_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class ProjectSkuInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 商品id */
@Excel(name = "商品id")
private Long projectId;
/** sku */
@Excel(name = "sku")
private String sku;
/** 商品库存 */
@Excel(name = "商品库存")
private Long stock;
/** 商品价值 */
@Excel(name = "商品价值")
private BigDecimal price;
/** 规格图片 */
@Excel(name = "规格图片")
private String image;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setProjectId(Long projectId)
{
this.projectId = projectId;
}
public Long getProjectId()
{
return projectId;
}
public void setSku(String sku)
{
this.sku = sku;
}
public String getSku()
{
return sku;
}
public void setStock(Long stock)
{
this.stock = stock;
}
public Long getStock()
{
return stock;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setImage(String image)
{
this.image = image;
}
public String getImage()
{
return image;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("projectId", getProjectId())
.append("sku", getSku())
.append("stock", getStock())
.append("price", getPrice())
.append("image", getImage())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,84 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_attr_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class RuleAttrInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 规格id */
@Excel(name = "规格id")
private Long ruleId;
/** 类目名称 */
@Excel(name = "类目名称")
private String name;
/** 规格值 */
@Excel(name = "规格值")
private String attrValue;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setRuleId(Long ruleId)
{
this.ruleId = ruleId;
}
public Long getRuleId()
{
return ruleId;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setAttrValue(String attrValue)
{
this.attrValue = attrValue;
}
public String getAttrValue()
{
return attrValue;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("ruleId", getRuleId())
.append("name", getName())
.append("attrValue", getAttrValue())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* rule_info
*
* @author CuiShiYu
* @date 2024-02-29
*/
public class RuleInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 规格名称 */
@Excel(name = "规格名称")
private String name;
/** 规格状态 */
@Excel(name = "规格状态")
private String status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("status", getStatus())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-product</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>muyu-product-remote</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-product-common</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,7 @@
package com.muyu;
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}

View File

@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-product</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>muyu-product-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-product-common</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- SpringCloud Alibaba Sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>
<!-- SpringBoot Actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Swagger UI -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.fox.version}</version>
</dependency>
<!-- Mysql Connector -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<!-- MuYu Common DataSource -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-datasource</artifactId>
</dependency>
<!-- MuYu Common DataScope -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-datascope</artifactId>
</dependency>
<!-- MuYu Common Log -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-log</artifactId>
</dependency>
<!-- MuYu Common Swagger -->
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-swagger</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 加入maven deploy插件当在deploy时忽略些model-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,23 @@
package com.muyu.product;
import com.muyu.common.security.annotation.EnableCustomConfig;
import com.muyu.common.security.annotation.EnableMyFeignClients;
import com.muyu.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @ClassName MuYuProductAppcation
* @Description
* @Author ShiYu.Cui
* @Date 2024/2/29 9:59
*/
@EnableCustomConfig
@EnableCustomSwagger2
@EnableMyFeignClients
@SpringBootApplication
public class MuYuProductApplication {
public static void main (String[] args) {
SpringApplication.run(MuYuProductApplication.class, args);
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.AttributeGroup;
import com.muyu.product.service.IAttributeGroupService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/attributeGroup")
public class AttributeGroupController extends BaseController
{
@Autowired
private IAttributeGroupService attributeGroupService;
/**
*
*/
@RequiresPermissions("product:attributeGroup:list")
@GetMapping("/list")
public Result<TableDataInfo<AttributeGroup>> list(AttributeGroup attributeGroup)
{
startPage();
List<AttributeGroup> list = attributeGroupService.selectAttributeGroupList(attributeGroup);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:attributeGroup:export")
@Log(title = "属性组", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AttributeGroup attributeGroup)
{
List<AttributeGroup> list = attributeGroupService.selectAttributeGroupList(attributeGroup);
ExcelUtil<AttributeGroup> util = new ExcelUtil<AttributeGroup>(AttributeGroup.class);
util.exportExcel(response, list, "属性组数据");
}
/**
*
*/
@RequiresPermissions("product:attributeGroup:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(attributeGroupService.selectAttributeGroupById(id));
}
/**
*
*/
@RequiresPermissions("product:attributeGroup:add")
@Log(title = "属性组", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody AttributeGroup attributeGroup)
{
return toAjax(attributeGroupService.insertAttributeGroup(attributeGroup));
}
/**
*
*/
@RequiresPermissions("product:attributeGroup:edit")
@Log(title = "属性组", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody AttributeGroup attributeGroup)
{
return toAjax(attributeGroupService.updateAttributeGroup(attributeGroup));
}
/**
*
*/
@RequiresPermissions("product:attributeGroup:remove")
@Log(title = "属性组", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(attributeGroupService.deleteAttributeGroupByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.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.service.IAttributeInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/attribute")
public class AttributeInfoController extends BaseController
{
@Autowired
private IAttributeInfoService attributeInfoService;
/**
*
*/
@RequiresPermissions("product:attribute:list")
@GetMapping("/list")
public Result<TableDataInfo<AttributeInfo>> list(AttributeInfo attributeInfo)
{
startPage();
List<AttributeInfo> list = attributeInfoService.selectAttributeInfoList(attributeInfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:attribute:export")
@Log(title = "商品属性", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AttributeInfo attributeInfo)
{
List<AttributeInfo> list = attributeInfoService.selectAttributeInfoList(attributeInfo);
ExcelUtil<AttributeInfo> util = new ExcelUtil<AttributeInfo>(AttributeInfo.class);
util.exportExcel(response, list, "商品属性数据");
}
/**
*
*/
@RequiresPermissions("product:attribute:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(attributeInfoService.selectAttributeInfoById(id));
}
/**
*
*/
@RequiresPermissions("product:attribute:add")
@Log(title = "商品属性", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody AttributeInfo attributeInfo)
{
return toAjax(attributeInfoService.insertAttributeInfo(attributeInfo));
}
/**
*
*/
@RequiresPermissions("product:attribute:edit")
@Log(title = "商品属性", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody AttributeInfo attributeInfo)
{
return toAjax(attributeInfoService.updateAttributeInfo(attributeInfo));
}
/**
*
*/
@RequiresPermissions("product:attribute:remove")
@Log(title = "商品属性", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(attributeInfoService.deleteAttributeInfoByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.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.service.IBrandInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/brand")
public class BrandInfoController extends BaseController
{
@Autowired
private IBrandInfoService brandInfoService;
/**
*
*/
@RequiresPermissions("product:brand:list")
@GetMapping("/list")
public Result<TableDataInfo<BrandInfo>> list(BrandInfo brandInfo)
{
startPage();
List<BrandInfo> list = brandInfoService.selectBrandInfoList(brandInfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:brand:export")
@Log(title = "商品品牌", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BrandInfo brandInfo)
{
List<BrandInfo> list = brandInfoService.selectBrandInfoList(brandInfo);
ExcelUtil<BrandInfo> util = new ExcelUtil<BrandInfo>(BrandInfo.class);
util.exportExcel(response, list, "商品品牌数据");
}
/**
*
*/
@RequiresPermissions("product:brand:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(brandInfoService.selectBrandInfoById(id));
}
/**
*
*/
@RequiresPermissions("product:brand:add")
@Log(title = "商品品牌", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody BrandInfo brandInfo)
{
return toAjax(brandInfoService.insertBrandInfo(brandInfo));
}
/**
*
*/
@RequiresPermissions("product:brand:edit")
@Log(title = "商品品牌", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody BrandInfo brandInfo)
{
return toAjax(brandInfoService.updateBrandInfo(brandInfo));
}
/**
*
*/
@RequiresPermissions("product:brand:remove")
@Log(title = "商品品牌", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(brandInfoService.deleteBrandInfoByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.CategoryInfo;
import com.muyu.product.service.ICategoryInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/category")
public class CategoryInfoController extends BaseController
{
@Autowired
private ICategoryInfoService categoryInfoService;
/**
*
*/
@RequiresPermissions("product:category:list")
@GetMapping("/list")
public Result<TableDataInfo<CategoryInfo>> list(CategoryInfo categoryInfo)
{
startPage();
List<CategoryInfo> list = categoryInfoService.selectCategoryInfoList(categoryInfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:category:export")
@Log(title = "品类信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, CategoryInfo categoryInfo)
{
List<CategoryInfo> list = categoryInfoService.selectCategoryInfoList(categoryInfo);
ExcelUtil<CategoryInfo> util = new ExcelUtil<CategoryInfo>(CategoryInfo.class);
util.exportExcel(response, list, "品类信息数据");
}
/**
*
*/
@RequiresPermissions("product:category:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(categoryInfoService.selectCategoryInfoById(id));
}
/**
*
*/
@RequiresPermissions("product:category:add")
@Log(title = "品类信息", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody CategoryInfo categoryInfo)
{
return toAjax(categoryInfoService.insertCategoryInfo(categoryInfo));
}
/**
*
*/
@RequiresPermissions("product:category:edit")
@Log(title = "品类信息", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody CategoryInfo categoryInfo)
{
return toAjax(categoryInfoService.updateCategoryInfo(categoryInfo));
}
/**
*
*/
@RequiresPermissions("product:category:remove")
@Log(title = "品类信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(categoryInfoService.deleteCategoryInfoByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.CommentInfo;
import com.muyu.product.service.ICommentInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/comment")
public class CommentInfoController extends BaseController
{
@Autowired
private ICommentInfoService commentInfoService;
/**
*
*/
@RequiresPermissions("product:comment:list")
@GetMapping("/list")
public Result<TableDataInfo<CommentInfo>> list(CommentInfo commentInfo)
{
startPage();
List<CommentInfo> list = commentInfoService.selectCommentInfoList(commentInfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:comment:export")
@Log(title = "商品评论", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, CommentInfo commentInfo)
{
List<CommentInfo> list = commentInfoService.selectCommentInfoList(commentInfo);
ExcelUtil<CommentInfo> util = new ExcelUtil<CommentInfo>(CommentInfo.class);
util.exportExcel(response, list, "商品评论数据");
}
/**
*
*/
@RequiresPermissions("product:comment:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(commentInfoService.selectCommentInfoById(id));
}
/**
*
*/
@RequiresPermissions("product:comment:add")
@Log(title = "商品评论", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody CommentInfo commentInfo)
{
return toAjax(commentInfoService.insertCommentInfo(commentInfo));
}
/**
*
*/
@RequiresPermissions("product:comment:edit")
@Log(title = "商品评论", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody CommentInfo commentInfo)
{
return toAjax(commentInfoService.updateCommentInfo(commentInfo));
}
/**
*
*/
@RequiresPermissions("product:comment:remove")
@Log(title = "商品评论", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(commentInfoService.deleteCommentInfoByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.CommentLikeInfo;
import com.muyu.product.service.ICommentLikeInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/commentLike")
public class CommentLikeInfoController extends BaseController
{
@Autowired
private ICommentLikeInfoService commentLikeInfoService;
/**
*
*/
@RequiresPermissions("product:commentLike:list")
@GetMapping("/list")
public Result<TableDataInfo<CommentLikeInfo>> list(CommentLikeInfo commentLikeInfo)
{
startPage();
List<CommentLikeInfo> list = commentLikeInfoService.selectCommentLikeInfoList(commentLikeInfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:commentLike:export")
@Log(title = "评论点赞", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, CommentLikeInfo commentLikeInfo)
{
List<CommentLikeInfo> list = commentLikeInfoService.selectCommentLikeInfoList(commentLikeInfo);
ExcelUtil<CommentLikeInfo> util = new ExcelUtil<CommentLikeInfo>(CommentLikeInfo.class);
util.exportExcel(response, list, "评论点赞数据");
}
/**
*
*/
@RequiresPermissions("product:commentLike:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(commentLikeInfoService.selectCommentLikeInfoById(id));
}
/**
*
*/
@RequiresPermissions("product:commentLike:add")
@Log(title = "评论点赞", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody CommentLikeInfo commentLikeInfo)
{
return toAjax(commentLikeInfoService.insertCommentLikeInfo(commentLikeInfo));
}
/**
*
*/
@RequiresPermissions("product:commentLike:edit")
@Log(title = "评论点赞", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody CommentLikeInfo commentLikeInfo)
{
return toAjax(commentLikeInfoService.updateCommentLikeInfo(commentLikeInfo));
}
/**
*
*/
@RequiresPermissions("product:commentLike:remove")
@Log(title = "评论点赞", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(commentLikeInfoService.deleteCommentLikeInfoByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.ProjectInfo;
import com.muyu.product.service.IProjectInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/info")
public class ProjectInfoController extends BaseController
{
@Autowired
private IProjectInfoService projectInfoService;
/**
*
*/
@RequiresPermissions("product:info:list")
@GetMapping("/list")
public Result<TableDataInfo<ProjectInfo>> list(ProjectInfo projectInfo)
{
startPage();
List<ProjectInfo> list = projectInfoService.selectProjectInfoList(projectInfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:info:export")
@Log(title = "商品信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ProjectInfo projectInfo)
{
List<ProjectInfo> list = projectInfoService.selectProjectInfoList(projectInfo);
ExcelUtil<ProjectInfo> util = new ExcelUtil<ProjectInfo>(ProjectInfo.class);
util.exportExcel(response, list, "商品信息数据");
}
/**
*
*/
@RequiresPermissions("product:info:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(projectInfoService.selectProjectInfoById(id));
}
/**
*
*/
@RequiresPermissions("product:info:add")
@Log(title = "商品信息", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody ProjectInfo projectInfo)
{
return toAjax(projectInfoService.insertProjectInfo(projectInfo));
}
/**
*
*/
@RequiresPermissions("product:info:edit")
@Log(title = "商品信息", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody ProjectInfo projectInfo)
{
return toAjax(projectInfoService.updateProjectInfo(projectInfo));
}
/**
*
*/
@RequiresPermissions("product:info:remove")
@Log(title = "商品信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(projectInfoService.deleteProjectInfoByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.ProjectSkuInfo;
import com.muyu.product.service.IProjectSkuInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* SKUController
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/sku")
public class ProjectSkuInfoController extends BaseController
{
@Autowired
private IProjectSkuInfoService projectSkuInfoService;
/**
* SKU
*/
@RequiresPermissions("product:sku:list")
@GetMapping("/list")
public Result<TableDataInfo<ProjectSkuInfo>> list(ProjectSkuInfo projectSkuInfo)
{
startPage();
List<ProjectSkuInfo> list = projectSkuInfoService.selectProjectSkuInfoList(projectSkuInfo);
return getDataTable(list);
}
/**
* SKU
*/
@RequiresPermissions("product:sku:export")
@Log(title = "商品SKU", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ProjectSkuInfo projectSkuInfo)
{
List<ProjectSkuInfo> list = projectSkuInfoService.selectProjectSkuInfoList(projectSkuInfo);
ExcelUtil<ProjectSkuInfo> util = new ExcelUtil<ProjectSkuInfo>(ProjectSkuInfo.class);
util.exportExcel(response, list, "商品SKU数据");
}
/**
* SKU
*/
@RequiresPermissions("product:sku:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(projectSkuInfoService.selectProjectSkuInfoById(id));
}
/**
* SKU
*/
@RequiresPermissions("product:sku:add")
@Log(title = "商品SKU", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody ProjectSkuInfo projectSkuInfo)
{
return toAjax(projectSkuInfoService.insertProjectSkuInfo(projectSkuInfo));
}
/**
* SKU
*/
@RequiresPermissions("product:sku:edit")
@Log(title = "商品SKU", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody ProjectSkuInfo projectSkuInfo)
{
return toAjax(projectSkuInfoService.updateProjectSkuInfo(projectSkuInfo));
}
/**
* SKU
*/
@RequiresPermissions("product:sku:remove")
@Log(title = "商品SKU", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(projectSkuInfoService.deleteProjectSkuInfoByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.RuleAttrInfo;
import com.muyu.product.service.IRuleAttrInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/ruleAttr")
public class RuleAttrInfoController extends BaseController
{
@Autowired
private IRuleAttrInfoService ruleAttrInfoService;
/**
*
*/
@RequiresPermissions("product:ruleAttr:list")
@GetMapping("/list")
public Result<TableDataInfo<RuleAttrInfo>> list(RuleAttrInfo ruleAttrInfo)
{
startPage();
List<RuleAttrInfo> list = ruleAttrInfoService.selectRuleAttrInfoList(ruleAttrInfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:ruleAttr:export")
@Log(title = "规格详情", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, RuleAttrInfo ruleAttrInfo)
{
List<RuleAttrInfo> list = ruleAttrInfoService.selectRuleAttrInfoList(ruleAttrInfo);
ExcelUtil<RuleAttrInfo> util = new ExcelUtil<RuleAttrInfo>(RuleAttrInfo.class);
util.exportExcel(response, list, "规格详情数据");
}
/**
*
*/
@RequiresPermissions("product:ruleAttr:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(ruleAttrInfoService.selectRuleAttrInfoById(id));
}
/**
*
*/
@RequiresPermissions("product:ruleAttr:add")
@Log(title = "规格详情", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody RuleAttrInfo ruleAttrInfo)
{
return toAjax(ruleAttrInfoService.insertRuleAttrInfo(ruleAttrInfo));
}
/**
*
*/
@RequiresPermissions("product:ruleAttr:edit")
@Log(title = "规格详情", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody RuleAttrInfo ruleAttrInfo)
{
return toAjax(ruleAttrInfoService.updateRuleAttrInfo(ruleAttrInfo));
}
/**
*
*/
@RequiresPermissions("product:ruleAttr:remove")
@Log(title = "规格详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(ruleAttrInfoService.deleteRuleAttrInfoByIds(ids));
}
}

View File

@ -0,0 +1,104 @@
package com.muyu.product.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.product.domain.RuleInfo;
import com.muyu.product.service.IRuleInfoService;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author CuiShiYu
* @date 2024-02-29
*/
@RestController
@RequestMapping("/rule")
public class RuleInfoController extends BaseController
{
@Autowired
private IRuleInfoService ruleInfoService;
/**
*
*/
@RequiresPermissions("product:rule:list")
@GetMapping("/list")
public Result<TableDataInfo<RuleInfo>> list(RuleInfo ruleInfo)
{
startPage();
List<RuleInfo> list = ruleInfoService.selectRuleInfoList(ruleInfo);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("product:rule:export")
@Log(title = "商品规格", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, RuleInfo ruleInfo)
{
List<RuleInfo> list = ruleInfoService.selectRuleInfoList(ruleInfo);
ExcelUtil<RuleInfo> util = new ExcelUtil<RuleInfo>(RuleInfo.class);
util.exportExcel(response, list, "商品规格数据");
}
/**
*
*/
@RequiresPermissions("product:rule:query")
@GetMapping(value = "/{id}")
public Result getInfo(@PathVariable("id") Long id)
{
return success(ruleInfoService.selectRuleInfoById(id));
}
/**
*
*/
@RequiresPermissions("product:rule:add")
@Log(title = "商品规格", businessType = BusinessType.INSERT)
@PostMapping
public Result add(@RequestBody RuleInfo ruleInfo)
{
return toAjax(ruleInfoService.insertRuleInfo(ruleInfo));
}
/**
*
*/
@RequiresPermissions("product:rule:edit")
@Log(title = "商品规格", businessType = BusinessType.UPDATE)
@PutMapping
public Result edit(@RequestBody RuleInfo ruleInfo)
{
return toAjax(ruleInfoService.updateRuleInfo(ruleInfo));
}
/**
*
*/
@RequiresPermissions("product:rule:remove")
@Log(title = "商品规格", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public Result remove(@PathVariable Long[] ids)
{
return toAjax(ruleInfoService.deleteRuleInfoByIds(ids));
}
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.AsBrandProject;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface AsBrandProjectMapper
{
/**
*
*
* @param id
* @return
*/
public AsBrandProject selectAsBrandProjectById(Long id);
/**
*
*
* @param asBrandProject
* @return
*/
public List<AsBrandProject> selectAsBrandProjectList(AsBrandProject asBrandProject);
/**
*
*
* @param asBrandProject
* @return
*/
public int insertAsBrandProject(AsBrandProject asBrandProject);
/**
*
*
* @param asBrandProject
* @return
*/
public int updateAsBrandProject(AsBrandProject asBrandProject);
/**
*
*
* @param id
* @return
*/
public int deleteAsBrandProjectById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteAsBrandProjectByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.AsCategoryAttributeGroup;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface AsCategoryAttributeGroupMapper
{
/**
*
*
* @param id
* @return
*/
public AsCategoryAttributeGroup selectAsCategoryAttributeGroupById(Long id);
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
public List<AsCategoryAttributeGroup> selectAsCategoryAttributeGroupList(AsCategoryAttributeGroup asCategoryAttributeGroup);
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
public int insertAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup);
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
public int updateAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup);
/**
*
*
* @param id
* @return
*/
public int deleteAsCategoryAttributeGroupById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteAsCategoryAttributeGroupByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.AsCategoryAttribute;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface AsCategoryAttributeMapper
{
/**
*
*
* @param id
* @return
*/
public AsCategoryAttribute selectAsCategoryAttributeById(Long id);
/**
*
*
* @param asCategoryAttribute
* @return
*/
public List<AsCategoryAttribute> selectAsCategoryAttributeList(AsCategoryAttribute asCategoryAttribute);
/**
*
*
* @param asCategoryAttribute
* @return
*/
public int insertAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute);
/**
*
*
* @param asCategoryAttribute
* @return
*/
public int updateAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute);
/**
*
*
* @param id
* @return
*/
public int deleteAsCategoryAttributeById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteAsCategoryAttributeByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.AsCategoryBrand;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface AsCategoryBrandMapper
{
/**
*
*
* @param id
* @return
*/
public AsCategoryBrand selectAsCategoryBrandById(Long id);
/**
*
*
* @param asCategoryBrand
* @return
*/
public List<AsCategoryBrand> selectAsCategoryBrandList(AsCategoryBrand asCategoryBrand);
/**
*
*
* @param asCategoryBrand
* @return
*/
public int insertAsCategoryBrand(AsCategoryBrand asCategoryBrand);
/**
*
*
* @param asCategoryBrand
* @return
*/
public int updateAsCategoryBrand(AsCategoryBrand asCategoryBrand);
/**
*
*
* @param id
* @return
*/
public int deleteAsCategoryBrandById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteAsCategoryBrandByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.AsProdutAttributeInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface AsProdutAttributeInfoMapper
{
/**
*
*
* @param id
* @return
*/
public AsProdutAttributeInfo selectAsProdutAttributeInfoById(Long id);
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
public List<AsProdutAttributeInfo> selectAsProdutAttributeInfoList(AsProdutAttributeInfo asProdutAttributeInfo);
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
public int insertAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo);
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
public int updateAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo);
/**
*
*
* @param id
* @return
*/
public int deleteAsProdutAttributeInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteAsProdutAttributeInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.AttributeGroup;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface AttributeGroupMapper
{
/**
*
*
* @param id
* @return
*/
public AttributeGroup selectAttributeGroupById(Long id);
/**
*
*
* @param attributeGroup
* @return
*/
public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup);
/**
*
*
* @param attributeGroup
* @return
*/
public int insertAttributeGroup(AttributeGroup attributeGroup);
/**
*
*
* @param attributeGroup
* @return
*/
public int updateAttributeGroup(AttributeGroup attributeGroup);
/**
*
*
* @param id
* @return
*/
public int deleteAttributeGroupById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteAttributeGroupByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.AttributeInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface AttributeInfoMapper
{
/**
*
*
* @param id
* @return
*/
public AttributeInfo selectAttributeInfoById(Long id);
/**
*
*
* @param attributeInfo
* @return
*/
public List<AttributeInfo> selectAttributeInfoList(AttributeInfo attributeInfo);
/**
*
*
* @param attributeInfo
* @return
*/
public int insertAttributeInfo(AttributeInfo attributeInfo);
/**
*
*
* @param attributeInfo
* @return
*/
public int updateAttributeInfo(AttributeInfo attributeInfo);
/**
*
*
* @param id
* @return
*/
public int deleteAttributeInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteAttributeInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.BrandInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface BrandInfoMapper
{
/**
*
*
* @param id
* @return
*/
public BrandInfo selectBrandInfoById(Long id);
/**
*
*
* @param brandInfo
* @return
*/
public List<BrandInfo> selectBrandInfoList(BrandInfo brandInfo);
/**
*
*
* @param brandInfo
* @return
*/
public int insertBrandInfo(BrandInfo brandInfo);
/**
*
*
* @param brandInfo
* @return
*/
public int updateBrandInfo(BrandInfo brandInfo);
/**
*
*
* @param id
* @return
*/
public int deleteBrandInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteBrandInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.CategoryInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface CategoryInfoMapper
{
/**
*
*
* @param id
* @return
*/
public CategoryInfo selectCategoryInfoById(Long id);
/**
*
*
* @param categoryInfo
* @return
*/
public List<CategoryInfo> selectCategoryInfoList(CategoryInfo categoryInfo);
/**
*
*
* @param categoryInfo
* @return
*/
public int insertCategoryInfo(CategoryInfo categoryInfo);
/**
*
*
* @param categoryInfo
* @return
*/
public int updateCategoryInfo(CategoryInfo categoryInfo);
/**
*
*
* @param id
* @return
*/
public int deleteCategoryInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteCategoryInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.CommentInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface CommentInfoMapper
{
/**
*
*
* @param id
* @return
*/
public CommentInfo selectCommentInfoById(Long id);
/**
*
*
* @param commentInfo
* @return
*/
public List<CommentInfo> selectCommentInfoList(CommentInfo commentInfo);
/**
*
*
* @param commentInfo
* @return
*/
public int insertCommentInfo(CommentInfo commentInfo);
/**
*
*
* @param commentInfo
* @return
*/
public int updateCommentInfo(CommentInfo commentInfo);
/**
*
*
* @param id
* @return
*/
public int deleteCommentInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteCommentInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.CommentLikeInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface CommentLikeInfoMapper
{
/**
*
*
* @param id
* @return
*/
public CommentLikeInfo selectCommentLikeInfoById(Long id);
/**
*
*
* @param commentLikeInfo
* @return
*/
public List<CommentLikeInfo> selectCommentLikeInfoList(CommentLikeInfo commentLikeInfo);
/**
*
*
* @param commentLikeInfo
* @return
*/
public int insertCommentLikeInfo(CommentLikeInfo commentLikeInfo);
/**
*
*
* @param commentLikeInfo
* @return
*/
public int updateCommentLikeInfo(CommentLikeInfo commentLikeInfo);
/**
*
*
* @param id
* @return
*/
public int deleteCommentLikeInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteCommentLikeInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.ProjectInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface ProjectInfoMapper
{
/**
*
*
* @param id
* @return
*/
public ProjectInfo selectProjectInfoById(Long id);
/**
*
*
* @param projectInfo
* @return
*/
public List<ProjectInfo> selectProjectInfoList(ProjectInfo projectInfo);
/**
*
*
* @param projectInfo
* @return
*/
public int insertProjectInfo(ProjectInfo projectInfo);
/**
*
*
* @param projectInfo
* @return
*/
public int updateProjectInfo(ProjectInfo projectInfo);
/**
*
*
* @param id
* @return
*/
public int deleteProjectInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteProjectInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.ProjectSkuInfo;
/**
* SKUMapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface ProjectSkuInfoMapper
{
/**
* SKU
*
* @param id SKU
* @return SKU
*/
public ProjectSkuInfo selectProjectSkuInfoById(Long id);
/**
* SKU
*
* @param projectSkuInfo SKU
* @return SKU
*/
public List<ProjectSkuInfo> selectProjectSkuInfoList(ProjectSkuInfo projectSkuInfo);
/**
* SKU
*
* @param projectSkuInfo SKU
* @return
*/
public int insertProjectSkuInfo(ProjectSkuInfo projectSkuInfo);
/**
* SKU
*
* @param projectSkuInfo SKU
* @return
*/
public int updateProjectSkuInfo(ProjectSkuInfo projectSkuInfo);
/**
* SKU
*
* @param id SKU
* @return
*/
public int deleteProjectSkuInfoById(Long id);
/**
* SKU
*
* @param ids
* @return
*/
public int deleteProjectSkuInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.RuleAttrInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface RuleAttrInfoMapper
{
/**
*
*
* @param id
* @return
*/
public RuleAttrInfo selectRuleAttrInfoById(Long id);
/**
*
*
* @param ruleAttrInfo
* @return
*/
public List<RuleAttrInfo> selectRuleAttrInfoList(RuleAttrInfo ruleAttrInfo);
/**
*
*
* @param ruleAttrInfo
* @return
*/
public int insertRuleAttrInfo(RuleAttrInfo ruleAttrInfo);
/**
*
*
* @param ruleAttrInfo
* @return
*/
public int updateRuleAttrInfo(RuleAttrInfo ruleAttrInfo);
/**
*
*
* @param id
* @return
*/
public int deleteRuleAttrInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteRuleAttrInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.mapper;
import java.util.List;
import com.muyu.product.domain.RuleInfo;
/**
* Mapper
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface RuleInfoMapper
{
/**
*
*
* @param id
* @return
*/
public RuleInfo selectRuleInfoById(Long id);
/**
*
*
* @param ruleInfo
* @return
*/
public List<RuleInfo> selectRuleInfoList(RuleInfo ruleInfo);
/**
*
*
* @param ruleInfo
* @return
*/
public int insertRuleInfo(RuleInfo ruleInfo);
/**
*
*
* @param ruleInfo
* @return
*/
public int updateRuleInfo(RuleInfo ruleInfo);
/**
*
*
* @param id
* @return
*/
public int deleteRuleInfoById(Long id);
/**
*
*
* @param ids
* @return
*/
public int deleteRuleInfoByIds(Long[] ids);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsBrandProject;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IAsBrandProjectService
{
/**
*
*
* @param id
* @return
*/
public AsBrandProject selectAsBrandProjectById(Long id);
/**
*
*
* @param asBrandProject
* @return
*/
public List<AsBrandProject> selectAsBrandProjectList(AsBrandProject asBrandProject);
/**
*
*
* @param asBrandProject
* @return
*/
public int insertAsBrandProject(AsBrandProject asBrandProject);
/**
*
*
* @param asBrandProject
* @return
*/
public int updateAsBrandProject(AsBrandProject asBrandProject);
/**
*
*
* @param ids
* @return
*/
public int deleteAsBrandProjectByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteAsBrandProjectById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsCategoryAttributeGroup;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IAsCategoryAttributeGroupService
{
/**
*
*
* @param id
* @return
*/
public AsCategoryAttributeGroup selectAsCategoryAttributeGroupById(Long id);
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
public List<AsCategoryAttributeGroup> selectAsCategoryAttributeGroupList(AsCategoryAttributeGroup asCategoryAttributeGroup);
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
public int insertAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup);
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
public int updateAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup);
/**
*
*
* @param ids
* @return
*/
public int deleteAsCategoryAttributeGroupByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteAsCategoryAttributeGroupById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsCategoryAttribute;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IAsCategoryAttributeService
{
/**
*
*
* @param id
* @return
*/
public AsCategoryAttribute selectAsCategoryAttributeById(Long id);
/**
*
*
* @param asCategoryAttribute
* @return
*/
public List<AsCategoryAttribute> selectAsCategoryAttributeList(AsCategoryAttribute asCategoryAttribute);
/**
*
*
* @param asCategoryAttribute
* @return
*/
public int insertAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute);
/**
*
*
* @param asCategoryAttribute
* @return
*/
public int updateAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute);
/**
*
*
* @param ids
* @return
*/
public int deleteAsCategoryAttributeByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteAsCategoryAttributeById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsCategoryBrand;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IAsCategoryBrandService
{
/**
*
*
* @param id
* @return
*/
public AsCategoryBrand selectAsCategoryBrandById(Long id);
/**
*
*
* @param asCategoryBrand
* @return
*/
public List<AsCategoryBrand> selectAsCategoryBrandList(AsCategoryBrand asCategoryBrand);
/**
*
*
* @param asCategoryBrand
* @return
*/
public int insertAsCategoryBrand(AsCategoryBrand asCategoryBrand);
/**
*
*
* @param asCategoryBrand
* @return
*/
public int updateAsCategoryBrand(AsCategoryBrand asCategoryBrand);
/**
*
*
* @param ids
* @return
*/
public int deleteAsCategoryBrandByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteAsCategoryBrandById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AsProdutAttributeInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IAsProdutAttributeInfoService
{
/**
*
*
* @param id
* @return
*/
public AsProdutAttributeInfo selectAsProdutAttributeInfoById(Long id);
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
public List<AsProdutAttributeInfo> selectAsProdutAttributeInfoList(AsProdutAttributeInfo asProdutAttributeInfo);
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
public int insertAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo);
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
public int updateAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteAsProdutAttributeInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteAsProdutAttributeInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AttributeGroup;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IAttributeGroupService
{
/**
*
*
* @param id
* @return
*/
public AttributeGroup selectAttributeGroupById(Long id);
/**
*
*
* @param attributeGroup
* @return
*/
public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup);
/**
*
*
* @param attributeGroup
* @return
*/
public int insertAttributeGroup(AttributeGroup attributeGroup);
/**
*
*
* @param attributeGroup
* @return
*/
public int updateAttributeGroup(AttributeGroup attributeGroup);
/**
*
*
* @param ids
* @return
*/
public int deleteAttributeGroupByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteAttributeGroupById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.AttributeInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IAttributeInfoService
{
/**
*
*
* @param id
* @return
*/
public AttributeInfo selectAttributeInfoById(Long id);
/**
*
*
* @param attributeInfo
* @return
*/
public List<AttributeInfo> selectAttributeInfoList(AttributeInfo attributeInfo);
/**
*
*
* @param attributeInfo
* @return
*/
public int insertAttributeInfo(AttributeInfo attributeInfo);
/**
*
*
* @param attributeInfo
* @return
*/
public int updateAttributeInfo(AttributeInfo attributeInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteAttributeInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteAttributeInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.BrandInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IBrandInfoService
{
/**
*
*
* @param id
* @return
*/
public BrandInfo selectBrandInfoById(Long id);
/**
*
*
* @param brandInfo
* @return
*/
public List<BrandInfo> selectBrandInfoList(BrandInfo brandInfo);
/**
*
*
* @param brandInfo
* @return
*/
public int insertBrandInfo(BrandInfo brandInfo);
/**
*
*
* @param brandInfo
* @return
*/
public int updateBrandInfo(BrandInfo brandInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteBrandInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteBrandInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.CategoryInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface ICategoryInfoService
{
/**
*
*
* @param id
* @return
*/
public CategoryInfo selectCategoryInfoById(Long id);
/**
*
*
* @param categoryInfo
* @return
*/
public List<CategoryInfo> selectCategoryInfoList(CategoryInfo categoryInfo);
/**
*
*
* @param categoryInfo
* @return
*/
public int insertCategoryInfo(CategoryInfo categoryInfo);
/**
*
*
* @param categoryInfo
* @return
*/
public int updateCategoryInfo(CategoryInfo categoryInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteCategoryInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteCategoryInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.CommentInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface ICommentInfoService
{
/**
*
*
* @param id
* @return
*/
public CommentInfo selectCommentInfoById(Long id);
/**
*
*
* @param commentInfo
* @return
*/
public List<CommentInfo> selectCommentInfoList(CommentInfo commentInfo);
/**
*
*
* @param commentInfo
* @return
*/
public int insertCommentInfo(CommentInfo commentInfo);
/**
*
*
* @param commentInfo
* @return
*/
public int updateCommentInfo(CommentInfo commentInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteCommentInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteCommentInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.CommentLikeInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface ICommentLikeInfoService
{
/**
*
*
* @param id
* @return
*/
public CommentLikeInfo selectCommentLikeInfoById(Long id);
/**
*
*
* @param commentLikeInfo
* @return
*/
public List<CommentLikeInfo> selectCommentLikeInfoList(CommentLikeInfo commentLikeInfo);
/**
*
*
* @param commentLikeInfo
* @return
*/
public int insertCommentLikeInfo(CommentLikeInfo commentLikeInfo);
/**
*
*
* @param commentLikeInfo
* @return
*/
public int updateCommentLikeInfo(CommentLikeInfo commentLikeInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteCommentLikeInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteCommentLikeInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.ProjectInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IProjectInfoService
{
/**
*
*
* @param id
* @return
*/
public ProjectInfo selectProjectInfoById(Long id);
/**
*
*
* @param projectInfo
* @return
*/
public List<ProjectInfo> selectProjectInfoList(ProjectInfo projectInfo);
/**
*
*
* @param projectInfo
* @return
*/
public int insertProjectInfo(ProjectInfo projectInfo);
/**
*
*
* @param projectInfo
* @return
*/
public int updateProjectInfo(ProjectInfo projectInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteProjectInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteProjectInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.ProjectSkuInfo;
/**
* SKUService
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IProjectSkuInfoService
{
/**
* SKU
*
* @param id SKU
* @return SKU
*/
public ProjectSkuInfo selectProjectSkuInfoById(Long id);
/**
* SKU
*
* @param projectSkuInfo SKU
* @return SKU
*/
public List<ProjectSkuInfo> selectProjectSkuInfoList(ProjectSkuInfo projectSkuInfo);
/**
* SKU
*
* @param projectSkuInfo SKU
* @return
*/
public int insertProjectSkuInfo(ProjectSkuInfo projectSkuInfo);
/**
* SKU
*
* @param projectSkuInfo SKU
* @return
*/
public int updateProjectSkuInfo(ProjectSkuInfo projectSkuInfo);
/**
* SKU
*
* @param ids SKU
* @return
*/
public int deleteProjectSkuInfoByIds(Long[] ids);
/**
* SKU
*
* @param id SKU
* @return
*/
public int deleteProjectSkuInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.RuleAttrInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IRuleAttrInfoService
{
/**
*
*
* @param id
* @return
*/
public RuleAttrInfo selectRuleAttrInfoById(Long id);
/**
*
*
* @param ruleAttrInfo
* @return
*/
public List<RuleAttrInfo> selectRuleAttrInfoList(RuleAttrInfo ruleAttrInfo);
/**
*
*
* @param ruleAttrInfo
* @return
*/
public int insertRuleAttrInfo(RuleAttrInfo ruleAttrInfo);
/**
*
*
* @param ruleAttrInfo
* @return
*/
public int updateRuleAttrInfo(RuleAttrInfo ruleAttrInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteRuleAttrInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteRuleAttrInfoById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.muyu.product.service;
import java.util.List;
import com.muyu.product.domain.RuleInfo;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
public interface IRuleInfoService
{
/**
*
*
* @param id
* @return
*/
public RuleInfo selectRuleInfoById(Long id);
/**
*
*
* @param ruleInfo
* @return
*/
public List<RuleInfo> selectRuleInfoList(RuleInfo ruleInfo);
/**
*
*
* @param ruleInfo
* @return
*/
public int insertRuleInfo(RuleInfo ruleInfo);
/**
*
*
* @param ruleInfo
* @return
*/
public int updateRuleInfo(RuleInfo ruleInfo);
/**
*
*
* @param ids
* @return
*/
public int deleteRuleInfoByIds(Long[] ids);
/**
*
*
* @param id
* @return
*/
public int deleteRuleInfoById(Long id);
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsBrandProjectMapper;
import com.muyu.product.domain.AsBrandProject;
import com.muyu.product.service.IAsBrandProjectService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class AsBrandProjectServiceImpl implements IAsBrandProjectService
{
@Autowired
private AsBrandProjectMapper asBrandProjectMapper;
/**
*
*
* @param id
* @return
*/
@Override
public AsBrandProject selectAsBrandProjectById(Long id)
{
return asBrandProjectMapper.selectAsBrandProjectById(id);
}
/**
*
*
* @param asBrandProject
* @return
*/
@Override
public List<AsBrandProject> selectAsBrandProjectList(AsBrandProject asBrandProject)
{
return asBrandProjectMapper.selectAsBrandProjectList(asBrandProject);
}
/**
*
*
* @param asBrandProject
* @return
*/
@Override
public int insertAsBrandProject(AsBrandProject asBrandProject)
{
asBrandProject.setCreateTime(DateUtils.getNowDate());
return asBrandProjectMapper.insertAsBrandProject(asBrandProject);
}
/**
*
*
* @param asBrandProject
* @return
*/
@Override
public int updateAsBrandProject(AsBrandProject asBrandProject)
{
asBrandProject.setUpdateTime(DateUtils.getNowDate());
return asBrandProjectMapper.updateAsBrandProject(asBrandProject);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteAsBrandProjectByIds(Long[] ids)
{
return asBrandProjectMapper.deleteAsBrandProjectByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteAsBrandProjectById(Long id)
{
return asBrandProjectMapper.deleteAsBrandProjectById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsCategoryAttributeGroupMapper;
import com.muyu.product.domain.AsCategoryAttributeGroup;
import com.muyu.product.service.IAsCategoryAttributeGroupService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class AsCategoryAttributeGroupServiceImpl implements IAsCategoryAttributeGroupService
{
@Autowired
private AsCategoryAttributeGroupMapper asCategoryAttributeGroupMapper;
/**
*
*
* @param id
* @return
*/
@Override
public AsCategoryAttributeGroup selectAsCategoryAttributeGroupById(Long id)
{
return asCategoryAttributeGroupMapper.selectAsCategoryAttributeGroupById(id);
}
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
@Override
public List<AsCategoryAttributeGroup> selectAsCategoryAttributeGroupList(AsCategoryAttributeGroup asCategoryAttributeGroup)
{
return asCategoryAttributeGroupMapper.selectAsCategoryAttributeGroupList(asCategoryAttributeGroup);
}
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
@Override
public int insertAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup)
{
asCategoryAttributeGroup.setCreateTime(DateUtils.getNowDate());
return asCategoryAttributeGroupMapper.insertAsCategoryAttributeGroup(asCategoryAttributeGroup);
}
/**
*
*
* @param asCategoryAttributeGroup
* @return
*/
@Override
public int updateAsCategoryAttributeGroup(AsCategoryAttributeGroup asCategoryAttributeGroup)
{
asCategoryAttributeGroup.setUpdateTime(DateUtils.getNowDate());
return asCategoryAttributeGroupMapper.updateAsCategoryAttributeGroup(asCategoryAttributeGroup);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteAsCategoryAttributeGroupByIds(Long[] ids)
{
return asCategoryAttributeGroupMapper.deleteAsCategoryAttributeGroupByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteAsCategoryAttributeGroupById(Long id)
{
return asCategoryAttributeGroupMapper.deleteAsCategoryAttributeGroupById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsCategoryAttributeMapper;
import com.muyu.product.domain.AsCategoryAttribute;
import com.muyu.product.service.IAsCategoryAttributeService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class AsCategoryAttributeServiceImpl implements IAsCategoryAttributeService
{
@Autowired
private AsCategoryAttributeMapper asCategoryAttributeMapper;
/**
*
*
* @param id
* @return
*/
@Override
public AsCategoryAttribute selectAsCategoryAttributeById(Long id)
{
return asCategoryAttributeMapper.selectAsCategoryAttributeById(id);
}
/**
*
*
* @param asCategoryAttribute
* @return
*/
@Override
public List<AsCategoryAttribute> selectAsCategoryAttributeList(AsCategoryAttribute asCategoryAttribute)
{
return asCategoryAttributeMapper.selectAsCategoryAttributeList(asCategoryAttribute);
}
/**
*
*
* @param asCategoryAttribute
* @return
*/
@Override
public int insertAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute)
{
asCategoryAttribute.setCreateTime(DateUtils.getNowDate());
return asCategoryAttributeMapper.insertAsCategoryAttribute(asCategoryAttribute);
}
/**
*
*
* @param asCategoryAttribute
* @return
*/
@Override
public int updateAsCategoryAttribute(AsCategoryAttribute asCategoryAttribute)
{
asCategoryAttribute.setUpdateTime(DateUtils.getNowDate());
return asCategoryAttributeMapper.updateAsCategoryAttribute(asCategoryAttribute);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteAsCategoryAttributeByIds(Long[] ids)
{
return asCategoryAttributeMapper.deleteAsCategoryAttributeByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteAsCategoryAttributeById(Long id)
{
return asCategoryAttributeMapper.deleteAsCategoryAttributeById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsCategoryBrandMapper;
import com.muyu.product.domain.AsCategoryBrand;
import com.muyu.product.service.IAsCategoryBrandService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class AsCategoryBrandServiceImpl implements IAsCategoryBrandService
{
@Autowired
private AsCategoryBrandMapper asCategoryBrandMapper;
/**
*
*
* @param id
* @return
*/
@Override
public AsCategoryBrand selectAsCategoryBrandById(Long id)
{
return asCategoryBrandMapper.selectAsCategoryBrandById(id);
}
/**
*
*
* @param asCategoryBrand
* @return
*/
@Override
public List<AsCategoryBrand> selectAsCategoryBrandList(AsCategoryBrand asCategoryBrand)
{
return asCategoryBrandMapper.selectAsCategoryBrandList(asCategoryBrand);
}
/**
*
*
* @param asCategoryBrand
* @return
*/
@Override
public int insertAsCategoryBrand(AsCategoryBrand asCategoryBrand)
{
asCategoryBrand.setCreateTime(DateUtils.getNowDate());
return asCategoryBrandMapper.insertAsCategoryBrand(asCategoryBrand);
}
/**
*
*
* @param asCategoryBrand
* @return
*/
@Override
public int updateAsCategoryBrand(AsCategoryBrand asCategoryBrand)
{
asCategoryBrand.setUpdateTime(DateUtils.getNowDate());
return asCategoryBrandMapper.updateAsCategoryBrand(asCategoryBrand);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteAsCategoryBrandByIds(Long[] ids)
{
return asCategoryBrandMapper.deleteAsCategoryBrandByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteAsCategoryBrandById(Long id)
{
return asCategoryBrandMapper.deleteAsCategoryBrandById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AsProdutAttributeInfoMapper;
import com.muyu.product.domain.AsProdutAttributeInfo;
import com.muyu.product.service.IAsProdutAttributeInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class AsProdutAttributeInfoServiceImpl implements IAsProdutAttributeInfoService
{
@Autowired
private AsProdutAttributeInfoMapper asProdutAttributeInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public AsProdutAttributeInfo selectAsProdutAttributeInfoById(Long id)
{
return asProdutAttributeInfoMapper.selectAsProdutAttributeInfoById(id);
}
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
@Override
public List<AsProdutAttributeInfo> selectAsProdutAttributeInfoList(AsProdutAttributeInfo asProdutAttributeInfo)
{
return asProdutAttributeInfoMapper.selectAsProdutAttributeInfoList(asProdutAttributeInfo);
}
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
@Override
public int insertAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo)
{
asProdutAttributeInfo.setCreateTime(DateUtils.getNowDate());
return asProdutAttributeInfoMapper.insertAsProdutAttributeInfo(asProdutAttributeInfo);
}
/**
*
*
* @param asProdutAttributeInfo
* @return
*/
@Override
public int updateAsProdutAttributeInfo(AsProdutAttributeInfo asProdutAttributeInfo)
{
asProdutAttributeInfo.setUpdateTime(DateUtils.getNowDate());
return asProdutAttributeInfoMapper.updateAsProdutAttributeInfo(asProdutAttributeInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteAsProdutAttributeInfoByIds(Long[] ids)
{
return asProdutAttributeInfoMapper.deleteAsProdutAttributeInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteAsProdutAttributeInfoById(Long id)
{
return asProdutAttributeInfoMapper.deleteAsProdutAttributeInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AttributeGroupMapper;
import com.muyu.product.domain.AttributeGroup;
import com.muyu.product.service.IAttributeGroupService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class AttributeGroupServiceImpl implements IAttributeGroupService
{
@Autowired
private AttributeGroupMapper attributeGroupMapper;
/**
*
*
* @param id
* @return
*/
@Override
public AttributeGroup selectAttributeGroupById(Long id)
{
return attributeGroupMapper.selectAttributeGroupById(id);
}
/**
*
*
* @param attributeGroup
* @return
*/
@Override
public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup)
{
return attributeGroupMapper.selectAttributeGroupList(attributeGroup);
}
/**
*
*
* @param attributeGroup
* @return
*/
@Override
public int insertAttributeGroup(AttributeGroup attributeGroup)
{
attributeGroup.setCreateTime(DateUtils.getNowDate());
return attributeGroupMapper.insertAttributeGroup(attributeGroup);
}
/**
*
*
* @param attributeGroup
* @return
*/
@Override
public int updateAttributeGroup(AttributeGroup attributeGroup)
{
attributeGroup.setUpdateTime(DateUtils.getNowDate());
return attributeGroupMapper.updateAttributeGroup(attributeGroup);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteAttributeGroupByIds(Long[] ids)
{
return attributeGroupMapper.deleteAttributeGroupByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteAttributeGroupById(Long id)
{
return attributeGroupMapper.deleteAttributeGroupById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AttributeInfoMapper;
import com.muyu.product.domain.AttributeInfo;
import com.muyu.product.service.IAttributeInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class AttributeInfoServiceImpl implements IAttributeInfoService
{
@Autowired
private AttributeInfoMapper attributeInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public AttributeInfo selectAttributeInfoById(Long id)
{
return attributeInfoMapper.selectAttributeInfoById(id);
}
/**
*
*
* @param attributeInfo
* @return
*/
@Override
public List<AttributeInfo> selectAttributeInfoList(AttributeInfo attributeInfo)
{
return attributeInfoMapper.selectAttributeInfoList(attributeInfo);
}
/**
*
*
* @param attributeInfo
* @return
*/
@Override
public int insertAttributeInfo(AttributeInfo attributeInfo)
{
attributeInfo.setCreateTime(DateUtils.getNowDate());
return attributeInfoMapper.insertAttributeInfo(attributeInfo);
}
/**
*
*
* @param attributeInfo
* @return
*/
@Override
public int updateAttributeInfo(AttributeInfo attributeInfo)
{
attributeInfo.setUpdateTime(DateUtils.getNowDate());
return attributeInfoMapper.updateAttributeInfo(attributeInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteAttributeInfoByIds(Long[] ids)
{
return attributeInfoMapper.deleteAttributeInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteAttributeInfoById(Long id)
{
return attributeInfoMapper.deleteAttributeInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.BrandInfoMapper;
import com.muyu.product.domain.BrandInfo;
import com.muyu.product.service.IBrandInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class BrandInfoServiceImpl implements IBrandInfoService
{
@Autowired
private BrandInfoMapper brandInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public BrandInfo selectBrandInfoById(Long id)
{
return brandInfoMapper.selectBrandInfoById(id);
}
/**
*
*
* @param brandInfo
* @return
*/
@Override
public List<BrandInfo> selectBrandInfoList(BrandInfo brandInfo)
{
return brandInfoMapper.selectBrandInfoList(brandInfo);
}
/**
*
*
* @param brandInfo
* @return
*/
@Override
public int insertBrandInfo(BrandInfo brandInfo)
{
brandInfo.setCreateTime(DateUtils.getNowDate());
return brandInfoMapper.insertBrandInfo(brandInfo);
}
/**
*
*
* @param brandInfo
* @return
*/
@Override
public int updateBrandInfo(BrandInfo brandInfo)
{
brandInfo.setUpdateTime(DateUtils.getNowDate());
return brandInfoMapper.updateBrandInfo(brandInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteBrandInfoByIds(Long[] ids)
{
return brandInfoMapper.deleteBrandInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteBrandInfoById(Long id)
{
return brandInfoMapper.deleteBrandInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CategoryInfoMapper;
import com.muyu.product.domain.CategoryInfo;
import com.muyu.product.service.ICategoryInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class CategoryInfoServiceImpl implements ICategoryInfoService
{
@Autowired
private CategoryInfoMapper categoryInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public CategoryInfo selectCategoryInfoById(Long id)
{
return categoryInfoMapper.selectCategoryInfoById(id);
}
/**
*
*
* @param categoryInfo
* @return
*/
@Override
public List<CategoryInfo> selectCategoryInfoList(CategoryInfo categoryInfo)
{
return categoryInfoMapper.selectCategoryInfoList(categoryInfo);
}
/**
*
*
* @param categoryInfo
* @return
*/
@Override
public int insertCategoryInfo(CategoryInfo categoryInfo)
{
categoryInfo.setCreateTime(DateUtils.getNowDate());
return categoryInfoMapper.insertCategoryInfo(categoryInfo);
}
/**
*
*
* @param categoryInfo
* @return
*/
@Override
public int updateCategoryInfo(CategoryInfo categoryInfo)
{
categoryInfo.setUpdateTime(DateUtils.getNowDate());
return categoryInfoMapper.updateCategoryInfo(categoryInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteCategoryInfoByIds(Long[] ids)
{
return categoryInfoMapper.deleteCategoryInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteCategoryInfoById(Long id)
{
return categoryInfoMapper.deleteCategoryInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CommentInfoMapper;
import com.muyu.product.domain.CommentInfo;
import com.muyu.product.service.ICommentInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class CommentInfoServiceImpl implements ICommentInfoService
{
@Autowired
private CommentInfoMapper commentInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public CommentInfo selectCommentInfoById(Long id)
{
return commentInfoMapper.selectCommentInfoById(id);
}
/**
*
*
* @param commentInfo
* @return
*/
@Override
public List<CommentInfo> selectCommentInfoList(CommentInfo commentInfo)
{
return commentInfoMapper.selectCommentInfoList(commentInfo);
}
/**
*
*
* @param commentInfo
* @return
*/
@Override
public int insertCommentInfo(CommentInfo commentInfo)
{
commentInfo.setCreateTime(DateUtils.getNowDate());
return commentInfoMapper.insertCommentInfo(commentInfo);
}
/**
*
*
* @param commentInfo
* @return
*/
@Override
public int updateCommentInfo(CommentInfo commentInfo)
{
commentInfo.setUpdateTime(DateUtils.getNowDate());
return commentInfoMapper.updateCommentInfo(commentInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteCommentInfoByIds(Long[] ids)
{
return commentInfoMapper.deleteCommentInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteCommentInfoById(Long id)
{
return commentInfoMapper.deleteCommentInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CommentLikeInfoMapper;
import com.muyu.product.domain.CommentLikeInfo;
import com.muyu.product.service.ICommentLikeInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class CommentLikeInfoServiceImpl implements ICommentLikeInfoService
{
@Autowired
private CommentLikeInfoMapper commentLikeInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public CommentLikeInfo selectCommentLikeInfoById(Long id)
{
return commentLikeInfoMapper.selectCommentLikeInfoById(id);
}
/**
*
*
* @param commentLikeInfo
* @return
*/
@Override
public List<CommentLikeInfo> selectCommentLikeInfoList(CommentLikeInfo commentLikeInfo)
{
return commentLikeInfoMapper.selectCommentLikeInfoList(commentLikeInfo);
}
/**
*
*
* @param commentLikeInfo
* @return
*/
@Override
public int insertCommentLikeInfo(CommentLikeInfo commentLikeInfo)
{
commentLikeInfo.setCreateTime(DateUtils.getNowDate());
return commentLikeInfoMapper.insertCommentLikeInfo(commentLikeInfo);
}
/**
*
*
* @param commentLikeInfo
* @return
*/
@Override
public int updateCommentLikeInfo(CommentLikeInfo commentLikeInfo)
{
commentLikeInfo.setUpdateTime(DateUtils.getNowDate());
return commentLikeInfoMapper.updateCommentLikeInfo(commentLikeInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteCommentLikeInfoByIds(Long[] ids)
{
return commentLikeInfoMapper.deleteCommentLikeInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteCommentLikeInfoById(Long id)
{
return commentLikeInfoMapper.deleteCommentLikeInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.ProjectInfoMapper;
import com.muyu.product.domain.ProjectInfo;
import com.muyu.product.service.IProjectInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class ProjectInfoServiceImpl implements IProjectInfoService
{
@Autowired
private ProjectInfoMapper projectInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public ProjectInfo selectProjectInfoById(Long id)
{
return projectInfoMapper.selectProjectInfoById(id);
}
/**
*
*
* @param projectInfo
* @return
*/
@Override
public List<ProjectInfo> selectProjectInfoList(ProjectInfo projectInfo)
{
return projectInfoMapper.selectProjectInfoList(projectInfo);
}
/**
*
*
* @param projectInfo
* @return
*/
@Override
public int insertProjectInfo(ProjectInfo projectInfo)
{
projectInfo.setCreateTime(DateUtils.getNowDate());
return projectInfoMapper.insertProjectInfo(projectInfo);
}
/**
*
*
* @param projectInfo
* @return
*/
@Override
public int updateProjectInfo(ProjectInfo projectInfo)
{
projectInfo.setUpdateTime(DateUtils.getNowDate());
return projectInfoMapper.updateProjectInfo(projectInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteProjectInfoByIds(Long[] ids)
{
return projectInfoMapper.deleteProjectInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteProjectInfoById(Long id)
{
return projectInfoMapper.deleteProjectInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.ProjectSkuInfoMapper;
import com.muyu.product.domain.ProjectSkuInfo;
import com.muyu.product.service.IProjectSkuInfoService;
/**
* SKUService
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class ProjectSkuInfoServiceImpl implements IProjectSkuInfoService
{
@Autowired
private ProjectSkuInfoMapper projectSkuInfoMapper;
/**
* SKU
*
* @param id SKU
* @return SKU
*/
@Override
public ProjectSkuInfo selectProjectSkuInfoById(Long id)
{
return projectSkuInfoMapper.selectProjectSkuInfoById(id);
}
/**
* SKU
*
* @param projectSkuInfo SKU
* @return SKU
*/
@Override
public List<ProjectSkuInfo> selectProjectSkuInfoList(ProjectSkuInfo projectSkuInfo)
{
return projectSkuInfoMapper.selectProjectSkuInfoList(projectSkuInfo);
}
/**
* SKU
*
* @param projectSkuInfo SKU
* @return
*/
@Override
public int insertProjectSkuInfo(ProjectSkuInfo projectSkuInfo)
{
projectSkuInfo.setCreateTime(DateUtils.getNowDate());
return projectSkuInfoMapper.insertProjectSkuInfo(projectSkuInfo);
}
/**
* SKU
*
* @param projectSkuInfo SKU
* @return
*/
@Override
public int updateProjectSkuInfo(ProjectSkuInfo projectSkuInfo)
{
projectSkuInfo.setUpdateTime(DateUtils.getNowDate());
return projectSkuInfoMapper.updateProjectSkuInfo(projectSkuInfo);
}
/**
* SKU
*
* @param ids SKU
* @return
*/
@Override
public int deleteProjectSkuInfoByIds(Long[] ids)
{
return projectSkuInfoMapper.deleteProjectSkuInfoByIds(ids);
}
/**
* SKU
*
* @param id SKU
* @return
*/
@Override
public int deleteProjectSkuInfoById(Long id)
{
return projectSkuInfoMapper.deleteProjectSkuInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.RuleAttrInfoMapper;
import com.muyu.product.domain.RuleAttrInfo;
import com.muyu.product.service.IRuleAttrInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class RuleAttrInfoServiceImpl implements IRuleAttrInfoService
{
@Autowired
private RuleAttrInfoMapper ruleAttrInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public RuleAttrInfo selectRuleAttrInfoById(Long id)
{
return ruleAttrInfoMapper.selectRuleAttrInfoById(id);
}
/**
*
*
* @param ruleAttrInfo
* @return
*/
@Override
public List<RuleAttrInfo> selectRuleAttrInfoList(RuleAttrInfo ruleAttrInfo)
{
return ruleAttrInfoMapper.selectRuleAttrInfoList(ruleAttrInfo);
}
/**
*
*
* @param ruleAttrInfo
* @return
*/
@Override
public int insertRuleAttrInfo(RuleAttrInfo ruleAttrInfo)
{
ruleAttrInfo.setCreateTime(DateUtils.getNowDate());
return ruleAttrInfoMapper.insertRuleAttrInfo(ruleAttrInfo);
}
/**
*
*
* @param ruleAttrInfo
* @return
*/
@Override
public int updateRuleAttrInfo(RuleAttrInfo ruleAttrInfo)
{
ruleAttrInfo.setUpdateTime(DateUtils.getNowDate());
return ruleAttrInfoMapper.updateRuleAttrInfo(ruleAttrInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteRuleAttrInfoByIds(Long[] ids)
{
return ruleAttrInfoMapper.deleteRuleAttrInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteRuleAttrInfoById(Long id)
{
return ruleAttrInfoMapper.deleteRuleAttrInfoById(id);
}
}

View File

@ -0,0 +1,96 @@
package com.muyu.product.service.impl;
import java.util.List;
import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.product.mapper.RuleInfoMapper;
import com.muyu.product.domain.RuleInfo;
import com.muyu.product.service.IRuleInfoService;
/**
* Service
*
* @author CuiShiYu
* @date 2024-02-29
*/
@Service
public class RuleInfoServiceImpl implements IRuleInfoService
{
@Autowired
private RuleInfoMapper ruleInfoMapper;
/**
*
*
* @param id
* @return
*/
@Override
public RuleInfo selectRuleInfoById(Long id)
{
return ruleInfoMapper.selectRuleInfoById(id);
}
/**
*
*
* @param ruleInfo
* @return
*/
@Override
public List<RuleInfo> selectRuleInfoList(RuleInfo ruleInfo)
{
return ruleInfoMapper.selectRuleInfoList(ruleInfo);
}
/**
*
*
* @param ruleInfo
* @return
*/
@Override
public int insertRuleInfo(RuleInfo ruleInfo)
{
ruleInfo.setCreateTime(DateUtils.getNowDate());
return ruleInfoMapper.insertRuleInfo(ruleInfo);
}
/**
*
*
* @param ruleInfo
* @return
*/
@Override
public int updateRuleInfo(RuleInfo ruleInfo)
{
ruleInfo.setUpdateTime(DateUtils.getNowDate());
return ruleInfoMapper.updateRuleInfo(ruleInfo);
}
/**
*
*
* @param ids
* @return
*/
@Override
public int deleteRuleInfoByIds(Long[] ids)
{
return ruleInfoMapper.deleteRuleInfoByIds(ids);
}
/**
*
*
* @param id
* @return
*/
@Override
public int deleteRuleInfoById(Long id)
{
return ruleInfoMapper.deleteRuleInfoById(id);
}
}

View File

@ -0,0 +1,2 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}

View File

@ -0,0 +1,28 @@
# Tomcat
server:
port: 9302
# Spring
spring:
application:
# 应用名称
name: muyu-product
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 118.89.120.67:8848
config:
# 配置中心地址
server-addr: 118.89.120.67:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
logging:
level:
com.muyu.product.mapper: DEBUG

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/muyu-product"/>
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
</appender>
<!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/info.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>INFO</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/error.log</file>
<!-- 循环政策:基于时间创建日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- 日志文件名格式 -->
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- 日志最大的历史 60天 -->
<maxHistory>60</maxHistory>
</rollingPolicy>
<encoder>
<pattern>${log.pattern}</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<!-- 过滤的级别 -->
<level>ERROR</level>
<!-- 匹配时的操作:接收(记录) -->
<onMatch>ACCEPT</onMatch>
<!-- 不匹配时的操作:拒绝(不记录) -->
<onMismatch>DENY</onMismatch>
</filter>
</appender>
<!-- 系统模块日志级别控制 -->
<logger name="com.muyu" level="info"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<root level="info">
<appender-ref ref="console"/>
</root>
<!--系统操作日志-->
<root level="info">
<appender-ref ref="file_info"/>
<appender-ref ref="file_error"/>
</root>
</configuration>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.AsBrandProjectMapper">
<resultMap type="com.muyu.product.domain.AsBrandProject" id="AsBrandProjectResult">
<result property="id" column="id" />
<result property="brandId" column="brand_id" />
<result property="projectId" column="project_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAsBrandProjectVo">
select id, brand_id, project_id, remark, create_by, create_time, update_by, update_time from as_brand_project
</sql>
<select id="selectAsBrandProjectList" parameterType="com.muyu.product.domain.AsBrandProject" resultMap="AsBrandProjectResult">
<include refid="selectAsBrandProjectVo"/>
<where>
<if test="brandId != null "> and brand_id = #{brandId}</if>
<if test="projectId != null "> and project_id = #{projectId}</if>
</where>
</select>
<select id="selectAsBrandProjectById" parameterType="Long" resultMap="AsBrandProjectResult">
<include refid="selectAsBrandProjectVo"/>
where id = #{id}
</select>
<insert id="insertAsBrandProject" parameterType="com.muyu.product.domain.AsBrandProject" useGeneratedKeys="true" keyProperty="id">
insert into as_brand_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="brandId != null">brand_id,</if>
<if test="projectId != null">project_id,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="brandId != null">#{brandId},</if>
<if test="projectId != null">#{projectId},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAsBrandProject" parameterType="com.muyu.product.domain.AsBrandProject">
update as_brand_project
<trim prefix="SET" suffixOverrides=",">
<if test="brandId != null">brand_id = #{brandId},</if>
<if test="projectId != null">project_id = #{projectId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAsBrandProjectById" parameterType="Long">
delete from as_brand_project where id = #{id}
</delete>
<delete id="deleteAsBrandProjectByIds" parameterType="String">
delete from as_brand_project where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.AsCategoryAttributeGroupMapper">
<resultMap type="com.muyu.product.domain.AsCategoryAttributeGroup" id="AsCategoryAttributeGroupResult">
<result property="id" column="id" />
<result property="categoryId" column="category_id" />
<result property="attributeGroupId" column="attribute_group_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAsCategoryAttributeGroupVo">
select id, category_id, attribute_group_id, remark, create_by, create_time, update_by, update_time from as_category_attribute_group
</sql>
<select id="selectAsCategoryAttributeGroupList" parameterType="com.muyu.product.domain.AsCategoryAttributeGroup" resultMap="AsCategoryAttributeGroupResult">
<include refid="selectAsCategoryAttributeGroupVo"/>
<where>
<if test="categoryId != null "> and category_id = #{categoryId}</if>
<if test="attributeGroupId != null "> and attribute_group_id = #{attributeGroupId}</if>
</where>
</select>
<select id="selectAsCategoryAttributeGroupById" parameterType="Long" resultMap="AsCategoryAttributeGroupResult">
<include refid="selectAsCategoryAttributeGroupVo"/>
where id = #{id}
</select>
<insert id="insertAsCategoryAttributeGroup" parameterType="com.muyu.product.domain.AsCategoryAttributeGroup" useGeneratedKeys="true" keyProperty="id">
insert into as_category_attribute_group
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">category_id,</if>
<if test="attributeGroupId != null">attribute_group_id,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">#{categoryId},</if>
<if test="attributeGroupId != null">#{attributeGroupId},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAsCategoryAttributeGroup" parameterType="com.muyu.product.domain.AsCategoryAttributeGroup">
update as_category_attribute_group
<trim prefix="SET" suffixOverrides=",">
<if test="categoryId != null">category_id = #{categoryId},</if>
<if test="attributeGroupId != null">attribute_group_id = #{attributeGroupId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAsCategoryAttributeGroupById" parameterType="Long">
delete from as_category_attribute_group where id = #{id}
</delete>
<delete id="deleteAsCategoryAttributeGroupByIds" parameterType="String">
delete from as_category_attribute_group where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.AsCategoryAttributeMapper">
<resultMap type="com.muyu.product.domain.AsCategoryAttribute" id="AsCategoryAttributeResult">
<result property="id" column="id" />
<result property="categoryId" column="category_id" />
<result property="attributeId" column="attribute_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAsCategoryAttributeVo">
select id, category_id, attribute_id, remark, create_by, create_time, update_by, update_time from as_category_attribute
</sql>
<select id="selectAsCategoryAttributeList" parameterType="com.muyu.product.domain.AsCategoryAttribute" resultMap="AsCategoryAttributeResult">
<include refid="selectAsCategoryAttributeVo"/>
<where>
<if test="categoryId != null "> and category_id = #{categoryId}</if>
<if test="attributeId != null "> and attribute_id = #{attributeId}</if>
</where>
</select>
<select id="selectAsCategoryAttributeById" parameterType="Long" resultMap="AsCategoryAttributeResult">
<include refid="selectAsCategoryAttributeVo"/>
where id = #{id}
</select>
<insert id="insertAsCategoryAttribute" parameterType="com.muyu.product.domain.AsCategoryAttribute" useGeneratedKeys="true" keyProperty="id">
insert into as_category_attribute
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">category_id,</if>
<if test="attributeId != null">attribute_id,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">#{categoryId},</if>
<if test="attributeId != null">#{attributeId},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAsCategoryAttribute" parameterType="com.muyu.product.domain.AsCategoryAttribute">
update as_category_attribute
<trim prefix="SET" suffixOverrides=",">
<if test="categoryId != null">category_id = #{categoryId},</if>
<if test="attributeId != null">attribute_id = #{attributeId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAsCategoryAttributeById" parameterType="Long">
delete from as_category_attribute where id = #{id}
</delete>
<delete id="deleteAsCategoryAttributeByIds" parameterType="String">
delete from as_category_attribute where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.AsCategoryBrandMapper">
<resultMap type="com.muyu.product.domain.AsCategoryBrand" id="AsCategoryBrandResult">
<result property="id" column="id" />
<result property="categoryId" column="category_id" />
<result property="brandId" column="brand_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAsCategoryBrandVo">
select id, category_id, brand_id, remark, create_by, create_time, update_by, update_time from as_category_brand
</sql>
<select id="selectAsCategoryBrandList" parameterType="com.muyu.product.domain.AsCategoryBrand" resultMap="AsCategoryBrandResult">
<include refid="selectAsCategoryBrandVo"/>
<where>
<if test="categoryId != null "> and category_id = #{categoryId}</if>
<if test="brandId != null "> and brand_id = #{brandId}</if>
</where>
</select>
<select id="selectAsCategoryBrandById" parameterType="Long" resultMap="AsCategoryBrandResult">
<include refid="selectAsCategoryBrandVo"/>
where id = #{id}
</select>
<insert id="insertAsCategoryBrand" parameterType="com.muyu.product.domain.AsCategoryBrand" useGeneratedKeys="true" keyProperty="id">
insert into as_category_brand
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="categoryId != null">category_id,</if>
<if test="brandId != null">brand_id,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="categoryId != null">#{categoryId},</if>
<if test="brandId != null">#{brandId},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAsCategoryBrand" parameterType="com.muyu.product.domain.AsCategoryBrand">
update as_category_brand
<trim prefix="SET" suffixOverrides=",">
<if test="categoryId != null">category_id = #{categoryId},</if>
<if test="brandId != null">brand_id = #{brandId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAsCategoryBrandById" parameterType="Long">
delete from as_category_brand where id = #{id}
</delete>
<delete id="deleteAsCategoryBrandByIds" parameterType="String">
delete from as_category_brand where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.AsProdutAttributeInfoMapper">
<resultMap type="com.muyu.product.domain.AsProdutAttributeInfo" id="AsProdutAttributeInfoResult">
<result property="id" column="id" />
<result property="productId" column="product_id" />
<result property="attributeId" column="attribute_id" />
<result property="value" column="value" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAsProdutAttributeInfoVo">
select id, product_id, attribute_id, value, remark, create_by, create_time, update_by, update_time from as_produt_attribute_info
</sql>
<select id="selectAsProdutAttributeInfoList" parameterType="com.muyu.product.domain.AsProdutAttributeInfo" resultMap="AsProdutAttributeInfoResult">
<include refid="selectAsProdutAttributeInfoVo"/>
<where>
<if test="productId != null "> and product_id = #{productId}</if>
<if test="attributeId != null and attributeId != ''"> and attribute_id = #{attributeId}</if>
<if test="value != null and value != ''"> and value = #{value}</if>
</where>
</select>
<select id="selectAsProdutAttributeInfoById" parameterType="Long" resultMap="AsProdutAttributeInfoResult">
<include refid="selectAsProdutAttributeInfoVo"/>
where id = #{id}
</select>
<insert id="insertAsProdutAttributeInfo" parameterType="com.muyu.product.domain.AsProdutAttributeInfo" useGeneratedKeys="true" keyProperty="id">
insert into as_produt_attribute_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="productId != null">product_id,</if>
<if test="attributeId != null and attributeId != ''">attribute_id,</if>
<if test="value != null and value != ''">value,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="productId != null">#{productId},</if>
<if test="attributeId != null and attributeId != ''">#{attributeId},</if>
<if test="value != null and value != ''">#{value},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAsProdutAttributeInfo" parameterType="com.muyu.product.domain.AsProdutAttributeInfo">
update as_produt_attribute_info
<trim prefix="SET" suffixOverrides=",">
<if test="productId != null">product_id = #{productId},</if>
<if test="attributeId != null and attributeId != ''">attribute_id = #{attributeId},</if>
<if test="value != null and value != ''">value = #{value},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAsProdutAttributeInfoById" parameterType="Long">
delete from as_produt_attribute_info where id = #{id}
</delete>
<delete id="deleteAsProdutAttributeInfoByIds" parameterType="String">
delete from as_produt_attribute_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.AttributeGroupMapper">
<resultMap type="com.muyu.product.domain.AttributeGroup" id="AttributeGroupResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAttributeGroupVo">
select id, name, status, remark, create_by, create_time, update_by, update_time from attribute_group
</sql>
<select id="selectAttributeGroupList" parameterType="com.muyu.product.domain.AttributeGroup" resultMap="AttributeGroupResult">
<include refid="selectAttributeGroupVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectAttributeGroupById" parameterType="Long" resultMap="AttributeGroupResult">
<include refid="selectAttributeGroupVo"/>
where id = #{id}
</select>
<insert id="insertAttributeGroup" parameterType="com.muyu.product.domain.AttributeGroup" useGeneratedKeys="true" keyProperty="id">
insert into attribute_group
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="status != null">status,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="status != null">#{status},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAttributeGroup" parameterType="com.muyu.product.domain.AttributeGroup">
update attribute_group
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAttributeGroupById" parameterType="Long">
delete from attribute_group where id = #{id}
</delete>
<delete id="deleteAttributeGroupByIds" parameterType="String">
delete from attribute_group where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.AttributeInfoMapper">
<resultMap type="com.muyu.product.domain.AttributeInfo" id="AttributeInfoResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="groupId" column="group_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAttributeInfoVo">
select id, name, group_id, remark, create_by, create_time, update_by, update_time from attribute_info
</sql>
<select id="selectAttributeInfoList" parameterType="com.muyu.product.domain.AttributeInfo" resultMap="AttributeInfoResult">
<include refid="selectAttributeInfoVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="groupId != null "> and group_id = #{groupId}</if>
</where>
</select>
<select id="selectAttributeInfoById" parameterType="Long" resultMap="AttributeInfoResult">
<include refid="selectAttributeInfoVo"/>
where id = #{id}
</select>
<insert id="insertAttributeInfo" parameterType="com.muyu.product.domain.AttributeInfo" useGeneratedKeys="true" keyProperty="id">
insert into attribute_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="groupId != null">group_id,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="groupId != null">#{groupId},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAttributeInfo" parameterType="com.muyu.product.domain.AttributeInfo">
update attribute_info
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="groupId != null">group_id = #{groupId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAttributeInfoById" parameterType="Long">
delete from attribute_info where id = #{id}
</delete>
<delete id="deleteAttributeInfoByIds" parameterType="String">
delete from attribute_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.BrandInfoMapper">
<resultMap type="com.muyu.product.domain.BrandInfo" id="BrandInfoResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="logo" column="logo" />
<result property="introduction" column="introduction" />
<result property="start" column="start" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectBrandInfoVo">
select id, name, logo, introduction, start, remark, create_by, create_time, update_by, update_time from brand_info
</sql>
<select id="selectBrandInfoList" parameterType="com.muyu.product.domain.BrandInfo" resultMap="BrandInfoResult">
<include refid="selectBrandInfoVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="logo != null and logo != ''"> and logo = #{logo}</if>
<if test="introduction != null and introduction != ''"> and introduction = #{introduction}</if>
<if test="start != null and start != ''"> and start = #{start}</if>
</where>
</select>
<select id="selectBrandInfoById" parameterType="Long" resultMap="BrandInfoResult">
<include refid="selectBrandInfoVo"/>
where id = #{id}
</select>
<insert id="insertBrandInfo" parameterType="com.muyu.product.domain.BrandInfo" useGeneratedKeys="true" keyProperty="id">
insert into brand_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="logo != null">logo,</if>
<if test="introduction != null">introduction,</if>
<if test="start != null">start,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="logo != null">#{logo},</if>
<if test="introduction != null">#{introduction},</if>
<if test="start != null">#{start},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateBrandInfo" parameterType="com.muyu.product.domain.BrandInfo">
update brand_info
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="logo != null">logo = #{logo},</if>
<if test="introduction != null">introduction = #{introduction},</if>
<if test="start != null">start = #{start},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBrandInfoById" parameterType="Long">
delete from brand_info where id = #{id}
</delete>
<delete id="deleteBrandInfoByIds" parameterType="String">
delete from brand_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.CategoryInfoMapper">
<resultMap type="com.muyu.product.domain.CategoryInfo" id="CategoryInfoResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="image" column="image" />
<result property="parentId" column="parent_id" />
<result property="start" column="start" />
<result property="introductoin" column="introductoin" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectCategoryInfoVo">
select id, name, image, parent_id, start, introductoin, remark, create_by, create_time, update_by, update_time from category_info
</sql>
<select id="selectCategoryInfoList" parameterType="com.muyu.product.domain.CategoryInfo" resultMap="CategoryInfoResult">
<include refid="selectCategoryInfoVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="parentId != null "> and parent_id = #{parentId}</if>
<if test="start != null and start != ''"> and start = #{start}</if>
<if test="introductoin != null and introductoin != ''"> and introductoin = #{introductoin}</if>
</where>
</select>
<select id="selectCategoryInfoById" parameterType="Long" resultMap="CategoryInfoResult">
<include refid="selectCategoryInfoVo"/>
where id = #{id}
</select>
<insert id="insertCategoryInfo" parameterType="com.muyu.product.domain.CategoryInfo" useGeneratedKeys="true" keyProperty="id">
insert into category_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">name,</if>
<if test="image != null and image != ''">image,</if>
<if test="parentId != null">parent_id,</if>
<if test="start != null and start != ''">start,</if>
<if test="introductoin != null">introductoin,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null and name != ''">#{name},</if>
<if test="image != null and image != ''">#{image},</if>
<if test="parentId != null">#{parentId},</if>
<if test="start != null and start != ''">#{start},</if>
<if test="introductoin != null">#{introductoin},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateCategoryInfo" parameterType="com.muyu.product.domain.CategoryInfo">
update category_info
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="image != null and image != ''">image = #{image},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="start != null and start != ''">start = #{start},</if>
<if test="introductoin != null">introductoin = #{introductoin},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCategoryInfoById" parameterType="Long">
delete from category_info where id = #{id}
</delete>
<delete id="deleteCategoryInfoByIds" parameterType="String">
delete from category_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.CommentInfoMapper">
<resultMap type="com.muyu.product.domain.CommentInfo" id="CommentInfoResult">
<result property="id" column="id" />
<result property="projectId" column="project_id" />
<result property="comment" column="comment" />
<result property="image" column="image" />
<result property="parentId" column="parent_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectCommentInfoVo">
select id, project_id, comment, image, parent_id, remark, create_by, create_time, update_by, update_time from comment_info
</sql>
<select id="selectCommentInfoList" parameterType="com.muyu.product.domain.CommentInfo" resultMap="CommentInfoResult">
<include refid="selectCommentInfoVo"/>
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="comment != null and comment != ''"> and comment = #{comment}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="parentId != null "> and parent_id = #{parentId}</if>
</where>
</select>
<select id="selectCommentInfoById" parameterType="Long" resultMap="CommentInfoResult">
<include refid="selectCommentInfoVo"/>
where id = #{id}
</select>
<insert id="insertCommentInfo" parameterType="com.muyu.product.domain.CommentInfo" useGeneratedKeys="true" keyProperty="id">
insert into comment_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectId != null">project_id,</if>
<if test="comment != null">comment,</if>
<if test="image != null">image,</if>
<if test="parentId != null">parent_id,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectId != null">#{projectId},</if>
<if test="comment != null">#{comment},</if>
<if test="image != null">#{image},</if>
<if test="parentId != null">#{parentId},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateCommentInfo" parameterType="com.muyu.product.domain.CommentInfo">
update comment_info
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null">project_id = #{projectId},</if>
<if test="comment != null">comment = #{comment},</if>
<if test="image != null">image = #{image},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCommentInfoById" parameterType="Long">
delete from comment_info where id = #{id}
</delete>
<delete id="deleteCommentInfoByIds" parameterType="String">
delete from comment_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.CommentLikeInfoMapper">
<resultMap type="com.muyu.product.domain.CommentLikeInfo" id="CommentLikeInfoResult">
<result property="id" column="id" />
<result property="commentId" column="comment_id" />
<result property="userId" column="user_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectCommentLikeInfoVo">
select id, comment_id, user_id, remark, create_by, create_time, update_by, update_time from comment_like_info
</sql>
<select id="selectCommentLikeInfoList" parameterType="com.muyu.product.domain.CommentLikeInfo" resultMap="CommentLikeInfoResult">
<include refid="selectCommentLikeInfoVo"/>
<where>
<if test="commentId != null "> and comment_id = #{commentId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
</where>
</select>
<select id="selectCommentLikeInfoById" parameterType="Long" resultMap="CommentLikeInfoResult">
<include refid="selectCommentLikeInfoVo"/>
where id = #{id}
</select>
<insert id="insertCommentLikeInfo" parameterType="com.muyu.product.domain.CommentLikeInfo" useGeneratedKeys="true" keyProperty="id">
insert into comment_like_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="commentId != null">comment_id,</if>
<if test="userId != null">user_id,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="commentId != null">#{commentId},</if>
<if test="userId != null">#{userId},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateCommentLikeInfo" parameterType="com.muyu.product.domain.CommentLikeInfo">
update comment_like_info
<trim prefix="SET" suffixOverrides=",">
<if test="commentId != null">comment_id = #{commentId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteCommentLikeInfoById" parameterType="Long">
delete from comment_like_info where id = #{id}
</delete>
<delete id="deleteCommentLikeInfoByIds" parameterType="String">
delete from comment_like_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.ProjectInfoMapper">
<resultMap type="com.muyu.product.domain.ProjectInfo" id="ProjectInfoResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="image" column="image" />
<result property="mianType" column="mian_type" />
<result property="parentType" column="parent_type" />
<result property="type" column="type" />
<result property="price" column="price" />
<result property="num" column="num" />
<result property="introduction" column="introduction" />
<result property="status" column="status" />
<result property="brandId" column="brand_id" />
<result property="ruleId" column="rule_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectProjectInfoVo">
select id, name, image, mian_type, parent_type, type, price, num, introduction, status, brand_id, rule_id, remark, create_by, create_time, update_by, update_time from project_info
</sql>
<select id="selectProjectInfoList" parameterType="com.muyu.product.domain.ProjectInfo" resultMap="ProjectInfoResult">
<include refid="selectProjectInfoVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="image != null and image != ''"> and image = #{image}</if>
<if test="mianType != null and mianType != ''"> and mian_type = #{mianType}</if>
<if test="parentType != null and parentType != ''"> and parent_type = #{parentType}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="price != null "> and price = #{price}</if>
<if test="num != null "> and num = #{num}</if>
<if test="introduction != null and introduction != ''"> and introduction = #{introduction}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="brandId != null "> and brand_id = #{brandId}</if>
<if test="ruleId != null "> and rule_id = #{ruleId}</if>
</where>
</select>
<select id="selectProjectInfoById" parameterType="Long" resultMap="ProjectInfoResult">
<include refid="selectProjectInfoVo"/>
where id = #{id}
</select>
<insert id="insertProjectInfo" parameterType="com.muyu.product.domain.ProjectInfo" useGeneratedKeys="true" keyProperty="id">
insert into project_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="image != null">image,</if>
<if test="mianType != null">mian_type,</if>
<if test="parentType != null">parent_type,</if>
<if test="type != null">type,</if>
<if test="price != null">price,</if>
<if test="num != null">num,</if>
<if test="introduction != null">introduction,</if>
<if test="status != null">status,</if>
<if test="brandId != null">brand_id,</if>
<if test="ruleId != null">rule_id,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="image != null">#{image},</if>
<if test="mianType != null">#{mianType},</if>
<if test="parentType != null">#{parentType},</if>
<if test="type != null">#{type},</if>
<if test="price != null">#{price},</if>
<if test="num != null">#{num},</if>
<if test="introduction != null">#{introduction},</if>
<if test="status != null">#{status},</if>
<if test="brandId != null">#{brandId},</if>
<if test="ruleId != null">#{ruleId},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateProjectInfo" parameterType="com.muyu.product.domain.ProjectInfo">
update project_info
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="image != null">image = #{image},</if>
<if test="mianType != null">mian_type = #{mianType},</if>
<if test="parentType != null">parent_type = #{parentType},</if>
<if test="type != null">type = #{type},</if>
<if test="price != null">price = #{price},</if>
<if test="num != null">num = #{num},</if>
<if test="introduction != null">introduction = #{introduction},</if>
<if test="status != null">status = #{status},</if>
<if test="brandId != null">brand_id = #{brandId},</if>
<if test="ruleId != null">rule_id = #{ruleId},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteProjectInfoById" parameterType="Long">
delete from project_info where id = #{id}
</delete>
<delete id="deleteProjectInfoByIds" parameterType="String">
delete from project_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.ProjectSkuInfoMapper">
<resultMap type="com.muyu.product.domain.ProjectSkuInfo" id="ProjectSkuInfoResult">
<result property="id" column="id" />
<result property="projectId" column="project_id" />
<result property="sku" column="sku" />
<result property="stock" column="stock" />
<result property="price" column="price" />
<result property="image" column="image" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectProjectSkuInfoVo">
select id, project_id, sku, stock, price, image, remark, create_by, create_time, update_by, update_time from project_sku_info
</sql>
<select id="selectProjectSkuInfoList" parameterType="com.muyu.product.domain.ProjectSkuInfo" resultMap="ProjectSkuInfoResult">
<include refid="selectProjectSkuInfoVo"/>
<where>
<if test="projectId != null "> and project_id = #{projectId}</if>
<if test="sku != null and sku != ''"> and sku = #{sku}</if>
<if test="stock != null "> and stock = #{stock}</if>
<if test="price != null "> and price = #{price}</if>
<if test="image != null and image != ''"> and image = #{image}</if>
</where>
</select>
<select id="selectProjectSkuInfoById" parameterType="Long" resultMap="ProjectSkuInfoResult">
<include refid="selectProjectSkuInfoVo"/>
where id = #{id}
</select>
<insert id="insertProjectSkuInfo" parameterType="com.muyu.product.domain.ProjectSkuInfo" useGeneratedKeys="true" keyProperty="id">
insert into project_sku_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="projectId != null">project_id,</if>
<if test="sku != null">sku,</if>
<if test="stock != null">stock,</if>
<if test="price != null">price,</if>
<if test="image != null">image,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectId != null">#{projectId},</if>
<if test="sku != null">#{sku},</if>
<if test="stock != null">#{stock},</if>
<if test="price != null">#{price},</if>
<if test="image != null">#{image},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateProjectSkuInfo" parameterType="com.muyu.product.domain.ProjectSkuInfo">
update project_sku_info
<trim prefix="SET" suffixOverrides=",">
<if test="projectId != null">project_id = #{projectId},</if>
<if test="sku != null">sku = #{sku},</if>
<if test="stock != null">stock = #{stock},</if>
<if test="price != null">price = #{price},</if>
<if test="image != null">image = #{image},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteProjectSkuInfoById" parameterType="Long">
delete from project_sku_info where id = #{id}
</delete>
<delete id="deleteProjectSkuInfoByIds" parameterType="String">
delete from project_sku_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.RuleAttrInfoMapper">
<resultMap type="com.muyu.product.domain.RuleAttrInfo" id="RuleAttrInfoResult">
<result property="id" column="id" />
<result property="ruleId" column="rule_id" />
<result property="name" column="name" />
<result property="attrValue" column="attr_value" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectRuleAttrInfoVo">
select id, rule_id, name, attr_value, remark, create_by, create_time, update_by, update_time from rule_attr_info
</sql>
<select id="selectRuleAttrInfoList" parameterType="com.muyu.product.domain.RuleAttrInfo" resultMap="RuleAttrInfoResult">
<include refid="selectRuleAttrInfoVo"/>
<where>
<if test="ruleId != null "> and rule_id = #{ruleId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="attrValue != null and attrValue != ''"> and attr_value = #{attrValue}</if>
</where>
</select>
<select id="selectRuleAttrInfoById" parameterType="Long" resultMap="RuleAttrInfoResult">
<include refid="selectRuleAttrInfoVo"/>
where id = #{id}
</select>
<insert id="insertRuleAttrInfo" parameterType="com.muyu.product.domain.RuleAttrInfo" useGeneratedKeys="true" keyProperty="id">
insert into rule_attr_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ruleId != null">rule_id,</if>
<if test="name != null">name,</if>
<if test="attrValue != null">attr_value,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ruleId != null">#{ruleId},</if>
<if test="name != null">#{name},</if>
<if test="attrValue != null">#{attrValue},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateRuleAttrInfo" parameterType="com.muyu.product.domain.RuleAttrInfo">
update rule_attr_info
<trim prefix="SET" suffixOverrides=",">
<if test="ruleId != null">rule_id = #{ruleId},</if>
<if test="name != null">name = #{name},</if>
<if test="attrValue != null">attr_value = #{attrValue},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteRuleAttrInfoById" parameterType="Long">
delete from rule_attr_info where id = #{id}
</delete>
<delete id="deleteRuleAttrInfoByIds" parameterType="String">
delete from rule_attr_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.muyu.product.mapper.RuleInfoMapper">
<resultMap type="com.muyu.product.domain.RuleInfo" id="RuleInfoResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="status" column="status" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectRuleInfoVo">
select id, name, status, remark, create_by, create_time, update_by, update_time from rule_info
</sql>
<select id="selectRuleInfoList" parameterType="com.muyu.product.domain.RuleInfo" resultMap="RuleInfoResult">
<include refid="selectRuleInfoVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectRuleInfoById" parameterType="Long" resultMap="RuleInfoResult">
<include refid="selectRuleInfoVo"/>
where id = #{id}
</select>
<insert id="insertRuleInfo" parameterType="com.muyu.product.domain.RuleInfo" useGeneratedKeys="true" keyProperty="id">
insert into rule_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="status != null">status,</if>
<if test="remark != null">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="status != null">#{status},</if>
<if test="remark != null">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateRuleInfo" parameterType="com.muyu.product.domain.RuleInfo">
update rule_info
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="status != null">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteRuleInfoById" parameterType="Long">
delete from rule_info where id = #{id}
</delete>
<delete id="deleteRuleInfoByIds" parameterType="String">
delete from rule_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.muyu</groupId>
<artifactId>muyu-modules</artifactId>
<version>3.6.3</version>
</parent>
<artifactId>muyu-product</artifactId>
<packaging>pom</packaging>
<modules>
<module>muyu-product-remote</module>
<module>muyu-product-server</module>
</modules>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 118.89.120.67:8848
# 配置文件格式
file-extension: yml
# 共享配置

Some files were not shown because too many files have changed in this diff Show More