Merge branch 'feat-hjj-BundleOrderInvoice#A225' into dev
This commit is contained in:
commit
14d0465e6d
@ -103,7 +103,11 @@ func GetInvoiceList(req *bundle.GetInvoiceListReq) (data []*model.InvoiceInfo, t
|
||||
Joins("LEFT JOIN `micro-account`.real_name AS rn ON user.real_name_id = rn.id and rn.deleted_at = 0")
|
||||
|
||||
if req.IsExpress != 0 {
|
||||
query = query.Where("invoice.paper_invocie_status = ?", req.IsExpress)
|
||||
if req.IsExpress == 2 && req.IsApplyInvocice == 1 {
|
||||
query = query.Where("invoice.paper_invocie_status = ?", req.IsApplyInvocice)
|
||||
} else {
|
||||
query = query.Where("invoice.paper_invocie_status = ?", req.IsExpress)
|
||||
}
|
||||
} else {
|
||||
if req.IsApplyInvocice == 2 {
|
||||
query = query.Where("invoice.paper_invocie_status >= ?", req.IsApplyInvocice)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user