Merge remote-tracking branch 'origin/dev' into zs

This commit is contained in:
SongZhang 2024-07-12 14:31:07 +08:00
commit 95c22ee51c
2 changed files with 22 additions and 4 deletions

View File

@ -135,6 +135,7 @@ public class TbProduct implements Serializable {
private String groupCategoryId; private String groupCategoryId;
private Integer stockNumber; private Integer stockNumber;
private Integer suit;
public String getImages() { public String getImages() {
@ -663,4 +664,12 @@ public class TbProduct implements Serializable {
public Integer getStockNumber() { public Integer getStockNumber() {
return this.stockNumber; return this.stockNumber;
} }
public Integer getSuit() {
return suit;
}
public void setSuit(Integer suit) {
this.suit = suit;
}
} }

View File

@ -920,10 +920,19 @@
</update> </update>
<select id="selectByIdIn" resultMap="BaseResultMap"> <select id="selectByIdIn" resultMap="BaseResultMap">
select * select min( sku.suit ) as suit,tb.*
from tb_product from tb_product tb
where id in (${ids}) and is_show_mall =1 order by sort asc LEFT JOIN tb_product_sku sku ON tb.id = sku.product_id
</select> 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 id="selectById" resultType="com.chaozhanggui.system.cashierservice.entity.TbProduct">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />