From 26f5dd8ef80e5671cda8fc0e6c0d0298c4e678ff Mon Sep 17 00:00:00 2001 From: shikeying <shikeying@163.com> Date: 星期二, 27 九月 2022 16:31:33 +0800 Subject: [PATCH] 视频相似度分析3 --- recommend-model-pojo/src/main/java/com/iplatform/model/po/Rc_video_user.java | 32 +++++++++++++++++++++++++++----- 1 files changed, 27 insertions(+), 5 deletions(-) diff --git a/recommend-model-pojo/src/main/java/com/iplatform/model/po/Rc_video_user.java b/recommend-model-pojo/src/main/java/com/iplatform/model/po/Rc_video_user.java index f49c32f..ecb778e 100644 --- a/recommend-model-pojo/src/main/java/com/iplatform/model/po/Rc_video_user.java +++ b/recommend-model-pojo/src/main/java/com/iplatform/model/po/Rc_video_user.java @@ -20,11 +20,15 @@ public static final Rc_video_user ROW_MAPPER = new Rc_video_user(); // 涓婚敭 + private Long id = null; + @JsonIgnore + protected boolean isset_id = false; + + // 灞炴�у垪琛� private Long user_id = null; @JsonIgnore protected boolean isset_user_id = false; - // 灞炴�у垪琛� private String video_id = null; @JsonIgnore protected boolean isset_video_id = false; @@ -46,8 +50,8 @@ /** * 鏍规嵁涓婚敭鏋勯�犲璞� */ - public Rc_video_user(Long user_id) { - this.setUser_id(user_id); + public Rc_video_user(Long id) { + this.setId(id); } /** @@ -55,7 +59,21 @@ */ @Override public void setPkValue(Object value) { - this.setUser_id((Long) value); + this.setId((Long) value); + } + + public Long getId() { + return this.id; + } + + public void setId(Long id) { + this.id = id; + this.isset_id = true; + } + + @JsonIgnore + public boolean isEmptyId() { + return this.id == null; } public Long getUser_id() { @@ -120,6 +138,7 @@ @Override public String toString() { return new StringBuilder() + .append("id=").append(this.id) .append("user_id=").append(this.user_id) .append("video_id=").append(this.video_id) .append("score=").append(this.score) @@ -137,10 +156,13 @@ //rc_video_user.setDatabaseName_(this.getDatabaseName_()); // 涓婚敭 + if (this.isset_id) { + rc_video_user.setId(this.getId()); + } + // 鏅�氬睘鎬� if (this.isset_user_id) { rc_video_user.setUser_id(this.getUser_id()); } - // 鏅�氬睘鎬� if (this.isset_video_id) { rc_video_user.setVideo_id(this.getVideo_id()); } -- Gitblit v1.9.1