添加交班时间

This commit is contained in:
牛叉闪闪
2024-07-22 14:12:12 +08:00
parent 6445724a64
commit 1ea0eea537
2 changed files with 27 additions and 0 deletions

View File

@@ -250,4 +250,18 @@
select * from tb_shop_user_duty where status = #{status} and shop_id = #{shopId} order by id desc limit 1
</select>
<select id="selectByDutyId" resultType="com.chaozhanggui.system.cashierservice.entity.po.ProductInfo">
SELECT
d.product_name,
sum( d.num ) AS num,
sum( d.amount ) AS amount
FROM
tb_shop_user_duty_detail d
WHERE
d.duty_id = #{dutyId}
GROUP BY
d.product_id;
</select>
</mapper>

View File

@@ -118,4 +118,17 @@
ORDER BY
c.sort DESC
</select>
<select id="selectProductByDutyId" resultType="com.chaozhanggui.system.cashierservice.entity.po.ProductInfoPO">
SELECT
d.product_id,
d.product_name,
d.sku_name,
d.num,
d.amount
FROM
tb_shop_user_duty_detail d
WHERE
d.duty_id = #{dutyId}
</select>
</mapper>