Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop

This commit is contained in:
邹宗楠
2023-01-29 11:16:03 +08:00
2 changed files with 1 additions and 2 deletions

View File

@@ -310,7 +310,6 @@ func (v *VendorSync) SyncStore2(ctx *jxcontext.Context, db *dao.DaoDB, vendorIDs
if err == nil {
resultList = []interface{}{1}
if model.IsSyncStatusNew(storeMap.SyncStatus) {
globals.SugarLogger.Debug("sahsh进入model.IsSyncStatusNew(storeMap.SyncStatus)")
storeMap.VendorStoreID = vendorStoreID
storeMap.SyncStatus = 0
_, err = dao.UpdateEntity(db, storeMap, "VendorStoreID", model.FieldSyncStatus)

View File

@@ -373,7 +373,7 @@ func (P *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
storeInfo, err = dao.GetStoreDetail(db, storeID, model.VendorIDDD, "")
apiObj := getAPI(storeInfo.VendorOrgCode, storeID, storeInfo.VendorStoreID)
//判断是否需要更新
if !IsNeedStoreUpdate(storeInfo, utils.Int2Str(storeID)) {
if !IsNeedStoreUpdate(storeInfo, storeInfo.VendorStoreID) {
return nil
} else {
if storeInfo.OpenTime1 != 0 && storeInfo.CloseTime1 != 0 {