- AddStoreCourierMap中GetMissingDadaStores的err被覆盖的BUG
This commit is contained in:
@@ -810,8 +810,8 @@ func AddStoreCourierMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID
|
||||
if err = dao.CreateEntity(db, storeCourierMap); err == nil {
|
||||
dao.Commit(db)
|
||||
if vendorID == model.VendorIDDada {
|
||||
storeList, err := dao.GetMissingDadaStores(db, storeID, false)
|
||||
if err == nil && len(storeList) > 0 {
|
||||
storeList, err2 := dao.GetMissingDadaStores(db, storeID, false)
|
||||
if err = err2; err == nil && len(storeList) > 0 {
|
||||
storeList[0].DadaStoreID = storeCourierMap.VendorStoreID
|
||||
err = updateOrCreateDadaStore(storeList[0])
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user