添加交班时间
This commit is contained in:
@@ -250,4 +250,18 @@
|
|||||||
select * from tb_shop_user_duty where status = #{status} and shop_id = #{shopId} order by id desc limit 1
|
select * from tb_shop_user_duty where status = #{status} and shop_id = #{shopId} order by id desc limit 1
|
||||||
|
|
||||||
</select>
|
</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>
|
</mapper>
|
||||||
@@ -118,4 +118,17 @@
|
|||||||
ORDER BY
|
ORDER BY
|
||||||
c.sort DESC
|
c.sort DESC
|
||||||
</select>
|
</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>
|
</mapper>
|
||||||
Reference in New Issue
Block a user