业务层修改,属性组前台数据获取

day-06
Saisai Liu 2024-03-03 11:53:04 +08:00
parent d3c9aeee59
commit 7b0ea31558
52 changed files with 565 additions and 370 deletions

View File

@ -1,6 +1,7 @@
package ${packageName}.mapper; package ${packageName}.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ${packageName}.domain.${ClassName}; import ${packageName}.domain.${ClassName};
#if($table.sub) #if($table.sub)
import ${packageName}.domain.${subClassName}; import ${packageName}.domain.${subClassName};
@ -8,15 +9,15 @@ import ${packageName}.domain.${subClassName};
/** /**
* ${functionName}Mapper接口 * ${functionName}Mapper接口
* *
* @author ${author} * @author ${author}
* @date ${datetime} * @date ${datetime}
*/ */
public interface ${ClassName}Mapper public interface ${ClassName}Mapper extends BaseMapper<${ClassName}>
{ {
/** /**
* 查询${functionName} * 查询${functionName}
* *
* @param ${pkColumn.javaField} ${functionName}主键 * @param ${pkColumn.javaField} ${functionName}主键
* @return ${functionName} * @return ${functionName}
*/ */
@ -24,7 +25,7 @@ public interface ${ClassName}Mapper
/** /**
* 查询${functionName}列表 * 查询${functionName}列表
* *
* @param ${className} ${functionName} * @param ${className} ${functionName}
* @return ${functionName}集合 * @return ${functionName}集合
*/ */
@ -32,7 +33,7 @@ public interface ${ClassName}Mapper
/** /**
* 新增${functionName} * 新增${functionName}
* *
* @param ${className} ${functionName} * @param ${className} ${functionName}
* @return 结果 * @return 结果
*/ */
@ -40,7 +41,7 @@ public interface ${ClassName}Mapper
/** /**
* 修改${functionName} * 修改${functionName}
* *
* @param ${className} ${functionName} * @param ${className} ${functionName}
* @return 结果 * @return 结果
*/ */
@ -48,7 +49,7 @@ public interface ${ClassName}Mapper
/** /**
* 删除${functionName} * 删除${functionName}
* *
* @param ${pkColumn.javaField} ${functionName}主键 * @param ${pkColumn.javaField} ${functionName}主键
* @return 结果 * @return 结果
*/ */
@ -56,7 +57,7 @@ public interface ${ClassName}Mapper
/** /**
* 批量删除${functionName} * 批量删除${functionName}
* *
* @param ${pkColumn.javaField}s 需要删除的数据主键集合 * @param ${pkColumn.javaField}s 需要删除的数据主键集合
* @return 结果 * @return 结果
*/ */
@ -65,24 +66,24 @@ public interface ${ClassName}Mapper
/** /**
* 批量删除${subTable.functionName} * 批量删除${subTable.functionName}
* *
* @param ${pkColumn.javaField}s 需要删除的数据主键集合 * @param ${pkColumn.javaField}s 需要删除的数据主键集合
* @return 结果 * @return 结果
*/ */
public int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s); public int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s);
/** /**
* 批量新增${subTable.functionName} * 批量新增${subTable.functionName}
* *
* @param ${subclassName}List ${subTable.functionName}列表 * @param ${subclassName}List ${subTable.functionName}列表
* @return 结果 * @return 结果
*/ */
public int batch${subClassName}(List<${subClassName}> ${subclassName}List); public int batch${subClassName}(List<${subClassName}> ${subclassName}List);
/** /**
* 通过${functionName}主键删除${subTable.functionName}信息 * 通过${functionName}主键删除${subTable.functionName}信息
* *
* @param ${pkColumn.javaField} ${functionName}ID * @param ${pkColumn.javaField} ${functionName}ID
* @return 结果 * @return 结果
*/ */

View File

