sku 新增逻辑删除字段 和 起售值

This commit is contained in:
wangw 2024-07-11 10:12:44 +08:00
parent 6b230eaa1b
commit 61fe12c087
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,8 @@ public class TbProductSku implements Serializable {
private BigDecimal strategyPrice;
private Integer suit;
private Double stockNumber;
private String coverImg;
@ -50,6 +52,7 @@ public class TbProductSku implements Serializable {
private Long updatedAt;
private Integer isPauseSale = 0;
private Integer isDel;
private static final long serialVersionUID = 1L;
}

View File

@ -344,7 +344,7 @@
</update>
<select id="selectByShopIdAndProductIdAndSpec" resultMap="ResultMapWithBLOBs">
select * from tb_product_sku where shop_id=#{shopId} and product_id=#{productId}
select * from tb_product_sku where shop_id=#{shopId} and product_id=#{productId} and is_del=0
<if test="spec != null and spec !=''">
and spec_snap = #{spec}