From 1496a2640408f000f31e01ebe90b5ef97237f5a1 Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期二, 19 八月 2025 19:42:46 +0800 Subject: [PATCH] 修改婚姻bug && 管理员修改用户信息时 同步修改用户姓名、性别、婚姻状态 --- zhang-content/src/main/java/com/ruoyi/service/impl/ZAutobiographyServiceImpl.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZAutobiographyServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZAutobiographyServiceImpl.java index 0717c18..aa19eb7 100644 --- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZAutobiographyServiceImpl.java +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZAutobiographyServiceImpl.java @@ -3,6 +3,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.utils.StringUtils; import com.ruoyi.domain.ZAutobiography; import com.ruoyi.mapper.ZAutobiographyMapper; import com.ruoyi.service.ZAutobiographyService; @@ -29,7 +30,7 @@ lqw.eq(ZAutobiography::getUserId,userId); List<ZAutobiography> result = list(lqw); result.forEach(zAutobiography -> { - if (zAutobiography.getAgeBegin() == null){ + if (StringUtils.isEmpty(zAutobiography.getAgeBegin())){ throw new RuntimeException("鏈夋暟鎹殑璧峰骞撮緞娌℃湁濉�"); } }); -- Gitblit v1.9.1