免运BUG修复
This commit is contained in:
@@ -979,7 +979,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dao.Commit(db)
|
dao.Commit(db)
|
||||||
if valid["status"] != nil {
|
if valid["status"] != nil || valid["freightDeductionPack"] != nil {
|
||||||
_, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName)
|
_, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package jd
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/jxcallback/scheduler"
|
"git.rosy.net.cn/jx-callback/business/jxcallback/scheduler"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||||
@@ -181,6 +182,12 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
|||||||
FullFreeMoney: int64(v.BeginPrice),
|
FullFreeMoney: int64(v.BeginPrice),
|
||||||
FreeType: jdapi.FreightFreeTypePartBase,
|
FreeType: jdapi.FreightFreeTypePartBase,
|
||||||
FreeMoney: int64(v.DeductFreight),
|
FreeMoney: int64(v.DeductFreight),
|
||||||
|
FreeFreightTimes: []*jdapi.FreeFreightTime{
|
||||||
|
&jdapi.FreeFreightTime{
|
||||||
|
FreeBeginTime: utils.Time2TimeStr(time.Now()),
|
||||||
|
FreeEndTime: utils.Time2TimeStr(time.Now().Add(24 * time.Hour * 365 * 2)),
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user