exprefix索引,order修改
This commit is contained in:
@@ -1344,10 +1344,10 @@ func UpdateSkuNamesExPrefix(ctx *jxcontext.Context, nameIDs []int, exPrefix, fro
|
||||
db = dao.GetDB()
|
||||
)
|
||||
if fromTime != "" {
|
||||
fromTimeP = utils.Str2Time(fromTime)
|
||||
fromTimeP = utils.Time2Date(utils.Str2Time(fromTime))
|
||||
}
|
||||
if toTime != "" {
|
||||
toTimeP = utils.Str2Time(toTime)
|
||||
toTimeP = utils.Time2Date(utils.Str2Time(toTime))
|
||||
}
|
||||
if toTimeP.Before(fromTimeP) {
|
||||
return "", fmt.Errorf("结束时间不可以小于开始时间!开始时间:[%v],结束时间:[%v]", fromTimeP, toTimeP)
|
||||
|
||||
@@ -2532,8 +2532,15 @@ func GetVendorStoreSkuPrice(ctx *jxcontext.Context, vendorIDs []int, skuID int,
|
||||
storeDetail *dao.StoreDetail
|
||||
inStoreSku = &partner.StoreSkuInfo{}
|
||||
)
|
||||
|
||||
skuNameList, err := dao.GetSkus(dao.GetDB(), []int{skuID}, nil, nil, nil)
|
||||
storeMap := &model.StoreMap{
|
||||
VendorID: vendorID,
|
||||
Status: model.SkuStatusNormal,
|
||||
VendorStoreID: vendorStoreID,
|
||||
}
|
||||
db := dao.GetDB()
|
||||
dao.GetEntity(db, storeMap, "StoreID")
|
||||
fmt.Println(storeMap.StoreID)
|
||||
skuNameList, err := dao.GetSkus(db, []int{skuID}, nil, nil, nil)
|
||||
if err != nil {
|
||||
return retVal, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user