This commit is contained in:
邹宗楠
2023-04-11 17:40:56 +08:00
parent daea96600a
commit 718f9b29dc
2 changed files with 18 additions and 2 deletions

View File

@@ -44,9 +44,9 @@ func OnAfsOrderMsg(msg *CallbackMsg) (err error) {
func CheckOrderSkuCanRefund(db *dao.DaoDB, afsOrder *Data4AfsOrder) error {
// 获取此订单商品吃否存在售后单
refundFinancial, err := dao.GetStoreAfsOrderSkuList2(db, []string{afsOrder.VendorOrderID})
refundFinancial, err := dao.GetOrderRefundSkuList(db, []string{afsOrder.VendorOrderID})
if err != nil && !strings.Contains(err.Error(), "no row found") {
return err
return nil
}
if len(refundFinancial) == model.NO {