|
|
@@ -66,6 +66,7 @@ import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.math.RoundingMode;
|
|
|
import java.sql.Timestamp;
|
|
|
import java.time.*;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
@@ -1338,9 +1339,9 @@ public class kwfTruckTraceService {
|
|
|
|
|
|
// 装货重量/任务量
|
|
|
String loadWeight = String.format("%s%s / %s%s",
|
|
|
- subtask.getLoadAmount() != null ? subtask.getLoadAmount() : "0",
|
|
|
+ subtask.getLoadAmount() != null ? subtask.getLoadAmount().setScale(2, RoundingMode.HALF_UP).toPlainString() : "0.00",
|
|
|
subtask.getUnit() != null ? subtask.getUnit() : "",
|
|
|
- subtask.getEntrustAmount() != null ? subtask.getEntrustAmount() : "0",
|
|
|
+ subtask.getEntrustAmount() != null ? subtask.getEntrustAmount().setScale(2, RoundingMode.HALF_UP).toPlainString() : "0.00",
|
|
|
subtask.getUnit() != null ? subtask.getUnit() : "");
|
|
|
vo.setLoadWeight(loadWeight);
|
|
|
|