This commit is contained in:
苏尹岚
2021-03-10 15:46:52 +08:00
parent 176d39b7ed
commit 154a938979
2 changed files with 7 additions and 7 deletions

View File

@@ -481,10 +481,10 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID int, f
for _, v := range storeSkus {
if v.Status == model.StoreSkuBindStatusNormal && v.Stock > 0 {
skuCount++
}
if priceRefer, err := dao.GetPriceReferPrice(db, 0, v.SkuID, utils.Time2Date(time.Now().AddDate(0, 0, -1))); err == nil && priceRefer != nil {
if v.UnitPrice > priceRefer.MidUnitPrice {
highSkuCount++
if priceRefer, err := dao.GetPriceReferPrice(db, 0, v.SkuID, utils.Time2Date(time.Now().AddDate(0, 0, -1))); err == nil && priceRefer != nil {
if v.UnitPrice > priceRefer.MidUnitPrice {
highSkuCount++
}
}
}
}
@@ -501,7 +501,7 @@ func GetStoreManageState(ctx *jxcontext.Context, storeIDs []int, vendorID int, f
nullOrderCount++
}
if waybills, err2 := dao.GetWayBillByOrderID(db, 0, vendorID, 0, v.VendorOrderID); err2 == nil {
if len(waybills) > 0 {
if len(waybills) == 0 {
refuseOrderCount++
}
}