From ff7bf241cb6d02230f3de93da2d19a2552d3966a Mon Sep 17 00:00:00 2001 From: dy <2389062315@qq.com> Date: Sun, 27 Jul 2025 15:28:22 +0800 Subject: [PATCH] 1 --- .../property/service/impl/AttendanceGroupServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/AttendanceGroupServiceImpl.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/AttendanceGroupServiceImpl.java index 2f93ad4..da09c1a 100644 --- a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/AttendanceGroupServiceImpl.java +++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/AttendanceGroupServiceImpl.java @@ -140,7 +140,9 @@ public class AttendanceGroupServiceImpl implements IAttendanceGroupService { @Override public Boolean insertByBo(AttendanceGroupBo bo) { AttendanceGroup add = MapstructUtils.convert(bo, AttendanceGroup.class); - add.setStatus(StatusConstant.ENABLE); + if (bo.getStatus() == null) { + add.setStatus(StatusConstant.ENABLE); + } validEntityBeforeSave(add);