1
This commit is contained in:
@@ -1466,6 +1466,13 @@ func GetOrdersForJxPay(db *DaoDB, finishTimeBegin, finishTimeEnd time.Time) (goo
|
||||
return goods, err
|
||||
}
|
||||
|
||||
// UpdateWaybillActualFee 修改运单实际支付价格
|
||||
func UpdateWaybillActualFee(db *DaoDB, vendorWaybillId, vendorOrderId string, actualFee, desiredFee int64) error {
|
||||
sql := ` UPDATE waybill SET actual_fee = ? ,desired_fee = ? WHERE vendor_order_id = ? AND vendor_waybill_id = ?`
|
||||
_, err := ExecuteSQL(db, sql, []interface{}{actualFee, desiredFee, vendorOrderId, vendorWaybillId}...)
|
||||
return err
|
||||
}
|
||||
|
||||
func GetWaybills(db *DaoDB, vendorOrderID string, vendors []int64) (waybills []*model.Waybill, err error) {
|
||||
sql := ` SELECT *
|
||||
FROM waybill
|
||||
|
||||
Reference in New Issue
Block a user