From 8ab8bfd5e85cf257d9ef70a697235f775849ef98 Mon Sep 17 00:00:00 2001 From: zhizhi wu <2377881365@qq.com> Date: Fri, 31 Dec 2021 17:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E4=BD=9C=E5=88=86=E6=9E=90=EF=BC=8C?= =?UTF-8?q?=E9=80=9F=E5=BA=A6=E4=BF=9D=E7=95=995=E4=BD=8D=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=E3=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ht/src/main/java/com/ccsens/ht/service/QuestionService.java | 2 +- ht/src/main/resources/application.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ht/src/main/java/com/ccsens/ht/service/QuestionService.java b/ht/src/main/java/com/ccsens/ht/service/QuestionService.java index d910c695..f556da65 100644 --- a/ht/src/main/java/com/ccsens/ht/service/QuestionService.java +++ b/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); diff --git a/ht/src/main/resources/application.yml b/ht/src/main/resources/application.yml index f59084b0..b9b264a7 100644 --- a/ht/src/main/resources/application.yml +++ b/ht/src/main/resources/application.yml @@ -1,5 +1,5 @@ spring: profiles: - active: test - include: common, util-test + active: prod + include: common, util-prod