修复开发票的bug,当该发票只有一个订单时,无法计算出最大订单时间与最小订单时间
This commit is contained in:
parent
2b19bdf9b0
commit
8719cc5910
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user