优惠券+异常全局处理
This commit is contained in:
@@ -552,4 +552,8 @@
|
||||
<select id="selectByPayOrderNo" resultMap="BaseResultMap">
|
||||
select * from tb_order_info where pay_order_no=#{payOrderNo}
|
||||
</select>
|
||||
<select id="selectByTradeDay" resultType="com.chaozhanggui.system.cashierservice.entity.TbOrderInfo">
|
||||
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>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user