1
This commit is contained in:
@@ -259,6 +259,11 @@ func ComplaintRider(ctx *jxcontext.Context, vendorOrderID string, vendorID, wayb
|
|||||||
return err
|
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) {
|
func ComplaintRiderPlatform(ctx *jxcontext.Context, vendorOrderID string, vendorID, waybillVendorID, complaintID int) (err error) {
|
||||||
return fmt.Errorf("只支持三方配送投诉!")
|
return fmt.Errorf("只支持三方配送投诉!")
|
||||||
//handler := partner.GetPurchaseOrderHandlerFromVendorID(vendorID)
|
//handler := partner.GetPurchaseOrderHandlerFromVendorID(vendorID)
|
||||||
|
|||||||
@@ -1291,6 +1291,15 @@ func GetWayBillByOrderID(db *DaoDB, orderStatus, vendorID, waybillVendorID int,
|
|||||||
return wayBillList, err
|
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) {
|
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 := `
|
sql := `
|
||||||
SELECT SQL_CALC_FOUND_ROWS *
|
SELECT SQL_CALC_FOUND_ROWS *
|
||||||
|
|||||||
@@ -1004,6 +1004,20 @@ func (c *OrderController) ComplaintRider() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @Title 获取可投诉骑手列表
|
||||||
|
// @Description 获取可投诉骑手列表
|
||||||
|
// @Param token header string true "认证token"
|
||||||
|
// @Param vendorOrderID formData string true "订单ID"
|
||||||
|
// @Success 200 {object} controllers.CallResult
|
||||||
|
// @Failure 200 {object} controllers.CallResult
|
||||||
|
// @router /ComplaintRiderList [get]
|
||||||
|
func (c *OrderController) ComplaintRiderList() {
|
||||||
|
c.callComplaintRiderList(func(params *tOrderComplaintRiderListParams) (retVal interface{}, errCode string, err error) {
|
||||||
|
retVal, err = orderman.GetComplaintList(params.VendorOrderID)
|
||||||
|
return retVal, "", err
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// @Title 查询门店订单扣款记录
|
// @Title 查询门店订单扣款记录
|
||||||
// @Description 查询门店订单扣款记录
|
// @Description 查询门店订单扣款记录
|
||||||
// @Param token header string true "认证token"
|
// @Param token header string true "认证token"
|
||||||
|
|||||||
@@ -1223,6 +1223,15 @@ func init() {
|
|||||||
Filters: nil,
|
Filters: nil,
|
||||||
Params: nil})
|
Params: nil})
|
||||||
|
|
||||||
|
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"],
|
||||||
|
web.ControllerComments{
|
||||||
|
Method: "ComplaintRiderList",
|
||||||
|
Router: `/ComplaintRiderList`,
|
||||||
|
AllowHTTPMethods: []string{"get"},
|
||||||
|
MethodParams: param.Make(),
|
||||||
|
Filters: nil,
|
||||||
|
Params: nil})
|
||||||
|
|
||||||
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"],
|
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:OrderController"],
|
||||||
web.ControllerComments{
|
web.ControllerComments{
|
||||||
Method: "ConfirmReceiveGoods",
|
Method: "ConfirmReceiveGoods",
|
||||||
|
|||||||
Reference in New Issue
Block a user