From 752e00503f672ddfe2066afb6c235721a3a912b5 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 19 十一月 2024 10:25:55 +0800 Subject: [PATCH] 2024.11.19 各项修正 --- src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/AuthSceneRestVo.kt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/AuthSceneRestVo.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/AuthSceneRestVo.kt index 2687db7..d365008 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/AuthSceneRestVo.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/AuthSceneRestVo.kt @@ -7,6 +7,7 @@ import cn.flightfeather.supervision.infrastructure.utils.UUIDGenerator import org.springframework.beans.BeanUtils import java.util.* +import kotlin.math.round /** * 椁愰ギ搴楄璇佷俊鎭� @@ -58,7 +59,8 @@ // rbOutfallLocation = rbOutfallLocation // rbOutfallNum = rbOutfallNum BeanUtils.copyProperties(this@AuthSceneRestVo, this) - rbCookingOilCapacity = this@AuthSceneRestVo.rbCookingOilCapacity?.div(12).toString() + val o = this@AuthSceneRestVo.rbCookingOilCapacity?.toDouble()?.div(12) + rbCookingOilCapacity = round(o?.times(100) ?: .0).div(100).toString() } } -- Gitblit v1.9.3