From c30bf257e682643e3c721b7329597b64a11581af Mon Sep 17 00:00:00 2001 From: ZY <zc857179121@qq.com> Date: 星期三, 21 八月 2024 10:46:04 +0800 Subject: [PATCH] 档查询出来有多条数据时,加上数量条件,进行匹配,如果数量也匹配不上,就默认返回第一个 --- src/main/java/com/zy/system/entity/UserLogin.java | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/system/entity/UserLogin.java b/src/main/java/com/zy/system/entity/UserLogin.java index 52d5a5a..9c11c8d 100644 --- a/src/main/java/com/zy/system/entity/UserLogin.java +++ b/src/main/java/com/zy/system/entity/UserLogin.java @@ -7,6 +7,7 @@ import com.zy.system.service.UserService; import com.core.common.Cools; import com.core.common.SpringUtils; +import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.text.SimpleDateFormat; @@ -23,6 +24,12 @@ @TableId(value = "id", type = IdType.AUTO) private Long id; + /** + * 鎵�灞為」鐩� + */ + @ApiModelProperty(value= "鎵�灞為」鐩�") + @TableField("host_id") + private Long hostId; /** * 鍛樺伐 */ @@ -48,6 +55,13 @@ this.id = id; } + public Long getHostId() { + return hostId; + } + + public void setHostId(Long hostId) { + this.hostId = hostId; + } public Long getUserId() { return userId; } -- Gitblit v1.9.1