前端拿不到Long类型成员变量,用@JsonSerialize(using = ToStringSerializer.class)序列化一下

avatar
作者
筋斗云
阅读量:0
@EqualsAndHashCode(callSuper = true) @Data @TableName("la_school_business") @Schema(description = "商务负责人表") public class SchoolBusiness extends BaseEntity {      private static final long serialVersionUID = -7124481085999629236L;     /**      * 商务负责人ID      */     @Schema(description = "商务负责人ID")     private Long id;     /**      * 总后台用户ID 关联总后台用户表      */     @Schema(description = "总后台用户ID 关联总后台用户表")     @JsonSerialize(using = ToStringSerializer.class)     private Long userId;     /**      * 合作学校ID      */     @Schema(description = "合作学校ID")     @JsonSerialize(using = ToStringSerializer.class)     private Long cooperationSchoolId;     /**      * 删除标识 0. 合作中  1.已停止      */     @Schema(description = "删除标识 0. 合作中  1.已停止")     private Integer isCooperation;  	/** 	 * 操作人 	 */ 	@Schema(description = "商务手机号") 	private String telephone;   	@Schema(description = "商务姓名") 	private String businessUserName;  } 

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!