1
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user