1
This commit is contained in:
@@ -259,6 +259,11 @@ func ComplaintRider(ctx *jxcontext.Context, vendorOrderID string, vendorID, wayb
|
||||
return err
|
||||
}
|
||||
|
||||
// GetComplaintList 获取投诉列表
|
||||
func GetComplaintList(orderId string) ([]*model.Waybill, error) {
|
||||
return dao.GetComplaintList(dao.GetDB(), orderId)
|
||||
}
|
||||
|
||||
func ComplaintRiderPlatform(ctx *jxcontext.Context, vendorOrderID string, vendorID, waybillVendorID, complaintID int) (err error) {
|
||||
return fmt.Errorf("只支持三方配送投诉!")
|
||||
//handler := partner.GetPurchaseOrderHandlerFromVendorID(vendorID)
|
||||
|
||||
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user