商品列表 起售
This commit is contained in:
parent
989bdbad73
commit
53eea41196
|
|
@ -135,6 +135,7 @@ public class TbProduct implements Serializable {
|
|||
private String groupCategoryId;
|
||||
|
||||
private Integer stockNumber;
|
||||
private Integer suit;
|
||||
|
||||
|
||||
public String getImages() {
|
||||
|
|
@ -663,4 +664,12 @@ public class TbProduct implements Serializable {
|
|||
public Integer getStockNumber() {
|
||||
return this.stockNumber;
|
||||
}
|
||||
|
||||
public Integer getSuit() {
|
||||
return suit;
|
||||
}
|
||||
|
||||
public void setSuit(Integer suit) {
|
||||
this.suit = suit;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -920,10 +920,19 @@
|
|||
</update>
|
||||
|
||||
<select id="selectByIdIn" resultMap="BaseResultMap">
|
||||
select *
|
||||
from tb_product
|
||||
where id in (${ids}) and is_show_mall =1 order by sort asc
|
||||
</select>
|
||||
select min( sku.suit ) as suit,tb.*
|
||||
from tb_product tb
|
||||
LEFT JOIN tb_product_sku sku ON tb.id = sku.product_id
|
||||
where tb.id in (${ids}) and is_show_mall =1 and sku.is_del = 0
|
||||
group by tb.id
|
||||
order by tb.sort asc
|
||||
</select>
|
||||
|
||||
<!-- <select id="selectByIdIn" resultMap="BaseResultMap">-->
|
||||
<!-- select *-->
|
||||
<!-- from tb_product-->
|
||||
<!-- where id in (${ids}) and is_show_mall =1 order by sort asc-->
|
||||
<!-- </select>-->
|
||||
<select id="selectById" resultType="com.chaozhanggui.system.cashierservice.entity.TbProduct">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue