1
This commit is contained in:
@@ -280,15 +280,17 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
||||
}
|
||||
|
||||
if globals.EnableMtwmStoreWrite {
|
||||
globals.SugarLogger.Debugf("poiSave :====== %s", utils.Format4Output(params, false))
|
||||
errList.AddErr(mtapi.PoiSave(storeDetail.VendorStoreID, params))
|
||||
}
|
||||
globals.SugarLogger.Debugf("SyncStatus :====== %s", utils.Format4Output(storeDetail.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreStatus), false))
|
||||
if storeDetail.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreStatus) != 0 {
|
||||
// 平台状态和本地状态相同且都为禁用时不再更新
|
||||
//vendorStatus := bizStatusMtwm2JX(remoteStoreInfo.OpenLevel, remoteStoreInfo.IsOnline)
|
||||
//if vendorStatus == mergedStoreStatus && mergedStoreStatus == model.StoreStatusDisabled {
|
||||
// return nil
|
||||
//}
|
||||
|
||||
globals.SugarLogger.Debugf("UpdateStoreStatus :======= %s", utils.Format4Output(mergedStoreStatus, false))
|
||||
errList.AddErr(p.UpdateStoreStatus(jxcontext.AdminCtx, storeDetail.VendorOrgCode, storeID, storeDetail.VendorStoreID, mergedStoreStatus))
|
||||
}
|
||||
errList.AddErr(p.UpdateStoreOpTime(jxcontext.AdminCtx, storeDetail.VendorOrgCode, storeID, storeDetail.VendorStoreID, storeDetail.GetOpTimeList()))
|
||||
|
||||
Reference in New Issue
Block a user