首页上半,
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user