首页上半,

This commit is contained in:
liuyingfang
2024-04-01 17:25:36 +08:00
parent 09e29ca20b
commit fc3d04ca33
16 changed files with 996 additions and 0 deletions

View File

@@ -617,4 +617,31 @@
<select id="selectByPhone" resultMap="BaseResultMap">
select * from tb_shop_info where account=#{phone}
</select>
<select id="selectShopInfo" resultType="com.chaozhanggui.system.cashierservice.entity.vo.HomeVO">
SELECT
shop.shop_name shopName,
product.`name` productName,
product.cover_img image,
product.id productId
FROM
tb_shop_info shop
LEFT JOIN tb_product product ON shop.id = product.shop_id
WHERE
product.is_hot = 1
Limit #{page}, #{size}
</select>
<select id="searchUserDutyDetail" resultType="com.chaozhanggui.system.cashierservice.entity.vo.UserDutyVo">
SELECT
sum( num ),
product_id
FROM
tb_shop_user_duty_detail
WHERE
product_id IN
<foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
GROUP BY
product_id
</select>
</mapper>