From 046bd8c032544894bffbba7b7db76fe0acdd76d0 Mon Sep 17 00:00:00 2001 From: WangHao <43278047@qq.com> Date: Sat, 5 Sep 2020 13:29:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=A6=E7=AD=BETAG=E8=A1=A8=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/bookmark/domain/SqTag.java | 89 +++++++++++++++++-- .../resources/mapper/bookmark/SqTagMapper.xml | 24 ++++- 2 files changed, 102 insertions(+), 11 deletions(-) diff --git a/ruoyi-yunbookmark/src/main/java/com/ruoyi/bookmark/domain/SqTag.java b/ruoyi-yunbookmark/src/main/java/com/ruoyi/bookmark/domain/SqTag.java index 669c0a558..10df01c13 100644 --- a/ruoyi-yunbookmark/src/main/java/com/ruoyi/bookmark/domain/SqTag.java +++ b/ruoyi-yunbookmark/src/main/java/com/ruoyi/bookmark/domain/SqTag.java @@ -1,17 +1,20 @@ package com.ruoyi.bookmark.domain; +import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; +import java.util.Date; + /** * 书签_标签对象 sq_tag - * + * * @author ruoyi - * @date 2020-09-04 + * @date 2020-09-05 */ -public class SqTag extends BaseEntity +public class SqTag { private static final long serialVersionUID = 1L; @@ -26,33 +29,97 @@ public class SqTag extends BaseEntity @Excel(name = "引用数量") private Integer icount; - public void setId(Long id) + /** 谁增加的该标签 */ + @Excel(name = "谁增加的该标签") + private Long userId; + + /** S系统标签,P书签标签,B便签书签 */ + @Excel(name = "S系统标签,P书签标签,B便签书签") + private String tagType; + + /** 链接 */ + @Excel(name = "链接") + private String url; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + + public void setId(Long id) { this.id = id; } - public Long getId() + public Long getId() { return id; } - public void setName(String name) + public void setName(String name) { this.name = name; } - public String getName() + public String getName() { return name; } - public void setIcount(Integer icount) + public void setIcount(Integer icount) { this.icount = icount; } - public Integer getIcount() + public Integer getIcount() { return icount; } + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getUserId() + { + return userId; + } + public void setTagType(String tagType) + { + this.tagType = tagType; + } + + public String getTagType() + { + return tagType; + } + public void setUrl(String url) + { + this.url = url; + } + + public String getUrl() + { + return url; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } @Override public String toString() { @@ -60,6 +127,10 @@ public class SqTag extends BaseEntity .append("id", getId()) .append("name", getName()) .append("icount", getIcount()) + .append("userId", getUserId()) + .append("tagType", getTagType()) + .append("url", getUrl()) + .append("status", getStatus()) .append("createTime", getCreateTime()) .toString(); } diff --git a/ruoyi-yunbookmark/src/main/resources/mapper/bookmark/SqTagMapper.xml b/ruoyi-yunbookmark/src/main/resources/mapper/bookmark/SqTagMapper.xml index 9eac7db43..fb768f3b7 100644 --- a/ruoyi-yunbookmark/src/main/resources/mapper/bookmark/SqTagMapper.xml +++ b/ruoyi-yunbookmark/src/main/resources/mapper/bookmark/SqTagMapper.xml @@ -8,18 +8,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + - select id, name, icount, create_time from sq_tag + select id, name, icount, user_Id, tag_type, url, status, create_time from sq_tag @@ -33,11 +41,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" name, icount, + user_Id, + tag_type, + url, + status, create_time, #{name}, #{icount}, + #{userId}, + #{tagType}, + #{url}, + #{status}, #{createTime}, @@ -47,6 +63,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" name = #{name}, icount = #{icount}, + user_Id = #{userId}, + tag_type = #{tagType}, + url = #{url}, + status = #{status}, create_time = #{createTime}, where id = #{id}