From 280001d476b92bf2d14052518e6f69bee9dee43d Mon Sep 17 00:00:00 2001
From: zmk <496160012@qq.com>
Date: 星期四, 18 七月 2024 16:13:15 +0800
Subject: [PATCH] 提交代码
---
javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/HoleController.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/HoleController.java b/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/HoleController.java
index 8878b61..fc7ad29 100644
--- a/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/HoleController.java
+++ b/javaweb-plus/javaweb-cms/src/main/java/com/javaweb/geo/controller/HoleController.java
@@ -71,7 +71,10 @@
public AjaxResult holeProcess(Hole hole) {
Hole hole2 = holeMapper.selectProjectProcess(hole.getProjectId());
- Double process = Arith.div(hole2.getFootageCpl(), hole2.getFootage(), 2);
+ Double process =0.0d;
+ if(ObjectUtil.isNotEmpty(hole2.getFootageCpl()) && ObjectUtil.isNotEmpty(hole2.getFootage())) {
+ process = Arith.div(hole2.getFootageCpl(), hole2.getFootage(), 2);
+ }
return AjaxResult.success(process);
}
--
Gitblit v1.9.1