项目管理添加附件url
This commit is contained in:
		
							parent
							
								
									c2a2545227
								
							
						
					
					
						commit
						f399f0fa4e
					
				| @ -1,5 +1,6 @@ | |||||||
| package com.ruoyi.abuwx.domain; | package com.ruoyi.abuwx.domain; | ||||||
| 
 | 
 | ||||||
|  | import lombok.Data; | ||||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | import org.apache.commons.lang3.builder.ToStringBuilder; | ||||||
| import org.apache.commons.lang3.builder.ToStringStyle; | import org.apache.commons.lang3.builder.ToStringStyle; | ||||||
| import com.ruoyi.common.annotation.Excel; | import com.ruoyi.common.annotation.Excel; | ||||||
| @ -11,6 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity; | |||||||
|  * @author ruoyi |  * @author ruoyi | ||||||
|  * @date 2024-04-08 |  * @date 2024-04-08 | ||||||
|  */ |  */ | ||||||
|  | @Data | ||||||
| public class WbProject extends BaseEntity | public class WbProject extends BaseEntity | ||||||
| { | { | ||||||
|     private static final long serialVersionUID = 1L; |     private static final long serialVersionUID = 1L; | ||||||
| @ -26,6 +28,9 @@ public class WbProject extends BaseEntity | |||||||
|     @Excel(name = "项目概况") |     @Excel(name = "项目概况") | ||||||
|     private String projectOverview; |     private String projectOverview; | ||||||
| 
 | 
 | ||||||
|  |     /** 附件地址 */ | ||||||
|  |     private String fileUrl; | ||||||
|  | 
 | ||||||
|     public void setId(Long id) |     public void setId(Long id) | ||||||
|     { |     { | ||||||
|         this.id = id; |         this.id = id; | ||||||
|  | |||||||
| @ -8,10 +8,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||||
|         <result property="id"    column="id"    /> |         <result property="id"    column="id"    /> | ||||||
|         <result property="projectName"    column="project_name"    /> |         <result property="projectName"    column="project_name"    /> | ||||||
|         <result property="projectOverview"    column="project_overview"    /> |         <result property="projectOverview"    column="project_overview"    /> | ||||||
|  |         <result property="fileUrl"    column="file_url"    /> | ||||||
|     </resultMap> |     </resultMap> | ||||||
| 
 | 
 | ||||||
|     <sql id="selectWbProjectVo"> |     <sql id="selectWbProjectVo"> | ||||||
|         select id, project_name, project_overview from wb_project |         select id, project_name, project_overview, file_url from wb_project | ||||||
|     </sql> |     </sql> | ||||||
| 
 | 
 | ||||||
|     <select id="selectWbProjectList" parameterType="WbProject" resultMap="WbProjectResult"> |     <select id="selectWbProjectList" parameterType="WbProject" resultMap="WbProjectResult"> | ||||||
| @ -19,6 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||||
|         <where> |         <where> | ||||||
|             <if test="projectName != null  and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if> |             <if test="projectName != null  and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if> | ||||||
|             <if test="projectOverview != null  and projectOverview != ''"> and project_overview = #{projectOverview}</if> |             <if test="projectOverview != null  and projectOverview != ''"> and project_overview = #{projectOverview}</if> | ||||||
|  |             <if test="fileUrl != null  and fileUrl != ''"> and file_url = #{fileUrl}</if> | ||||||
|         </where> |         </where> | ||||||
|     </select> |     </select> | ||||||
| 
 | 
 | ||||||
| @ -32,10 +34,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> |         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||||
|             <if test="projectName != null">project_name,</if> |             <if test="projectName != null">project_name,</if> | ||||||
|             <if test="projectOverview != null">project_overview,</if> |             <if test="projectOverview != null">project_overview,</if> | ||||||
|  |             <if test="fileUrl != null">file_url,</if> | ||||||
|          </trim> |          </trim> | ||||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> |         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||||
|             <if test="projectName != null">#{projectName},</if> |             <if test="projectName != null">#{projectName},</if> | ||||||
|             <if test="projectOverview != null">#{projectOverview},</if> |             <if test="projectOverview != null">#{projectOverview},</if> | ||||||
|  |             <if test="fileUrl != null">#{fileUrl},</if> | ||||||
|          </trim> |          </trim> | ||||||
|     </insert> |     </insert> | ||||||
| 
 | 
 | ||||||
| @ -44,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||||
|         <trim prefix="SET" suffixOverrides=","> |         <trim prefix="SET" suffixOverrides=","> | ||||||
|             <if test="projectName != null">project_name = #{projectName},</if> |             <if test="projectName != null">project_name = #{projectName},</if> | ||||||
|             <if test="projectOverview != null">project_overview = #{projectOverview},</if> |             <if test="projectOverview != null">project_overview = #{projectOverview},</if> | ||||||
|  |             <if test="fileUrl != null">file_url = #{fileUrl},</if> | ||||||
|         </trim> |         </trim> | ||||||
|         where id = #{id} |         where id = #{id} | ||||||
|     </update> |     </update> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user