Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop
This commit is contained in:
@@ -310,7 +310,6 @@ func (v *VendorSync) SyncStore2(ctx *jxcontext.Context, db *dao.DaoDB, vendorIDs
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
resultList = []interface{}{1}
|
resultList = []interface{}{1}
|
||||||
if model.IsSyncStatusNew(storeMap.SyncStatus) {
|
if model.IsSyncStatusNew(storeMap.SyncStatus) {
|
||||||
globals.SugarLogger.Debug("sahsh进入model.IsSyncStatusNew(storeMap.SyncStatus)")
|
|
||||||
storeMap.VendorStoreID = vendorStoreID
|
storeMap.VendorStoreID = vendorStoreID
|
||||||
storeMap.SyncStatus = 0
|
storeMap.SyncStatus = 0
|
||||||
_, err = dao.UpdateEntity(db, storeMap, "VendorStoreID", model.FieldSyncStatus)
|
_, 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, "")
|
storeInfo, err = dao.GetStoreDetail(db, storeID, model.VendorIDDD, "")
|
||||||
apiObj := getAPI(storeInfo.VendorOrgCode, storeID, storeInfo.VendorStoreID)
|
apiObj := getAPI(storeInfo.VendorOrgCode, storeID, storeInfo.VendorStoreID)
|
||||||
//判断是否需要更新
|
//判断是否需要更新
|
||||||
if !IsNeedStoreUpdate(storeInfo, utils.Int2Str(storeID)) {
|
if !IsNeedStoreUpdate(storeInfo, storeInfo.VendorStoreID) {
|
||||||
return nil
|
return nil
|
||||||
} else {
|
} else {
|
||||||
if storeInfo.OpenTime1 != 0 && storeInfo.CloseTime1 != 0 {
|
if storeInfo.OpenTime1 != 0 && storeInfo.CloseTime1 != 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user