From 296c852bdd097295b38ba61a0fcd13e63fce33aa Mon Sep 17 00:00:00 2001 From: huk Date: Thu, 25 Sep 2025 16:14:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(system):=20=E6=96=B0=E5=A2=9E=E7=A7=9F?= =?UTF-8?q?=E6=88=B7=E5=88=86=E8=B4=A6=E6=89=BF=E6=8B=85=E6=89=8B=E7=BB=AD?= =?UTF-8?q?=E8=B4=B9=E6=A0=87=E5=BF=97=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/dromara/system/domain/dto/TenantDTO.java | 3 ++- .../org/dromara/system/service/impl/SysTenantServiceImpl.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/dto/TenantDTO.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/dto/TenantDTO.java index d2f7f95dd..28ffc2638 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/dto/TenantDTO.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/domain/dto/TenantDTO.java @@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.annotation.TableLogic; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; -import java.io.Serial; import java.math.BigDecimal; import java.time.LocalDateTime; @@ -155,6 +154,8 @@ public class TenantDTO { @Schema(description = "分配比例模板名称") private String templateName; + @Schema(description = "分账是否承担手续费") + private Boolean bearFeeFlag; @Schema(description = "代理机构名称") private String agencyName; diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysTenantServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysTenantServiceImpl.java index ca5474387..75d420827 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysTenantServiceImpl.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysTenantServiceImpl.java @@ -198,6 +198,7 @@ public class SysTenantServiceImpl implements ISysTenantService { tenant.setBirthday(bo.getBirthday()); tenant.setQualification(bo.getQualification()); tenant.setType(bo.getType()); + tenant.setBearFeeFlag(bo.getBearFeeFlag()); // 插入sys_tenant表 boolean tenantInserted = baseMapper.insert(tenant) > 0; @@ -451,6 +452,7 @@ public class SysTenantServiceImpl implements ISysTenantService { existingTenant.setCounty(bo.getCounty()); existingTenant.setBirthday(bo.getBirthday()); existingTenant.setQualification(bo.getQualification()); + existingTenant.setBearFeeFlag(bo.getBearFeeFlag()); // 4. 查询扩展表现有数据 LambdaQueryWrapper extendQuery = new LambdaQueryWrapper<>();