Browse Source

动作分析,速度保留5位小数、

sd
zhizhi wu 4 years ago
parent
commit
8ab8bfd5e8
  1. 2
      ht/src/main/java/com/ccsens/ht/service/QuestionService.java
  2. 4
      ht/src/main/resources/application.yml

2
ht/src/main/java/com/ccsens/ht/service/QuestionService.java

@ -888,7 +888,7 @@ public class QuestionService implements IQuestionService {
//速度
double speed = 0;
if(length != 0 && duration != 0){
speed = BigDecimal.valueOf(length / duration).setScale(2, RoundingMode.HALF_UP).doubleValue();
speed = BigDecimal.valueOf(length / duration).setScale(5, RoundingMode.HALF_UP).doubleValue();
log.info("length:{}, duration:{}, speed:{},计算:{}", length, duration, speed, length/duration);
}
lineParameter.setSpeed(speed);

4
ht/src/main/resources/application.yml

@ -1,5 +1,5 @@
spring:
profiles:
active: test
include: common, util-test
active: prod
include: common, util-prod

Loading…
Cancel
Save