aa
This commit is contained in:
@@ -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++
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user