This commit is contained in:
邹宗楠
2023-01-29 11:15:59 +08:00
parent b33c248c76
commit 431202e0b2
2 changed files with 18 additions and 4 deletions

View File

@@ -159,6 +159,9 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
} else {
storeParams.OutSystemID = store.VendorStoreID
}
if storeParams.OutSystemID == "" {
storeParams.OutSystemID = utils.Int2Str(store.ID)
}
if store.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreName) != 0 {
if store.VendorStoreName != "" {
storeParams.StationName = store.VendorStoreName
@@ -205,7 +208,6 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
modifyCloseStatus = true
_, storeParams.CloseStatus = JxStoreStatus2JdStatus(jxutils.MergeStoreStatus(store.Status, store.JdStoreStatus)) // 1storeParams.CloseStatus
}
fillOpTimeParams(storeParams, store.GetOpTimeList())
errList := errlist.New()
if globals.EnableJdStoreWrite {