商品管理初始化
parent
10341472e9
commit
5e22c230d6
|
@ -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
|
||||
# 共享配置
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
# 共享配置
|
||||
|
|
|
@ -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
|
||||
# 共享配置
|
||||
|
|
|
@ -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
|
||||
# 共享配置
|
||||
|
|
|
@ -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>
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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>
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello world!");
|
||||
}
|
||||
}
|
|
@ -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>
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
|
@ -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
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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
Loading…
Reference in New Issue