【修改】 名称替换
This commit is contained in:
@@ -14,7 +14,7 @@ import java.util.List;
|
||||
/**
|
||||
* 品牌 Convert
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Mapper
|
||||
public interface ProductBrandConvert {
|
||||
|
@@ -15,7 +15,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
|
||||
/**
|
||||
* 商品 SKU Convert
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Mapper
|
||||
public interface ProductSkuConvert {
|
||||
|
@@ -19,7 +19,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
|
||||
/**
|
||||
* 商品 SPU Convert
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Mapper
|
||||
public interface ProductSpuConvert {
|
||||
|
@@ -10,7 +10,7 @@ import lombok.*;
|
||||
/**
|
||||
* 商品品牌 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@TableName("product_brand")
|
||||
@KeySequence("product_brand_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@@ -10,7 +10,7 @@ import lombok.*;
|
||||
/**
|
||||
* 商品分类 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@TableName("product_category")
|
||||
@KeySequence("product_category_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商品评论 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@TableName(value = "product_comment", autoResultMap = true)
|
||||
@KeySequence("product_comment_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@@ -10,7 +10,7 @@ import lombok.*;
|
||||
/**
|
||||
* 商品收藏 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@TableName("product_favorite")
|
||||
@KeySequence("product_favorite_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@@ -9,7 +9,7 @@ import lombok.*;
|
||||
/**
|
||||
* 商品属性项 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@TableName("product_property")
|
||||
@KeySequence("product_property_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@@ -10,7 +10,7 @@ import lombok.*;
|
||||
/**
|
||||
* 商品属性值 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@TableName("product_property_value")
|
||||
@KeySequence("product_property_value_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@@ -16,7 +16,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商品 SKU DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@TableName(value = "product_sku", autoResultMap = true)
|
||||
@KeySequence("product_sku_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@@ -18,7 +18,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商品 SPU DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@TableName(value = "product_spu", autoResultMap = true)
|
||||
@KeySequence("product_spu_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
|
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商品分类 Mapper
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Mapper
|
||||
public interface ProductCategoryMapper extends BaseMapperX<ProductCategoryDO> {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* 属于 product 模块的 framework 封装
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
package pc.exam.pp.module.product.framework;
|
||||
|
@@ -8,7 +8,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* product 模块的 web 组件的 Configuration
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
public class ProductWebConfiguration {
|
||||
|
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商品品牌 Service 接口
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public interface ProductBrandService {
|
||||
|
||||
|
@@ -23,7 +23,7 @@ import static pc.exam.pp.module.product.enums.ErrorCodeConstants.*;
|
||||
/**
|
||||
* 品牌 Service 实现类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
|
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商品分类 Service 接口
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public interface ProductCategoryService {
|
||||
|
||||
|
@@ -27,7 +27,7 @@ import static pc.exam.pp.module.product.enums.ErrorCodeConstants.*;
|
||||
/**
|
||||
* 商品分类 Service 实现类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
|
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商品属性项 Service 接口
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public interface ProductPropertyService {
|
||||
|
||||
|
@@ -23,7 +23,7 @@ import static pc.exam.pp.module.product.enums.ErrorCodeConstants.*;
|
||||
/**
|
||||
* 商品属性项 Service 实现类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
|
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
/**
|
||||
* 商品 SKU Service 接口
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public interface ProductSkuService {
|
||||
|
||||
|
@@ -31,7 +31,7 @@ import static pc.exam.pp.module.product.enums.ErrorCodeConstants.*;
|
||||
/**
|
||||
* 商品 SKU Service 实现类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
|
@@ -17,7 +17,7 @@ import java.util.Map;
|
||||
/**
|
||||
* 商品 SPU Service 接口
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
public interface ProductSpuService {
|
||||
|
||||
|
@@ -36,7 +36,7 @@ import static pc.exam.pp.module.product.enums.ErrorCodeConstants.*;
|
||||
/**
|
||||
* 商品 SPU Service 实现类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
|
@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
/**
|
||||
* {@link ProductBrandServiceImpl} 的单元测试类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Disabled // TODO 芋艿:后续 fix 补充的单测
|
||||
@Import(ProductBrandServiceImpl.class)
|
||||
@@ -107,7 +107,7 @@ public class ProductBrandServiceImplTest extends BaseDbUnitTest {
|
||||
public void testGetBrandPage() {
|
||||
// mock 数据
|
||||
ProductBrandDO dbBrand = randomPojo(ProductBrandDO.class, o -> { // 等会查询到
|
||||
o.setName("芋道源码");
|
||||
o.setName("朋辰");
|
||||
o.setStatus(CommonStatusEnum.ENABLE.getStatus());
|
||||
o.setCreateTime(buildTime(2022, 2, 1));
|
||||
});
|
||||
|
@@ -26,7 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
/**
|
||||
* {@link ProductCategoryServiceImpl} 的单元测试类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Disabled // TODO 芋艿:后续 fix 补充的单测
|
||||
@Import(ProductCategoryServiceImpl.class)
|
||||
|
@@ -32,7 +32,7 @@ import static org.mockito.Mockito.verify;
|
||||
/**
|
||||
* {@link ProductSkuServiceImpl} 的单元测试
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Disabled // TODO 芋艿:后续 fix 补充的单测
|
||||
@Import(ProductSkuServiceImpl.class)
|
||||
|
@@ -46,7 +46,7 @@ import static org.mockito.Mockito.when;
|
||||
/**
|
||||
* {@link ProductSpuServiceImpl} 的单元测试类
|
||||
*
|
||||
* @author 芋道源码
|
||||
* @author 朋辰
|
||||
*/
|
||||
@Disabled // TODO 芋艿:后续 fix 补充的单测
|
||||
@Import(ProductSpuServiceImpl.class)
|
||||
|
Reference in New Issue
Block a user