我得免单订单状态

This commit is contained in:
wangguocheng
2024-05-17 10:02:39 +08:00
parent 31d3a65c00
commit 6a2efde318
5 changed files with 29 additions and 1 deletions

View File

@@ -560,4 +560,9 @@
select tio1.* from tb_order_info tio1 where not EXISTS (SELECT 1 FROM `tb_order_info` toi2 where toi2.order_type = 'return' and toi2.source = tio1.id)
and tio1.trade_day = #{day} and status = 'closed' and tio1.pay_amount >= #{minPrice} and tio1.pay_amount < #{maxPrice} and tio1.order_type = 'miniapp'
</select>
<select id="selectWinnerByUserId" resultType="com.chaozhanggui.system.cashierservice.entity.TbOrderInfo">
select toi.*,two.order_no as winnnerNo,tui.nick_name as userName from tb_order_info toi left join tb_wining_user two on two.order_no = toi.order_no
left join tb_user_info tui on tui.id = toi.user_id
where toi.user_id = #{userId} and
</select>
</mapper>