From 196bb14112448857a885e32dc4149e308e00b01a Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 15 八月 2024 11:57:15 +0800 Subject: [PATCH] 2024.8.15 各项修正 --- 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