From f399f0fa4ed7a991403a8747329ffe42bd34d207 Mon Sep 17 00:00:00 2001 From: lc <15038716315@163.com> Date: Tue, 9 Apr 2024 10:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=99=84=E4=BB=B6url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/abuwx/domain/WbProject.java | 5 +++++ .../src/main/resources/mapper/abuwx/WbProjectMapper.xml | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/domain/WbProject.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/domain/WbProject.java index f027cd0..cb7790e 100644 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/domain/WbProject.java +++ b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/domain/WbProject.java @@ -1,5 +1,6 @@ package com.ruoyi.abuwx.domain; +import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; @@ -11,6 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity; * @author ruoyi * @date 2024-04-08 */ +@Data public class WbProject extends BaseEntity { private static final long serialVersionUID = 1L; @@ -26,6 +28,9 @@ public class WbProject extends BaseEntity @Excel(name = "项目概况") private String projectOverview; + /** 附件地址 */ + private String fileUrl; + public void setId(Long id) { this.id = id; diff --git a/ruoyi-abuwx/src/main/resources/mapper/abuwx/WbProjectMapper.xml b/ruoyi-abuwx/src/main/resources/mapper/abuwx/WbProjectMapper.xml index 758ff76..781c500 100644 --- a/ruoyi-abuwx/src/main/resources/mapper/abuwx/WbProjectMapper.xml +++ b/ruoyi-abuwx/src/main/resources/mapper/abuwx/WbProjectMapper.xml @@ -8,10 +8,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select id, project_name, project_overview from wb_project + select id, project_name, project_overview, file_url from wb_project @@ -32,10 +34,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" project_name, project_overview, + file_url, #{projectName}, #{projectOverview}, + #{fileUrl}, @@ -44,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" project_name = #{projectName}, project_overview = #{projectOverview}, + file_url = #{fileUrl}, where id = #{id}