mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-17 19:51:53 +08:00
mall:调整 trade 的接口
This commit is contained in:
@@ -38,12 +38,6 @@ public class ProductCategoryDO extends BaseDO {
|
||||
* 父分类编号
|
||||
*/
|
||||
private Long parentId;
|
||||
// /**
|
||||
// * 店铺编号
|
||||
// *
|
||||
// * 关联 {@link ShopDO#getId()} TODO 芋艿:多店铺,暂不考虑
|
||||
// */
|
||||
// private Long shopId;
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
|
@@ -27,12 +27,6 @@ public class ProductGroupBindDO extends BaseDO {
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
// /**
|
||||
// * 店铺编号
|
||||
// *
|
||||
// * 关联 {@link ShopDO#getId()} TODO 芋艿:多店铺,暂不考虑
|
||||
// */
|
||||
// private Long shopId;
|
||||
/**
|
||||
* 商品分组编号
|
||||
*
|
||||
|
@@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.product.dal.dataobject.group;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
import cn.iocoder.yudao.module.product.dal.dataobject.shop.ShopDO;
|
||||
import cn.iocoder.yudao.module.product.enums.group.ProductGroupStyleEnum;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
@@ -29,12 +28,6 @@ public class ProductGroupDO extends BaseDO {
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
// /**
|
||||
// * 店铺编号
|
||||
// *
|
||||
// * 关联 {@link ShopDO#getId()} TODO 芋艿:多店铺,暂不考虑
|
||||
// */
|
||||
// private Long shopId;
|
||||
/**
|
||||
* 分组名称
|
||||
*/
|
||||
|
@@ -27,12 +27,6 @@ public class ProductPropertyDO extends BaseDO {
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
// /**
|
||||
// * 店铺编号
|
||||
// *
|
||||
// * 关联 {@link ShopDO#getId()} TODO 芋艿:多店铺,暂不考虑
|
||||
// */
|
||||
// private Long shopId;
|
||||
/**
|
||||
* 规格名称
|
||||
*/
|
||||
|
@@ -34,11 +34,5 @@ public class ProductHotSearchDO extends BaseDO {
|
||||
* 内容
|
||||
*/
|
||||
private String content;
|
||||
// /**
|
||||
// * 店铺编号
|
||||
// *
|
||||
// * 关联 {@link ShopDO#getId()} TODO 芋艿:多店铺,暂不考虑
|
||||
// */
|
||||
// private Long shopId;
|
||||
|
||||
}
|
||||
|
@@ -36,13 +36,6 @@ public class ProductSpuDO extends BaseDO {
|
||||
@TableId
|
||||
private Long id;
|
||||
|
||||
// /**
|
||||
// * 店铺编号
|
||||
// *
|
||||
// * 关联 {@link ShopDO#getId()} TODO 芋艿:多店铺,暂不考虑
|
||||
// */
|
||||
// private Long shopId;
|
||||
|
||||
// ========== 基本信息 =========
|
||||
|
||||
/**
|
||||
@@ -215,4 +208,9 @@ public class ProductSpuDO extends BaseDO {
|
||||
|
||||
// TODO poster:商品自定义海报
|
||||
|
||||
// TODO ========== 待定字段:laoji =========
|
||||
// TODO productType 1 - 普通商品 2 - 预售商品;可能和 type 合并不错
|
||||
// TODO productUnit 商品单位
|
||||
// TODO extJson 扩展信息;例如说,预售商品的信息
|
||||
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ public interface ProductSkuMapper extends BaseMapperX<ProductSkuDO> {
|
||||
.eqIfPresent(ProductSkuDO::getSpuId, reqVO.getSpuId())
|
||||
.eqIfPresent(ProductSkuDO::getProperties, reqVO.getProperties())
|
||||
.eqIfPresent(ProductSkuDO::getPrice, reqVO.getPrice())
|
||||
.eqIfPresent(ProductSkuDO::getOriginalPrice, reqVO.getOriginalPrice())
|
||||
// .eqIfPresent(ProductSkuDO::getOriginalPrice, reqVO.getOriginalPrice())
|
||||
// .eqIfPresent(ProductSkuDO::getCostPrice, reqVO.getCostPrice())
|
||||
.eqIfPresent(ProductSkuDO::getBarCode, reqVO.getBarCode())
|
||||
.eqIfPresent(ProductSkuDO::getPicUrl, reqVO.getPicUrl())
|
||||
|
@@ -24,7 +24,7 @@ public interface ProductSpuMapper extends BaseMapperX<ProductSpuDO> {
|
||||
.eqIfPresent(ProductSpuDO::getPicUrls, reqVO.getPicUrls())
|
||||
.eqIfPresent(ProductSpuDO::getSort, reqVO.getSort())
|
||||
// .eqIfPresent(ProductSpuDO::getLikeCount, reqVO.getLikeCount())
|
||||
.eqIfPresent(ProductSpuDO::getPrice, reqVO.getPrice())
|
||||
// .eqIfPresent(ProductSpuDO::getPrice, reqVO.getPrice())
|
||||
// .eqIfPresent(ProductSpuDO::getQuantity, reqVO.getQuantity())
|
||||
.eqIfPresent(ProductSpuDO::getStatus, reqVO.getStatus())
|
||||
.betweenIfPresent(ProductSpuDO::getCreateTime, reqVO.getCreateTime())
|
||||
|
@@ -105,7 +105,7 @@ public class SkuServiceImplTest extends BaseDbUnitTest {
|
||||
o.setSpuId(null);
|
||||
o.setProperties(null);
|
||||
o.setPrice(null);
|
||||
o.setOriginalPrice(null);
|
||||
// o.setOriginalPrice(null);
|
||||
// o.setCostPrice(null);
|
||||
o.setBarCode(null);
|
||||
o.setPicUrl(null);
|
||||
@@ -120,7 +120,7 @@ public class SkuServiceImplTest extends BaseDbUnitTest {
|
||||
// 测试 price 不匹配
|
||||
ProductSkuMapper.insert(cloneIgnoreId(dbSku, o -> o.setPrice(null)));
|
||||
// 测试 originalPrice 不匹配
|
||||
ProductSkuMapper.insert(cloneIgnoreId(dbSku, o -> o.setOriginalPrice(null)));
|
||||
// ProductSkuMapper.insert(cloneIgnoreId(dbSku, o -> o.setOriginalPrice(null)));
|
||||
// 测试 costPrice 不匹配
|
||||
// ProductSkuMapper.insert(cloneIgnoreId(dbSku, o -> o.setCostPrice(null)));
|
||||
// 测试 barCode 不匹配
|
||||
|
@@ -110,7 +110,7 @@ public class ProductSpuServiceImplTest extends BaseDbUnitTest {
|
||||
o.setPicUrls(null);
|
||||
o.setSort(null);
|
||||
// o.setLikeCount(null);
|
||||
o.setPrice(null);
|
||||
// o.setPrice(null);
|
||||
// o.setQuantity(null);
|
||||
o.setStatus(null);
|
||||
o.setCreateTime(null);
|
||||
@@ -131,7 +131,7 @@ public class ProductSpuServiceImplTest extends BaseDbUnitTest {
|
||||
// 测试 likeCount 不匹配
|
||||
// ProductSpuMapper.insert(cloneIgnoreId(dbSpu, o -> o.setLikeCount(null)));
|
||||
// 测试 price 不匹配
|
||||
ProductSpuMapper.insert(cloneIgnoreId(dbSpu, o -> o.setPrice(null)));
|
||||
// ProductSpuMapper.insert(cloneIgnoreId(dbSpu, o -> o.setPrice(null)));
|
||||
// 测试 quantity 不匹配
|
||||
// ProductSpuMapper.insert(cloneIgnoreId(dbSpu, o -> o.setQuantity(null)));
|
||||
// 测试 status 不匹配
|
||||
|
Reference in New Issue
Block a user