项目管理添加附件url
This commit is contained in:
parent
c2a2545227
commit
f399f0fa4e
|
@ -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;
|
||||
|
|
|
@ -8,10 +8,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="id" column="id" />
|
||||
<result property="projectName" column="project_name" />
|
||||
<result property="projectOverview" column="project_overview" />
|
||||
<result property="fileUrl" column="file_url" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWbProjectVo">
|
||||
select id, project_name, project_overview from wb_project
|
||||
select id, project_name, project_overview, file_url from wb_project
|
||||
</sql>
|
||||
|
||||
<select id="selectWbProjectList" parameterType="WbProject" resultMap="WbProjectResult">
|
||||
|
@ -19,6 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<where>
|
||||
<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="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
@ -32,10 +34,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="projectName != null">project_name,</if>
|
||||
<if test="projectOverview != null">project_overview,</if>
|
||||
<if test="fileUrl != null">file_url,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="projectName != null">#{projectName},</if>
|
||||
<if test="projectOverview != null">#{projectOverview},</if>
|
||||
<if test="fileUrl != null">#{fileUrl},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
@ -44,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="projectName != null">project_name = #{projectName},</if>
|
||||
<if test="projectOverview != null">project_overview = #{projectOverview},</if>
|
||||
<if test="fileUrl != null">file_url = #{fileUrl},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
|
Loading…
Reference in New Issue