|
@@ -568,7 +568,7 @@ func (this *SellerController) InvoiceListV2(c *gin.Context) {
|
|
|
if req.SellerIds != "" {
|
|
|
sellerIds := strings.Split(req.SellerIds, ",")
|
|
|
amountCond += ` AND (( b.seller_id IN ? AND a.invoice_id <> 0 AND b.invoice_time > "2023-04-01")`
|
|
|
- amountCond += `OR ( d.seller_id IN ? AND a.payment_id <> 0 AND a.invoice_id = 0 AND b.invoice_time > "2023-04-01")) `
|
|
|
+ amountCond += `OR ( d.seller_id IN ? AND a.payment_id <> 0 AND a.invoice_id = 0 AND d.invoice_time > "2023-04-01")) `
|
|
|
amountPars = append(amountPars, sellerIds, sellerIds)
|
|
|
} else {
|
|
|
amountCond += ` AND ((a.invoice_id <> 0 )`
|