作者 mdx

修改CUser,Bo,Vo

... ... @@ -7,6 +7,8 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.client.enumeration.Identity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
... ... @@ -34,6 +36,7 @@ public class CUser implements Serializable {
* 用户id
*/
@TableId(value = "user_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long userId;
/**
... ...
... ... @@ -3,6 +3,8 @@ package com.example.client.domain.bo;
import cn.bronet.admin.common.core.domain.BaseEntity;
import cn.bronet.admin.common.core.validate.AddGroup;
import cn.bronet.admin.common.core.validate.EditGroup;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
... ... @@ -36,6 +38,7 @@ public class CActivityBo extends BaseEntity {
* 发布动态人的id
*/
@ApiModelProperty("发布动态人的id")
@JsonSerialize(using = ToStringSerializer.class)
private Long userId;
/**
... ...
... ... @@ -4,6 +4,8 @@ import cn.bronet.admin.common.core.domain.BaseEntity;
import cn.bronet.admin.common.core.validate.AddGroup;
import cn.bronet.admin.common.core.validate.EditGroup;
import com.example.client.enumeration.Identity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
... ... @@ -29,6 +31,7 @@ public class CUserBo extends BaseEntity {
* 用户id
*/
@ApiModelProperty("用户id")
@JsonSerialize(using = ToStringSerializer.class)
private Long userId;
/**
... ... @@ -80,6 +83,7 @@ public class CUserBo extends BaseEntity {
* 当前孩子关系
*/
@ApiModelProperty("当前孩子关系")
@JsonSerialize(using = ToStringSerializer.class)
private Long atPresent;
/**
... ... @@ -118,7 +122,10 @@ public class CUserBo extends BaseEntity {
*/
@ApiModelProperty(value = "排序的方向", example = "asc,desc")
private String isAsc;
@ApiModelProperty(value = "绑定学校", example = "asc,desc")
@JsonSerialize(using = ToStringSerializer.class)
private Long schoolCurrent;
}
... ...
... ... @@ -82,6 +82,7 @@ public class CUserVo {
*/
@Excel(name = "当前孩子关系")
@ApiModelProperty("当前孩子关系")
@JsonSerialize(using = ToStringSerializer.class)
private Long atPresent;
/**
... ...