From 3eaf4fbd95b876fc31c7bc6b4d8263f6599f598e Mon Sep 17 00:00:00 2001 From: hshansha Date: Thu, 3 Jul 2025 16:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=84=E5=88=86=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E5=88=86=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/kaohe/domain/KhVoteItems.java | 43 +++++++++++++------ .../mapper/kaohe/KhVoteItemsMapper.xml | 23 ++++++---- 2 files changed, 43 insertions(+), 23 deletions(-) diff --git a/ruoyi-kaohe/src/main/java/com/ruoyi/kaohe/domain/KhVoteItems.java b/ruoyi-kaohe/src/main/java/com/ruoyi/kaohe/domain/KhVoteItems.java index c859f6f..86e5ef7 100644 --- a/ruoyi-kaohe/src/main/java/com/ruoyi/kaohe/domain/KhVoteItems.java +++ b/ruoyi-kaohe/src/main/java/com/ruoyi/kaohe/domain/KhVoteItems.java @@ -7,9 +7,9 @@ import com.ruoyi.common.core.domain.BaseEntity; /** * 投票项对象 kh_vote_items - * + * * @author hs - * @date 2025-06-24 + * @date 2025-07-03 */ public class KhVoteItems extends BaseEntity { @@ -22,36 +22,51 @@ public class KhVoteItems extends BaseEntity @Excel(name = "投票选项名称") private String vitemName; - public void setId(Long id) + /** 分数 */ + @Excel(name = "分数") + private Long score; + + public void setId(Long id) { this.id = id; } - public Long getId() + public Long getId() { return id; } - public void setVitemName(String vitemName) + public void setVitemName(String vitemName) { this.vitemName = vitemName; } - public String getVitemName() + public String getVitemName() { return vitemName; } + public void setScore(Long score) + { + this.score = score; + } + + public Long getScore() + { + return score; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("id", getId()) - .append("vitemName", getVitemName()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .append("remark", getRemark()) - .toString(); + .append("id", getId()) + .append("vitemName", getVitemName()) + .append("score", getScore()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); } } diff --git a/ruoyi-kaohe/src/main/resources/mapper/kaohe/KhVoteItemsMapper.xml b/ruoyi-kaohe/src/main/resources/mapper/kaohe/KhVoteItemsMapper.xml index 18c54d2..589d4c3 100644 --- a/ruoyi-kaohe/src/main/resources/mapper/kaohe/KhVoteItemsMapper.xml +++ b/ruoyi-kaohe/src/main/resources/mapper/kaohe/KhVoteItemsMapper.xml @@ -1,12 +1,13 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + + @@ -15,16 +16,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select id, vitem_name, create_by, create_time, update_by, update_time, remark from kh_vote_items + select id, vitem_name, score, create_by, create_time, update_by, update_time, remark from kh_vote_items - +