修复开发票的bug,当该发票只有一个订单时,无法计算出最大订单时间与最小订单时间

This commit is contained in:
wenhui 2022-03-18 15:28:29 +08:00
parent 2b19bdf9b0
commit 8719cc5910

View File

@ -179,7 +179,7 @@
FROM `xhpc_invoice_map_history_order`
WHERE invoice_id = #{invoiceId}
AND del_flag IS NULL
UNION
UNION ALL
SELECT Max(create_time)
FROM `xhpc_invoice_map_history_order`
WHERE invoice_id = #{invoiceId}