@ -1,19 +1,20 @@
package ${packageName}.service; package ${packageName}.service;
import java.util.List; import java.util.List;
import ${packageName}.domain.${ClassName}; import
import com.baomidou.mybatisplus.extension.service.IService; ${packageName}.domain.${ClassName};
/** /**
* ${functionName}Service接口 * ${functionName}Service接口
* *
* @author ${author} * @author ${author}
* @date ${datetime} * @date ${datetime}
*/ */
public interface I${ClassName}Service public interface ${ClassName}Service extends IService<${ClassName}>
{ {
/** /**
* 查询${functionName} * 查询${functionName}
* *
* @param ${pkColumn.javaField} ${functionName}主键 * @param ${pkColumn.javaField} ${functionName}主键
* @return ${functionName} * @return ${functionName}
*/ */
@ -21,7 +22,7 @@ public interface I${ClassName}Service
/** /**
* 查询${functionName}列表 * 查询${functionName}列表
* *
* @param ${className} ${functionName} * @param ${className} ${functionName}
* @return ${functionName}集合 * @return ${functionName}集合
*/ */
@ -29,7 +30,7 @@ public interface I${ClassName}Service
/** /**
* 新增${functionName} * 新增${functionName}
* *
* @param ${className} ${functionName} * @param ${className} ${functionName}
* @return 结果 * @return 结果
*/ */
@ -37,7 +38,7 @@ public interface I${ClassName}Service
/** /**
* 修改${functionName} * 修改${functionName}
* *
* @param ${className} ${functionName} * @param ${className} ${functionName}
* @return 结果 * @return 结果
*/ */
@ -45,7 +46,7 @@ public interface I${ClassName}Service
/** /**
* 批量删除${functionName} * 批量删除${functionName}
* *
* @param ${pkColumn.javaField}s 需要删除的${functionName}主键集合 * @param ${pkColumn.javaField}s 需要删除的${functionName}主键集合
* @return 结果 * @return 结果
*/ */
@ -53,7 +54,7 @@ public interface I${ClassName}Service
/** /**
* 删除${functionName}信息 * 删除${functionName}信息
* *
* @param ${pkColumn.javaField} ${functionName}主键 * @param ${pkColumn.javaField} ${functionName}主键
* @return 结果 * @return 结果
*/ */

View File

@ -13,6 +13,7 @@ import org.springframework.stereotype.Service;
import java.util.ArrayList; import java.util.ArrayList;
import com.muyu.common.core.utils.StringUtils; import com.muyu.common.core.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ${packageName}.domain.${subClassName}; import ${packageName}.domain.${subClassName};
#end #end
import ${packageName}.mapper.${ClassName}Mapper; import ${packageName}.mapper.${ClassName}Mapper;
@ -26,7 +27,7 @@ import ${packageName}.service.I${ClassName}Service;
* @date ${datetime} * @date ${datetime}
*/ */
@Service @Service
public class ${ClassName}ServiceImpl implements I${ClassName}Service public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper,${ClassName}> implements ${ClassName}Service
{ {
@Autowired @Autowired
private ${ClassName}Mapper ${className}Mapper; private ${ClassName}Mapper ${className}Mapper;

View File

@ -12,6 +12,8 @@ import lombok.experimental.SuperBuilder;
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 java.util.List;
/** /**
* as_attribute_group * as_attribute_group
* *
@ -38,45 +40,10 @@ public class AsAttributeGroup extends BaseEntity
@Excel(name = "分组编号") @Excel(name = "分组编号")
private Long groupId; private Long groupId;
public void setId(Long id) public static AsAttributeGroup saveBuilder(Long id, Long attributeId) {
{ return AsAttributeGroup.builder()
this.id = id; .groupId(id)
} .attributeId(attributeId)
.build();
public Long getId()
{
return id;
}
public void setAttributeId(Long attributeId)
{
this.attributeId = attributeId;
}
public Long getAttributeId()
{
return attributeId;
}
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("attributeId", getAttributeId())
.append("groupId", getGroupId())
.append("remark", getRemark())
.append("createBy", SecurityUtils.getUsername())
.append("createTime", getCreateTime())
.append("updateBy", SecurityUtils.getUsername())
.append("updateTime", getUpdateTime())
.toString();
} }
} }

View File

@ -3,6 +3,7 @@ package com.muyu.product.domain;
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 com.muyu.common.security.utils.SecurityUtils; import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.product.domain.req.AttributeGroupReq;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -36,60 +37,41 @@ public class AttributeGroup extends BaseEntity
@Excel(name = "组名") @Excel(name = "组名")
private String name; private String name;
private List<Long> checkedAttributeIds; private List<Attribute> attributeList;
/** 状态 */ /** 状态 */
@Excel(name = "状态") @Excel(name = "状态")
private String states; private String states;
public void setId(Long id) //创建添加属性组构建体
{ public static AttributeGroup saveBuilder(AttributeGroupReq attributeGroupReq) {
this.id = id; return AttributeGroup.builder()
.name(attributeGroupReq.getName())
.states(attributeGroupReq.getStates())
.createBy(SecurityUtils.getUsername())
.createTime(new Date())
.build();
} }
public Long getId()
{ //创建修改属性组构建体
return id; public static AttributeGroup editBuilder(AttributeGroupReq attributeGroupReq) {
} return AttributeGroup.builder()
public void setName(String name) .id(attributeGroupReq.getId())
{ .name(attributeGroupReq.getName())
this.name = name; .states(attributeGroupReq.getStates())
.updateBy(SecurityUtils.getUsername())
.updateTime(new Date())
.build();
} }
public String getName() public static AttributeGroup createBuilder(AttributeGroupReq attributeGroupReq) {
{ return AttributeGroup.builder()
return name; .name(attributeGroupReq.getName())
.states(attributeGroupReq.getStates())
.createTime(new Date())
.createBy(SecurityUtils.getUsername())
.build();
} }
public void setStates(String states)
{
this.states = states;
}
public String getStates()
{
return states;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("states", getStates())
.append("remark", getRemark())
.append("createBy", SecurityUtils.getUsername())
.append("createTime", getCreateTime())
.append("updateBy", SecurityUtils.getUsername())
.append("updateTime", getUpdateTime())
.toString();
}
// public static AttributeGroup queryBuilder (AttributeGroupReq attributeGroupReq) {
// return AttributeGroup.builder()
// .createBy(attributeGroupReq)
// .createTime(new Date())
// .build().
// }
} }

View File

@ -132,7 +132,6 @@ public class Brand extends BaseEntity {
//添加数据构造体 //添加数据构造体
public static Brand saveBuilder(BrandReq brandReq) { public static Brand saveBuilder(BrandReq brandReq) {
return Brand.builder() return Brand.builder()
.id(brandReq.getId())
.name(brandReq.getName()) .name(brandReq.getName())
.logo(brandReq.getLogo()) .logo(brandReq.getLogo())
.introduction(brandReq.getIntroduction()) .introduction(brandReq.getIntroduction())
@ -142,4 +141,18 @@ public class Brand extends BaseEntity {
.build(); .build();
} }
//修改构建体
public static Brand updateBuilder(BrandReq brandReq) {
return Brand.builder()
.id(brandReq.getId())
.name(brandReq.getName())
.logo(brandReq.getLogo())
.introduction(brandReq.getIntroduction())
.status(brandReq.getStatus())
.updateBy(SecurityUtils.getUsername())
.updateTime(new Date())
.build();
}
} }

View File

@ -0,0 +1,70 @@
package com.muyu.product.domain.req;
import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import com.muyu.common.security.utils.SecurityUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import java.util.List;
/**
* as_attribute_group
*
* @author Saisai
* @date 2024-02-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AsAttributeGroupReq extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 属性编号 */
@Excel(name = "属性编号")
private Long attributeId;
/**
* id
*/
private List<Long> attributeIds;
/** 分组编号 */
@Excel(name = "分组编号")
private Long groupId;
//添加组内属性构造体
public static AsAttributeGroupReq saveBuilder(AttributeGroupReq attributeGroupReq){
return AsAttributeGroupReq.builder()
.attributeIds(attributeGroupReq.getCheckedAttributeIds())
.groupId(attributeGroupReq.getId())
.createBy(SecurityUtils.getUsername())
.createTime(new Date())
.build();
}
//修改组内属性构造体
public static AsAttributeGroupReq updateBuilder(AttributeGroupReq attributeGroupReq){
return AsAttributeGroupReq.builder()
.attributeIds(attributeGroupReq.getCheckedAttributeIds())
.groupId(attributeGroupReq.getId())
.createBy(SecurityUtils.getUsername())
.createTime(new Date())
.build();
}
}

View File

@ -3,6 +3,7 @@ package com.muyu.product.domain.req;
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 com.muyu.common.security.utils.SecurityUtils; import com.muyu.common.security.utils.SecurityUtils;
import com.muyu.product.domain.AttributeGroup;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
@ -11,6 +12,7 @@ import lombok.experimental.SuperBuilder;
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 java.util.Date;
import java.util.List; import java.util.List;
/** /**
@ -42,7 +44,24 @@ public class AttributeGroupReq extends BaseEntity
private String states; private String states;
//添加构建体
public static AttributeGroup saveBuilder(AttributeGroupReq attributeGroupReq) {
return AttributeGroup.builder()
.name(attributeGroupReq.getName())
.states(attributeGroupReq.getStates())
.createBy(SecurityUtils.getUsername())
.createTime(new Date())
.build();
}
//修改构建体
public static AttributeGroup updateBuilder(AttributeGroupReq attributeGroupReq) {
return AttributeGroup.builder()
.id(attributeGroupReq.getId())
.name(attributeGroupReq.getName())
.states(attributeGroupReq.getStates())
.updateBy(SecurityUtils.getUsername())
.updateTime(new Date())
.build();
}
} }

View File

@ -3,6 +3,8 @@ package com.muyu.product.controller;
import java.util.List; import java.util.List;
import java.io.IOException; import java.io.IOException;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.muyu.product.domain.req.AttributeGroupReq;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -76,9 +78,9 @@ public class AttributeGroupController extends BaseController
@RequiresPermissions("product:group:add") @RequiresPermissions("product:group:add")
@Log(title = "属性组", businessType = BusinessType.INSERT) @Log(title = "属性组", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public Result add(@RequestBody AttributeGroup attributeGroup) public Result add(@RequestBody AttributeGroupReq attributeGroupReq)
{ {
return toAjax(attributeGroupService.insertAttributeGroup(attributeGroup)); return toAjax(attributeGroupService.insertAttributeGroup(attributeGroupReq));
} }
/** /**
@ -87,9 +89,9 @@ public class AttributeGroupController extends BaseController
@RequiresPermissions("product:group:edit") @RequiresPermissions("product:group:edit")
@Log(title = "属性组", businessType = BusinessType.UPDATE) @Log(title = "属性组", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public Result edit(@RequestBody AttributeGroup attributeGroup) public Result edit(@RequestBody AttributeGroupReq attributeGroupReq)
{ {
return toAjax(attributeGroupService.updateAttributeGroup(attributeGroup)); return toAjax(attributeGroupService.updateAttributeGroup(attributeGroupReq));
} }
/** /**

View File

@ -30,7 +30,7 @@ import com.muyu.common.core.web.page.TableDataInfo;
*/ */
@RestController @RestController
@RequestMapping("/product_category") @RequestMapping("/product_category")
public class ProductCategoryController extends BaseController public class ProductCategoryController extends BaseController
{ {
@Autowired @Autowired
private IProductCategoryService productCategoryService; private IProductCategoryService productCategoryService;

View File

@ -1,15 +1,17 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.Address; import com.muyu.product.domain.Address;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface AddressMapper public interface AddressMapper extends BaseMapper<Address>
{ {
/** /**
* *

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AsAttributeGroup; import com.muyu.product.domain.AsAttributeGroup;
import java.util.List;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface AsAttributeGroupMapper public interface AsAttributeGroupMapper extends BaseMapper<AsAttributeGroup>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface AsAttributeGroupMapper
/** /**
* *
* *
* @param asAttributeGroup * @param asAttributeGroup
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface AsAttributeGroupMapper
/** /**
* *
* *
* @param asAttributeGroup * @param asAttributeGroup
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface AsAttributeGroupMapper
/** /**
* *
* *
* @param asAttributeGroup * @param asAttributeGroup
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface AsAttributeGroupMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface AsAttributeGroupMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AttributeGroup; import com.muyu.product.domain.AttributeGroup;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author muyu * @author muyu
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface AttributeGroupMapper public interface AttributeGroupMapper extends BaseMapper<AttributeGroup>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface AttributeGroupMapper
/** /**
* *
* *
* @param attributeGroup * @param attributeGroup
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface AttributeGroupMapper
/** /**
* *
* *
* @param attributeGroup * @param attributeGroup
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface AttributeGroupMapper
/** /**
* *
* *
* @param attributeGroup * @param attributeGroup
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface AttributeGroupMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface AttributeGroupMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,15 +1,17 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.Attribute; import com.muyu.product.domain.Attribute;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface AttributeMapper public interface AttributeMapper extends BaseMapper<Attribute>
{ {
/** /**
* *

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.AttributeProduct; import com.muyu.product.domain.AttributeProduct;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface AttributeProductMapper public interface AttributeProductMapper extends BaseMapper<AttributeProduct>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface AttributeProductMapper
/** /**
* *
* *
* @param attributeProduct * @param attributeProduct
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface AttributeProductMapper
/** /**
* *
* *
* @param attributeProduct * @param attributeProduct
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface AttributeProductMapper
/** /**
* *
* *
* @param attributeProduct * @param attributeProduct
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface AttributeProductMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface AttributeProductMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.BrandCategory; import com.muyu.product.domain.BrandCategory;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface BrandCategoryMapper public interface BrandCategoryMapper extends BaseMapper<BrandCategory>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface BrandCategoryMapper
/** /**
* *
* *
* @param brandCategory * @param brandCategory
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface BrandCategoryMapper
/** /**
* *
* *
* @param brandCategory * @param brandCategory
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface BrandCategoryMapper
/** /**
* *
* *
* @param brandCategory * @param brandCategory
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface BrandCategoryMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface BrandCategoryMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,22 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.Brand; import com.muyu.product.domain.Brand;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface BrandMapper public interface BrandMapper extends BaseMapper<Brand>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +24,7 @@ public interface BrandMapper
/** /**
* *
* *
* @param brand * @param brand
* @return * @return
*/ */
@ -29,7 +32,7 @@ public interface BrandMapper
/** /**
* *
* *
* @param brand * @param brand
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface BrandMapper
/** /**
* *
* *
* @param brand * @param brand
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface BrandMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface BrandMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.CategoryAttributeGroup; import com.muyu.product.domain.CategoryAttributeGroup;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface CategoryAttributeGroupMapper public interface CategoryAttributeGroupMapper extends BaseMapper<CategoryAttributeGroup>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface CategoryAttributeGroupMapper
/** /**
* *
* *
* @param categoryAttributeGroup * @param categoryAttributeGroup
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface CategoryAttributeGroupMapper
/** /**
* *
* *
* @param categoryAttributeGroup * @param categoryAttributeGroup
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface CategoryAttributeGroupMapper
/** /**
* *
* *
* @param categoryAttributeGroup * @param categoryAttributeGroup
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface CategoryAttributeGroupMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface CategoryAttributeGroupMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.CategoryAttribute; import com.muyu.product.domain.CategoryAttribute;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface CategoryAttributeMapper public interface CategoryAttributeMapper extends BaseMapper<CategoryAttribute>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface CategoryAttributeMapper
/** /**
* *
* *
* @param categoryAttribute * @param categoryAttribute
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface CategoryAttributeMapper
/** /**
* *
* *
* @param categoryAttribute * @param categoryAttribute
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface CategoryAttributeMapper
/** /**
* *
* *
* @param categoryAttribute * @param categoryAttribute
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface CategoryAttributeMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface CategoryAttributeMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.CategoryInfo; import com.muyu.product.domain.CategoryInfo;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface CategoryInfoMapper public interface CategoryInfoMapper extends BaseMapper<CategoryInfo>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface CategoryInfoMapper
/** /**
* *
* *
* @param categoryInfo * @param categoryInfo
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface CategoryInfoMapper
/** /**
* *
* *
* @param categoryInfo * @param categoryInfo
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface CategoryInfoMapper
/** /**
* *
* *
* @param categoryInfo * @param categoryInfo
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface CategoryInfoMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface CategoryInfoMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.ProductCategory; import com.muyu.product.domain.ProductCategory;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface ProductCategoryMapper public interface ProductCategoryMapper extends BaseMapper<ProductCategory>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface ProductCategoryMapper
/** /**
* *
* *
* @param productCategory * @param productCategory
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface ProductCategoryMapper
/** /**
* *
* *
* @param productCategory * @param productCategory
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface ProductCategoryMapper
/** /**
* *
* *
* @param productCategory * @param productCategory
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface ProductCategoryMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface ProductCategoryMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.ProductInfo; import com.muyu.product.domain.ProductInfo;
/** /**
* ;Mapper * ;Mapper extends BaseMapper<>
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface ProductInfoMapper public interface ProductInfoMapper extends BaseMapper<ProductInfo>
{ {
/** /**
* ; * ;
* *
* @param id ; * @param id ;
* @return ; * @return ;
*/ */
@ -21,7 +23,7 @@ public interface ProductInfoMapper
/** /**
* ; * ;
* *
* @param productInfo ; * @param productInfo ;
* @return ; * @return ;
*/ */
@ -29,7 +31,7 @@ public interface ProductInfoMapper
/** /**
* ; * ;
* *
* @param productInfo ; * @param productInfo ;
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface ProductInfoMapper
/** /**
* ; * ;
* *
* @param productInfo ; * @param productInfo ;
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface ProductInfoMapper
/** /**
* ; * ;
* *
* @param id ; * @param id ;
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface ProductInfoMapper
/** /**
* ; * ;
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.Rule; import com.muyu.product.domain.Rule;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface RuleMapper public interface RuleMapper extends BaseMapper<Rule>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface RuleMapper
/** /**
* *
* *
* @param rule * @param rule
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface RuleMapper
/** /**
* *
* *
* @param rule * @param rule
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface RuleMapper
/** /**
* *
* *
* @param rule * @param rule
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface RuleMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface RuleMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.mapper; package com.muyu.product.mapper;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.product.domain.RuleProduct; import com.muyu.product.domain.RuleProduct;
/** /**
* Mapper * Mapper extends BaseMapper<>
* *
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface RuleProductMapper public interface RuleProductMapper extends BaseMapper<RuleProduct>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface RuleProductMapper
/** /**
* *
* *
* @param ruleProduct * @param ruleProduct
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface RuleProductMapper
/** /**
* *
* *
* @param ruleProduct * @param ruleProduct
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface RuleProductMapper
/** /**
* *
* *
* @param ruleProduct * @param ruleProduct
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface RuleProductMapper
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface RuleProductMapper
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */

View File

@ -1,7 +1,10 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address; import com.muyu.product.domain.Address;
import com.muyu.product.domain.CategoryAttribute;
/** /**
* Service * Service
@ -9,7 +12,7 @@ import com.muyu.product.domain.Address;
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IAddressService public interface IAddressService extends IService<Address>
{ {
/** /**
* *

View File

@ -1,19 +1,21 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.AsAttributeGroup; import com.muyu.product.domain.AsAttributeGroup;
/** /**
* Service * Service
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IAsAttributeGroupService public interface IAsAttributeGroupService extends IService<AsAttributeGroup>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface IAsAttributeGroupService
/** /**
* *
* *
* @param asAttributeGroup * @param asAttributeGroup
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface IAsAttributeGroupService
/** /**
* *
* *
* @param asAttributeGroup * @param asAttributeGroup
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface IAsAttributeGroupService
/** /**
* *
* *
* @param asAttributeGroup * @param asAttributeGroup
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface IAsAttributeGroupService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface IAsAttributeGroupService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,19 +1,23 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.AttributeGroup; import com.muyu.product.domain.AttributeGroup;
import com.muyu.product.domain.req.AttributeGroupReq;
/** /**
* Service * Service
* *
* @author muyu * @author muyu
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IAttributeGroupService public interface IAttributeGroupService extends IService<AttributeGroup>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +25,7 @@ public interface IAttributeGroupService
/** /**
* *
* *
* @param attributeGroup * @param attributeGroup
* @return * @return
*/ */
@ -29,23 +33,23 @@ public interface IAttributeGroupService
/** /**
* *
* *
* @param attributeGroup * @param attributeGroupReq
* @return * @return
*/ */
public int insertAttributeGroup(AttributeGroup attributeGroup); public int insertAttributeGroup(AttributeGroupReq attributeGroupReq);
/** /**
* *
* *
* @param attributeGroup * @param attributeGroupReq
* @return * @return
*/ */
public int updateAttributeGroup(AttributeGroup attributeGroup); public int updateAttributeGroup(AttributeGroupReq attributeGroupReq);
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +57,7 @@ public interface IAttributeGroupService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,19 +1,22 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.AttributeProduct; import com.muyu.product.domain.AttributeProduct;
/** /**
* Service * Service
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IAttributeProductService public interface IAttributeProductService extends IService<AttributeProduct>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +24,7 @@ public interface IAttributeProductService
/** /**
* *
* *
* @param attributeProduct * @param attributeProduct
* @return * @return
*/ */
@ -29,7 +32,7 @@ public interface IAttributeProductService
/** /**
* *
* *
* @param attributeProduct * @param attributeProduct
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface IAttributeProductService
/** /**
* *
* *
* @param attributeProduct * @param attributeProduct
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface IAttributeProductService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface IAttributeProductService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,6 +1,9 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.Attribute; import com.muyu.product.domain.Attribute;
/** /**
@ -9,7 +12,7 @@ import com.muyu.product.domain.Attribute;
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IAttributeService public interface IAttributeService extends IService<Attribute>
{ {
/** /**
* *

View File

@ -1,19 +1,22 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.BrandCategory; import com.muyu.product.domain.BrandCategory;
/** /**
* Service * Service
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IBrandCategoryService public interface IBrandCategoryService extends IService<BrandCategory>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +24,7 @@ public interface IBrandCategoryService
/** /**
* *
* *
* @param brandCategory * @param brandCategory
* @return * @return
*/ */
@ -29,7 +32,7 @@ public interface IBrandCategoryService
/** /**
* *
* *
* @param brandCategory * @param brandCategory
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface IBrandCategoryService
/** /**
* *
* *
* @param brandCategory * @param brandCategory
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface IBrandCategoryService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface IBrandCategoryService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,6 +1,9 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.Brand; import com.muyu.product.domain.Brand;
import com.muyu.product.domain.req.BrandReq; import com.muyu.product.domain.req.BrandReq;
@ -10,7 +13,7 @@ import com.muyu.product.domain.req.BrandReq;
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IBrandService public interface IBrandService extends IService<Brand>
{ {
/** /**
* *

View File

@ -1,19 +1,22 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.CategoryAttributeGroup; import com.muyu.product.domain.CategoryAttributeGroup;
/** /**
* Service * Service
* *
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface ICategoryAttributeGroupService public interface ICategoryAttributeGroupService extends IService<CategoryAttributeGroup>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +24,7 @@ public interface ICategoryAttributeGroupService
/** /**
* *
* *
* @param categoryAttributeGroup * @param categoryAttributeGroup
* @return * @return
*/ */
@ -29,7 +32,7 @@ public interface ICategoryAttributeGroupService
/** /**
* *
* *
* @param categoryAttributeGroup * @param categoryAttributeGroup
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface ICategoryAttributeGroupService
/** /**
* *
* *
* @param categoryAttributeGroup * @param categoryAttributeGroup
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface ICategoryAttributeGroupService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface ICategoryAttributeGroupService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,19 +1,21 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.CategoryAttribute; import com.muyu.product.domain.CategoryAttribute;
/** /**
* Service * Service
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface ICategoryAttributeService public interface ICategoryAttributeService extends IService<CategoryAttribute>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +23,7 @@ public interface ICategoryAttributeService
/** /**
* *
* *
* @param categoryAttribute * @param categoryAttribute
* @return * @return
*/ */
@ -29,7 +31,7 @@ public interface ICategoryAttributeService
/** /**
* *
* *
* @param categoryAttribute * @param categoryAttribute
* @return * @return
*/ */
@ -37,7 +39,7 @@ public interface ICategoryAttributeService
/** /**
* *
* *
* @param categoryAttribute * @param categoryAttribute
* @return * @return
*/ */
@ -45,7 +47,7 @@ public interface ICategoryAttributeService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +55,7 @@ public interface ICategoryAttributeService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,19 +1,22 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.CategoryInfo; import com.muyu.product.domain.CategoryInfo;
/** /**
* Service * Service
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface ICategoryInfoService public interface ICategoryInfoService extends IService<CategoryInfo>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +24,7 @@ public interface ICategoryInfoService
/** /**
* *
* *
* @param categoryInfo * @param categoryInfo
* @return * @return
*/ */
@ -29,7 +32,7 @@ public interface ICategoryInfoService
/** /**
* *
* *
* @param categoryInfo * @param categoryInfo
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface ICategoryInfoService
/** /**
* *
* *
* @param categoryInfo * @param categoryInfo
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface ICategoryInfoService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface ICategoryInfoService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,19 +1,22 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.ProductCategory; import com.muyu.product.domain.ProductCategory;
/** /**
* Service * Service
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IProductCategoryService public interface IProductCategoryService extends IService<ProductCategory>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +24,7 @@ public interface IProductCategoryService
/** /**
* *
* *
* @param productCategory * @param productCategory
* @return * @return
*/ */
@ -29,7 +32,7 @@ public interface IProductCategoryService
/** /**
* *
* *
* @param productCategory * @param productCategory
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface IProductCategoryService
/** /**
* *
* *
* @param productCategory * @param productCategory
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface IProductCategoryService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface IProductCategoryService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,19 +1,22 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.ProductInfo; import com.muyu.product.domain.ProductInfo;
/** /**
* ;Service * ;Service
* *
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IProductInfoService public interface IProductInfoService extends IService<ProductInfo>
{ {
/** /**
* ; * ;
* *
* @param id ; * @param id ;
* @return ; * @return ;
*/ */
@ -21,7 +24,7 @@ public interface IProductInfoService
/** /**
* ; * ;
* *
* @param productInfo ; * @param productInfo ;
* @return ; * @return ;
*/ */
@ -29,7 +32,7 @@ public interface IProductInfoService
/** /**
* ; * ;
* *
* @param productInfo ; * @param productInfo ;
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface IProductInfoService
/** /**
* ; * ;
* *
* @param productInfo ; * @param productInfo ;
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface IProductInfoService
/** /**
* ; * ;
* *
* @param ids ; * @param ids ;
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface IProductInfoService
/** /**
* ; * ;
* *
* @param id ; * @param id ;
* @return * @return
*/ */

View File

@ -1,19 +1,22 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.RuleProduct; import com.muyu.product.domain.RuleProduct;
/** /**
* Service * Service
* *
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IRuleProductService public interface IRuleProductService extends IService<RuleProduct>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +24,7 @@ public interface IRuleProductService
/** /**
* *
* *
* @param ruleProduct * @param ruleProduct
* @return * @return
*/ */
@ -29,7 +32,7 @@ public interface IRuleProductService
/** /**
* *
* *
* @param ruleProduct * @param ruleProduct
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface IRuleProductService
/** /**
* *
* *
* @param ruleProduct * @param ruleProduct
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface IRuleProductService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface IRuleProductService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,19 +1,22 @@
package com.muyu.product.service; package com.muyu.product.service;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.product.domain.Address;
import com.muyu.product.domain.Rule; import com.muyu.product.domain.Rule;
/** /**
* Service * Service
* *
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
public interface IRuleService public interface IRuleService extends IService<Rule>
{ {
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */
@ -21,7 +24,7 @@ public interface IRuleService
/** /**
* *
* *
* @param rule * @param rule
* @return * @return
*/ */
@ -29,7 +32,7 @@ public interface IRuleService
/** /**
* *
* *
* @param rule * @param rule
* @return * @return
*/ */
@ -37,7 +40,7 @@ public interface IRuleService
/** /**
* *
* *
* @param rule * @param rule
* @return * @return
*/ */
@ -45,7 +48,7 @@ public interface IRuleService
/** /**
* *
* *
* @param ids * @param ids
* @return * @return
*/ */
@ -53,7 +56,7 @@ public interface IRuleService
/** /**
* *
* *
* @param id * @param id
* @return * @return
*/ */

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,7 @@ import com.muyu.product.service.IAddressService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class AddressServiceImpl implements IAddressService public class AddressServiceImpl extends ServiceImpl<AddressMapper,Address> implements IAddressService
{ {
@Autowired @Autowired
private AddressMapper addressMapper; private AddressMapper addressMapper;

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,8 @@ import com.muyu.product.service.IAsAttributeGroupService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class AsAttributeGroupServiceImpl implements IAsAttributeGroupService public class AsAttributeGroupServiceImpl extends ServiceImpl<AsAttributeGroupMapper,AsAttributeGroup>
implements IAsAttributeGroupService
{ {
@Autowired @Autowired
private AsAttributeGroupMapper asAttributeGroupMapper; private AsAttributeGroupMapper asAttributeGroupMapper;

View File

@ -1,14 +1,20 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils;
import com.muyu.product.domain.AsAttributeGroup; import com.muyu.product.domain.AsAttributeGroup;
import com.muyu.product.domain.Attribute;
import com.muyu.product.domain.AttributeGroup;
import com.muyu.product.domain.req.AttributeGroupReq;
import com.muyu.product.mapper.AsAttributeGroupMapper; import com.muyu.product.mapper.AsAttributeGroupMapper;
import com.muyu.product.mapper.AttributeGroupMapper;
import com.muyu.product.service.IAsAttributeGroupService;
import com.muyu.product.service.IAttributeGroupService;
import com.muyu.product.service.IAttributeService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.muyu.product.mapper.AttributeGroupMapper;
import com.muyu.product.domain.AttributeGroup; import java.util.ArrayList;
import com.muyu.product.service.IAttributeGroupService; import java.util.List;
/** /**
* Service * Service
@ -17,13 +23,16 @@ import com.muyu.product.service.IAttributeGroupService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class AttributeGroupServiceImpl implements IAttributeGroupService public class AttributeGroupServiceImpl extends ServiceImpl<AttributeGroupMapper, AttributeGroup>
{ implements IAttributeGroupService {
@Autowired @Autowired
private AttributeGroupMapper attributeGroupMapper; private AttributeGroupMapper attributeGroupMapper;
@Autowired @Autowired
private AsAttributeGroupMapper asAttributeGroupMapper; private IAsAttributeGroupService asAttributeGroupService;
@Autowired
private IAttributeService attributeService;
/** /**
* *
@ -32,9 +41,23 @@ public class AttributeGroupServiceImpl implements IAttributeGroupService
* @return * @return
*/ */
@Override @Override
public AttributeGroup selectAttributeGroupById(Long id) public AttributeGroup selectAttributeGroupById(Long id) {
{ AttributeGroup group = attributeGroupMapper.selectAttributeGroupById(id);
return attributeGroupMapper.selectAttributeGroupById(id); setAttributeList(group);
return group;
}
/**
*
* @param group
*/
private void setAttributeList(AttributeGroup group) {
List<Attribute> attributeLongs = new ArrayList<>();
List<AsAttributeGroup> asAttributeGroups = asAttributeGroupService.selectAsAttributeGroupList(AsAttributeGroup.builder()
.groupId(group.getId())
.build());
asAttributeGroups.forEach(asAttributeGroup -> attributeLongs.add(attributeService.selectAttributeById(asAttributeGroup.getAttributeId())));
group.setAttributeList(attributeLongs);
} }
/** /**
@ -44,40 +67,51 @@ public class AttributeGroupServiceImpl implements IAttributeGroupService
* @return * @return
*/ */
@Override @Override
public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup) public List<AttributeGroup> selectAttributeGroupList(AttributeGroup attributeGroup) {
{ List<AttributeGroup> attributeGroups = attributeGroupMapper.selectAttributeGroupList(attributeGroup);
return attributeGroupMapper.selectAttributeGroupList(attributeGroup); attributeGroups.forEach(this::setAttributeList);
return attributeGroups;
} }
/** /**
* *
* *
* @param attributeGroup * @param attributeGroupReq
* @return * @return
*/ */
@Override @Override
public int insertAttributeGroup(AttributeGroup attributeGroup) public int insertAttributeGroup(AttributeGroupReq attributeGroupReq) {
{ AttributeGroup group = AttributeGroup.createBuilder(attributeGroupReq);
attributeGroup.setCreateTime(DateUtils.getNowDate()); int i = attributeGroupMapper.insertAttributeGroup(group);
int i = attributeGroupMapper.insertAttributeGroup(attributeGroup); List<AsAttributeGroup> asAttributeGroups =
AsAttributeGroup asAttributeGroup = new AsAttributeGroup(); attributeGroupReq.getCheckedAttributeIds()
.stream().map(attributeId ->
// asAttributeGroupMapper.insertAsAttributeGroup(); AsAttributeGroup
.saveBuilder(group.getId(), attributeId))
return attributeGroupMapper.insertAttributeGroup(attributeGroup); .toList();
asAttributeGroupService.saveBatch(asAttributeGroups);
// asAttributeGroups.forEach(asAttributeGroup -> asAttributeGroupMapper.insertAsAttributeGroup(asAttributeGroup));
return asAttributeGroups.size();
} }
/** /**
* *
* *
* @param attributeGroup * @param attributeGroupReq
* @return * @return
*/ */
@Override @Override
public int updateAttributeGroup(AttributeGroup attributeGroup) public int updateAttributeGroup(AttributeGroupReq attributeGroupReq) {
{ AttributeGroup attributeGroup = AttributeGroupReq.updateBuilder(attributeGroupReq);
attributeGroup.setUpdateTime(DateUtils.getNowDate()); int i = attributeGroupMapper.updateAttributeGroup(attributeGroup);
return attributeGroupMapper.updateAttributeGroup(attributeGroup); List<AsAttributeGroup> asAttributeGroups =
attributeGroupReq.getCheckedAttributeIds().stream()
.map(attributeId -> AsAttributeGroup
.saveBuilder(attributeGroup.getId(), attributeId))
.toList();
// asAttributeGroupService.saveBatch(asAttributeGroups);
asAttributeGroups.forEach(asAttributeGroup -> asAttributeGroupService.updateAsAttributeGroup(asAttributeGroup));
return asAttributeGroups.size();
} }
/** /**
@ -87,8 +121,7 @@ public class AttributeGroupServiceImpl implements IAttributeGroupService
* @return * @return
*/ */
@Override @Override
public int deleteAttributeGroupByIds(Long[] ids) public int deleteAttributeGroupByIds(Long[] ids) {
{
return attributeGroupMapper.deleteAttributeGroupByIds(ids); return attributeGroupMapper.deleteAttributeGroupByIds(ids);
} }
@ -99,8 +132,7 @@ public class AttributeGroupServiceImpl implements IAttributeGroupService
* @return * @return
*/ */
@Override @Override
public int deleteAttributeGroupById(Long id) public int deleteAttributeGroupById(Long id) {
{
return attributeGroupMapper.deleteAttributeGroupById(id); return attributeGroupMapper.deleteAttributeGroupById(id);
} }
} }

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,7 @@ import com.muyu.product.service.IAttributeProductService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class AttributeProductServiceImpl implements IAttributeProductService public class AttributeProductServiceImpl extends ServiceImpl<AttributeProductMapper,AttributeProduct> implements IAttributeProductService
{ {
@Autowired @Autowired
private AttributeProductMapper attributeProductMapper; private AttributeProductMapper attributeProductMapper;

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,7 @@ import com.muyu.product.service.IAttributeService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class AttributeServiceImpl implements IAttributeService public class AttributeServiceImpl extends ServiceImpl<AttributeMapper,Attribute> implements IAttributeService
{ {
@Autowired @Autowired
private AttributeMapper attributeMapper; private AttributeMapper attributeMapper;

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,7 @@ import com.muyu.product.service.IBrandCategoryService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class BrandCategoryServiceImpl implements IBrandCategoryService public class BrandCategoryServiceImpl extends ServiceImpl<BrandCategoryMapper,BrandCategory> implements IBrandCategoryService
{ {
@Autowired @Autowired
private BrandCategoryMapper brandCategoryMapper; private BrandCategoryMapper brandCategoryMapper;

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,8 @@ import com.muyu.product.service.IBrandService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class BrandServiceImpl implements IBrandService public class BrandServiceImpl extends ServiceImpl<BrandMapper,Brand>
implements IBrandService
{ {
@Autowired @Autowired
private BrandMapper brandMapper; private BrandMapper brandMapper;

View File

@ -1,7 +1,10 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CategoryAttributeGroupMapper; import com.muyu.product.mapper.CategoryAttributeGroupMapper;
@ -14,8 +17,10 @@ import com.muyu.product.service.ICategoryAttributeGroupService;
* @author saisai * @author saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Slf4j
@Service @Service
public class CategoryAttributeGroupServiceImpl implements ICategoryAttributeGroupService public class CategoryAttributeGroupServiceImpl extends ServiceImpl<CategoryAttributeGroupMapper,CategoryAttributeGroup>
implements ICategoryAttributeGroupService
{ {
@Autowired @Autowired
private CategoryAttributeGroupMapper categoryAttributeGroupMapper; private CategoryAttributeGroupMapper categoryAttributeGroupMapper;

View File

@ -1,7 +1,10 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CategoryAttributeMapper; import com.muyu.product.mapper.CategoryAttributeMapper;
@ -14,8 +17,9 @@ import com.muyu.product.service.ICategoryAttributeService;
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Slf4j
@Service @Service
public class CategoryAttributeServiceImpl implements ICategoryAttributeService public class CategoryAttributeServiceImpl extends ServiceImpl<CategoryAttributeMapper,CategoryAttribute> implements ICategoryAttributeService
{ {
@Autowired @Autowired
private CategoryAttributeMapper categoryAttributeMapper; private CategoryAttributeMapper categoryAttributeMapper;

View File

@ -1,7 +1,10 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.muyu.product.mapper.CategoryInfoMapper; import com.muyu.product.mapper.CategoryInfoMapper;
@ -14,12 +17,15 @@ import com.muyu.product.service.ICategoryInfoService;
* @author Saisai * @author Saisai
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Slf4j
@Service @Service
public class CategoryInfoServiceImpl implements ICategoryInfoService public class CategoryInfoServiceImpl extends ServiceImpl<CategoryInfoMapper,CategoryInfo> implements ICategoryInfoService
{ {
@Autowired @Autowired
private CategoryInfoMapper categoryInfoMapper; private CategoryInfoMapper categoryInfoMapper;
// @Autowired
// private ICategoryInfoService categoryInfoService;
/** /**
* *
* *

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,7 @@ import com.muyu.product.service.IProductCategoryService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class ProductCategoryServiceImpl implements IProductCategoryService public class ProductCategoryServiceImpl extends ServiceImpl<ProductCategoryMapper,ProductCategory> implements IProductCategoryService
{ {
@Autowired @Autowired
private ProductCategoryMapper productCategoryMapper; private ProductCategoryMapper productCategoryMapper;

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,7 @@ import com.muyu.product.service.IProductInfoService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class ProductInfoServiceImpl implements IProductInfoService public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper,ProductInfo> implements IProductInfoService
{ {
@Autowired @Autowired
private ProductInfoMapper productInfoMapper; private ProductInfoMapper productInfoMapper;

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,7 @@ import com.muyu.product.service.IRuleProductService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class RuleProductServiceImpl implements IRuleProductService public class RuleProductServiceImpl extends ServiceImpl<RuleProductMapper,RuleProduct> implements IRuleProductService
{ {
@Autowired @Autowired
private RuleProductMapper ruleProductMapper; private RuleProductMapper ruleProductMapper;

View File

@ -1,6 +1,8 @@
package com.muyu.product.service.impl; package com.muyu.product.service.impl;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.common.core.utils.DateUtils; import com.muyu.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -15,7 +17,7 @@ import com.muyu.product.service.IRuleService;
* @date 2024-02-29 * @date 2024-02-29
*/ */
@Service @Service
public class RuleServiceImpl implements IRuleService public class RuleServiceImpl extends ServiceImpl<RuleMapper,Rule> implements IRuleService
{ {
@Autowired @Autowired
private RuleMapper ruleMapper; private RuleMapper ruleMapper;