aa
This commit is contained in:
@@ -180,6 +180,10 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
|||||||
}
|
}
|
||||||
err = getAPI("2").UpdateBasic(param)
|
err = getAPI("2").UpdateBasic(param)
|
||||||
}
|
}
|
||||||
|
if store.SyncStatus&model.SyncFlagStoreStatus != 0 {
|
||||||
|
mergedStoreStatus := jxutils.MergeStoreStatus(store.Status, store.VendorStatus)
|
||||||
|
p.UpdateStoreStatus(jxcontext.AdminCtx, store.VendorOrgCode, storeID, store.VendorStoreID, mergedStoreStatus)
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -362,10 +366,6 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
_, err = dao.UpdateEntity(db, storeMap, "VendorStoreID")
|
_, err = dao.UpdateEntity(db, storeMap, "VendorStoreID")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if storeDetail.SyncStatus&model.SyncFlagStoreStatus != 0 {
|
|
||||||
mergedStoreStatus := jxutils.MergeStoreStatus(storeDetail.Status, storeDetail.VendorStatus)
|
|
||||||
p.UpdateStoreStatus(jxcontext.AdminCtx, storeDetail.VendorOrgCode, storeID, storeDetail.VendorStoreID, mergedStoreStatus)
|
|
||||||
}
|
|
||||||
return vendorStoreID, err
|
return vendorStoreID, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user