用户信息空串不保存

This commit is contained in:
张松 2025-11-06 18:00:36 +08:00
parent 92732dcd0b
commit c0e115da80
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.processor.util.StrUtil;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboReference;
@ -84,6 +85,9 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
shopUser.setSourceShopId(shopId);
shopUser.setUserId(userId);
shopUser.setId(null);
if (StrUtil.isBlank(shopUser.getBirthDay())) {
shopUser.setBirthDay(null);
}
save(shopUser);
}
if (shopUser.getMemberLevelId() != null) {