粉丝表添加父节点的信息

This commit is contained in:
2026-06-03 18:00:37 +08:00
parent 7b3879d6b6
commit 4cf8122659
4 changed files with 37 additions and 0 deletions

View File

@@ -52,6 +52,22 @@ public class LbFanManagement implements Serializable {
@Schema(description = "手机号")
private String mobile;
@TableField("p_name")
@Schema(description = "父姓名")
private String pName;
@TableField("pid")
@Schema(description = "父ID")
private Long pid;
@TableField("p_phone")
@Schema(description = "父手机号")
private String pPhone;
@TableField("token")
@Schema(description = "登录 token")
private String token;
@TableField("created_at")
@Schema(description = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

View File

@@ -387,6 +387,15 @@ public class LbFanManagementServiceImpl
if (entity.getMobile() != null) {
entity.setMobile(entity.getMobile().trim());
}
if (entity.getPName() != null) {
entity.setPName(entity.getPName().trim());
}
if (entity.getPPhone() != null) {
entity.setPPhone(entity.getPPhone().trim());
}
if (entity.getToken() != null) {
entity.setToken(entity.getToken().trim());
}
}
private LocalDateTime parseDateTime(String text) {