RefreshHistoryOrdersEarningPrice中不正确返回retVal给ParallelTask的问题修复
This commit is contained in:
@@ -718,13 +718,13 @@ func (c *OrderManager) RefreshHistoryOrdersEarningPrice(ctx *jxcontext.Context,
|
||||
}()
|
||||
for _, value := range order.Skus {
|
||||
if _, err = dao.UpdateEntity(db, value, "EarningPrice", "StoreSubID"); err != nil {
|
||||
return "", err
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
jxutils.RefreshOrderSkuRelated(order)
|
||||
num, err := dao.UpdateEntity(db, order, "EarningPrice")
|
||||
if err != nil {
|
||||
return "", err
|
||||
return nil, err
|
||||
}
|
||||
dao.Commit(db)
|
||||
retVal = num
|
||||
|
||||
Reference in New Issue
Block a user