From 4a9484780719003ff8c50213401d1128ed0b31ba Mon Sep 17 00:00:00 2001 From: liaoxuwei <5789413@qq.com> Date: Mon, 10 Mar 2025 15:16:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AA=97=E5=8F=A3=E7=BB=A9=E6=95=88=E6=B1=87?= =?UTF-8?q?=E6=80=BBbug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/WindowPerformSummaryServiceImpl.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowPerformSummaryServiceImpl.java b/attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowPerformSummaryServiceImpl.java index 18b9f22d..fa4510b2 100644 --- a/attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowPerformSummaryServiceImpl.java +++ b/attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowPerformSummaryServiceImpl.java @@ -3,6 +3,7 @@ import com.mortals.xhx.module.window.model.WindowPerformSummaryQuery; import org.apache.commons.collections4.CollectionUtils; import org.springframework.beans.BeanUtils; +import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; @@ -43,4 +44,19 @@ public class WindowPerformSummaryServiceImpl extends AbstractCRUDServiceImpl<Win } this.save(addList); } + + @Override + protected void validData(WindowPerformSummaryEntity entity, Context context) throws AppException { + BigDecimal sum = BigDecimal.ZERO; + if(entity.getCkjsdf()!=null){ + sum.add(entity.getCkjsdf()); + } + if(entity.getZdrwdf()!=null){ + sum.add(entity.getZdrwdf()); + } + if(entity.getAddTotalScore()!=null){ + sum.add(entity.getAddTotalScore()); + } + entity.setSumScore(sum); + } } \ No newline at end of file -- 2.24.3