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}