商品测试
parent
efea92eb26
commit
9d7bfbbc6b
|
@ -7,6 +7,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品品牌对象 mall_product_brand_info
|
* 商品品牌对象 mall_product_brand_info
|
||||||
*
|
*
|
||||||
|
@ -15,6 +17,7 @@ import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
*/
|
*/
|
||||||
public class MallProductBrandInfo extends BaseEntity
|
public class MallProductBrandInfo extends BaseEntity
|
||||||
{
|
{
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** ID */
|
/** ID */
|
||||||
|
|
|
@ -2,23 +2,28 @@ package com.nuyu.product.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品信息对象 mall_product_info
|
* 商品信息对象 mall_product_info
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author muyu
|
||||||
* @date 2024-05-06
|
* @date 2024-05-06
|
||||||
*/
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class MallProductInfo extends BaseEntity
|
public class MallProductInfo extends BaseEntity
|
||||||
{
|
{
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** ID */
|
/** ID */
|
||||||
|
|
|
@ -1,20 +1,25 @@
|
||||||
package com.nuyu.product.domain;
|
package com.nuyu.product.domain;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品评价对象 mall_product_review_info
|
* 商品评价对象 mall_product_review_info
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author muyu
|
||||||
* @date 2024-05-08
|
* @date 2024-05-08
|
||||||
*/
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
public class MallProductReviewInfo extends BaseEntity
|
public class MallProductReviewInfo extends BaseEntity
|
||||||
{
|
{
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** ID */
|
/** ID */
|
||||||
|
|
|
@ -2,23 +2,28 @@ package com.nuyu.product.domain;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格详情对象 mall_product_rule_attr_info
|
* 商品规格详情对象 mall_product_rule_attr_info
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author muyu
|
||||||
* @date 2024-04-29
|
* @date 2024-04-29
|
||||||
*/
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class MallProductRuleAttrInfo extends BaseEntity
|
public class MallProductRuleAttrInfo extends BaseEntity
|
||||||
{
|
{
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** ID */
|
/** ID */
|
||||||
|
|
|
@ -1,18 +1,25 @@
|
||||||
package com.nuyu.product.domain;
|
package com.nuyu.product.domain;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
import com.muyu.common.core.web.domain.BaseEntity;
|
import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 商品规格对象 mall_product_rule_info
|
* 商品规格对象 mall_product_rule_info
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author muyu
|
||||||
* @date 2024-04-29
|
* @date 2024-04-29
|
||||||
*/
|
*/
|
||||||
|
@Setter
|
||||||
|
@Getter
|
||||||
public class MallProductRuleInfo extends BaseEntity
|
public class MallProductRuleInfo extends BaseEntity
|
||||||
{
|
{
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** ID */
|
/** ID */
|
||||||
|
@ -34,52 +41,6 @@ public class MallProductRuleInfo extends BaseEntity
|
||||||
@Excel(name = "乐观锁")
|
@Excel(name = "乐观锁")
|
||||||
private Long revision;
|
private Long revision;
|
||||||
|
|
||||||
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 setRuleAttr(String ruleAttr)
|
|
||||||
{
|
|
||||||
this.ruleAttr = ruleAttr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRuleAttr()
|
|
||||||
{
|
|
||||||
return ruleAttr;
|
|
||||||
}
|
|
||||||
public void setStatus(String status)
|
|
||||||
{
|
|
||||||
this.status = status;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getStatus()
|
|
||||||
{
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
public void setRevision(Long revision)
|
|
||||||
{
|
|
||||||
this.revision = revision;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getRevision()
|
|
||||||
{
|
|
||||||
return revision;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.nuyu.product.domain;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import com.muyu.common.core.annotation.Excel;
|
import com.muyu.common.core.annotation.Excel;
|
||||||
|
@ -14,6 +15,7 @@ import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
* @author muyu
|
* @author muyu
|
||||||
* @date 2024-05-07
|
* @date 2024-05-07
|
||||||
*/
|
*/
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
public class MallProductSkuInfo extends BaseEntity
|
public class MallProductSkuInfo extends BaseEntity
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
package com.muyu.system.domain;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
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;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品类型参数值对象 product_type_attr_value_copy1
|
||||||
|
*
|
||||||
|
* @author muyu
|
||||||
|
* @date 2024-05-08
|
||||||
|
*/
|
||||||
|
@Setter
|
||||||
|
@Getter
|
||||||
|
@Data
|
||||||
|
public class ProductTypeAttrValue extends BaseEntity
|
||||||
|
{
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 属性id */
|
||||||
|
@Excel(name = "属性id")
|
||||||
|
private Long typeAttrId;
|
||||||
|
|
||||||
|
/** 属性值详情 */
|
||||||
|
@Excel(name = "属性值详情")
|
||||||
|
private String typeAttrValue;
|
||||||
|
|
||||||
|
/** 录入方式,0-自动,1-手动 */
|
||||||
|
@Excel(name = "录入方式,0-自动,1-手动")
|
||||||
|
private Long inputMethod;
|
||||||
|
|
||||||
|
/** 是否删除 0-是 1-否 */
|
||||||
|
@Excel(name = "是否删除 0-是 1-否")
|
||||||
|
private Long idDelete;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("typeAttrId", getTypeAttrId())
|
||||||
|
.append("typeAttrValue", getTypeAttrValue())
|
||||||
|
.append("inputMethod", getInputMethod())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("idDelete", getIdDelete())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,8 +1,33 @@
|
||||||
package com.muyu.product.controller;
|
package com.muyu.product.controller;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.muyu.common.core.web.controller.BaseController;
|
||||||
|
import com.muyu.common.core.web.domain.AjaxResult;
|
||||||
|
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.muyu.product.service.TestService;
|
||||||
|
import com.nuyu.product.domain.MallProductInfo;
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: wangxinyuan
|
* @Author: wangxinyuan
|
||||||
* @Date: 2024/5/8 下午5:11
|
* @Date: 2024/5/8 下午5:11
|
||||||
*/
|
*/
|
||||||
public class TestController {
|
@RestController
|
||||||
|
@RequestMapping("txt")
|
||||||
|
public class TestController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private TestService testService;
|
||||||
|
|
||||||
|
|
||||||
|
@RequiresPermissions("product:info:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public AjaxResult list(MallProductInfo mallProductInfo){
|
||||||
|
PageInfo<MallProductInfo> info=testService.list(mallProductInfo);
|
||||||
|
return AjaxResult.success(info);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
package com.muyu.product.service.Impl;
|
package com.muyu.product.service.Impl;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
import com.muyu.product.service.TestService;
|
import com.muyu.product.service.TestService;
|
||||||
|
import com.nuyu.product.domain.MallProductInfo;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -9,4 +11,8 @@ import org.springframework.stereotype.Service;
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class TestServiceImpl implements TestService {
|
public class TestServiceImpl implements TestService {
|
||||||
|
@Override
|
||||||
|
public PageInfo<MallProductInfo> list(MallProductInfo mallProductInfo) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
package com.muyu.product.service;
|
package com.muyu.product.service;
|
||||||
|
|
||||||
|
import com.github.pagehelper.PageInfo;
|
||||||
|
import com.nuyu.product.domain.MallProductInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: wangxinyuan
|
* @Author: wangxinyuan
|
||||||
* @Date: 2024/5/8 下午5:11
|
* @Date: 2024/5/8 下午5:11
|
||||||
*/
|
*/
|
||||||
public interface TestService {
|
public interface TestService {
|
||||||
|
|
||||||
|
PageInfo<MallProductInfo> list(MallProductInfo mallProductInfo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue