This commit is contained in:
邹宗楠
2023-06-01 10:55:02 +08:00
parent 6add9ca9ee
commit f38c6bcc4b
4 changed files with 37 additions and 0 deletions

View File

@@ -1291,6 +1291,15 @@ func GetWayBillByOrderID(db *DaoDB, orderStatus, vendorID, waybillVendorID int,
return wayBillList, err
}
func GetComplaintList(db *DaoDB, orderId string) ([]*model.Waybill, error) {
sql := ` SELECT * FROM waybill WHERE vendor_order_id = ? AND courier_name <> '' AND courier_mobile <> '' `
var data []*model.Waybill
if err := GetRows(db, &data, sql, []interface{}{orderId}); err != nil {
return nil, err
}
return data, nil
}
func GetOrdersSupplement(db *DaoDB, storIDs, vendorIDs, statuss []int, vendorOrderID string, fromTime, toTime time.Time, stype, IsReverse, offset, pageSize int) (orderSupplementFee []*model.OrderSupplementFee, totalCount int, err error) {
sql := `
SELECT SQL_CALC_FOUND_ROWS *