查找退费账单
This commit is contained in:
@@ -1517,3 +1517,20 @@ func InsertBrandCategories(db *DaoDB, userName string, brandID int) (err error)
|
||||
// return courierStoreList, nil
|
||||
// }
|
||||
//}
|
||||
|
||||
type RefundOrder struct {
|
||||
OrderId string
|
||||
}
|
||||
|
||||
func GetBrandBill2(db *DaoDB, brandID int, vendorOrderID string, billType, feeType int, vendorWaybillOrderID string, createAt string) (result []*RefundOrder, err error) {
|
||||
sql := `
|
||||
select a.vendor_order_id order_id from brand_bill a
|
||||
inner JOIN order_status os on a.vendor_order_id = os.ref_vendor_order_id and os.status = 115 and os.vendor_id in (101,102,103)
|
||||
WHERE a.brand_id in (131,132,137,139) and a.bill_type <> 1 and os.remark <> "没有及时抢单" and os.status <> -100 GROUP BY a.vendor_order_id
|
||||
`
|
||||
var data []*RefundOrder
|
||||
if err := GetRows(GetDB(), &data, sql, nil); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return data, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user