From a9862e81851bbe037edc6bb1c7f562c1e55c0d7f Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期一, 19 九月 2022 18:44:18 +0800 Subject: [PATCH] 增加日志和redis --- src/main/java/com/boying/service/CostRuleService.java | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/boying/service/CostRuleService.java b/src/main/java/com/boying/service/CostRuleService.java index 21bb28a..352d51e 100644 --- a/src/main/java/com/boying/service/CostRuleService.java +++ b/src/main/java/com/boying/service/CostRuleService.java @@ -274,10 +274,16 @@ public double money(long l,Double cost,Integer maxCost){ l=l/1000/60; int time = 0; - if(((l*1.0)/60)>(l/60)){//鍒ゆ柇鍋滆溅鏃堕棿鏄惁瑕佸姞1 - time = Long.valueOf(l / 60 + 1).intValue(); +// if(((l*1.0)/60)>(l/60)){//鍒ゆ柇鍋滆溅鏃堕棿鏄惁瑕佸姞1 +// time = Long.valueOf(l / 60 + 1).intValue(); +// }else{ +// time = Long.valueOf(l / 60).intValue(); +// } + + if(((l*1.0)/30)>(l/30)){//鍒ゆ柇鍋滆溅鏃堕棿鏄惁瑕佸姞1 + time = Long.valueOf(l / 30 + 1).intValue(); }else{ - time = Long.valueOf(l / 60).intValue(); + time = Long.valueOf(l / 30).intValue(); } if(maxCost!=null){ if(time*cost>maxCost){//澶т簬灏侀《浠锋牸 -- Gitblit v1.9.1