anderx vor 2 Jahren
Ursprung
Commit
4e1977b275

+ 116 - 0
ruoyi-system/src/main/java/com/ruoyi/project/domain/ProjectStaffRecord.java

@@ -0,0 +1,116 @@
+package com.ruoyi.project.domain;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * project_staff_record
+ * @author 
+ */
+public class ProjectStaffRecord implements Serializable {
+    /**
+     * 项目编号
+     */
+    private Long id;
+
+    /**
+     * 项目编号
+     */
+    private Long pid;
+
+    /**
+     * 成员编号
+     */
+    private Long aid;
+
+    /**
+     * 成员名称
+     */
+    private String name;
+
+    /**
+     * 项目状态
+     */
+    private Integer projectStatus;
+
+    /**
+     * 内容
+     */
+    private String content;
+
+    /**
+     * 附件地址
+     */
+    private String annexUrl;
+
+    /**
+     * 创建时间
+     */
+    private Date createTime;
+
+    private static final long serialVersionUID = 1L;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getPid() {
+        return pid;
+    }
+
+    public void setPid(Long pid) {
+        this.pid = pid;
+    }
+
+    public Long getAid() {
+        return aid;
+    }
+
+    public void setAid(Long aid) {
+        this.aid = aid;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public Integer getProjectStatus() {
+        return projectStatus;
+    }
+
+    public void setProjectStatus(Integer projectStatus) {
+        this.projectStatus = projectStatus;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public String getAnnexUrl() {
+        return annexUrl;
+    }
+
+    public void setAnnexUrl(String annexUrl) {
+        this.annexUrl = annexUrl;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}

+ 17 - 0
ruoyi-system/src/main/java/com/ruoyi/project/mapper/ProjectStaffRecordMapper.java

@@ -0,0 +1,17 @@
+package com.ruoyi.project.mapper;
+
+import com.ruoyi.project.domain.ProjectStaffRecord;
+
+public interface ProjectStaffRecordMapper {
+    int deleteByPrimaryKey(Long id);
+
+    int insert(ProjectStaffRecord record);
+
+    int insertSelective(ProjectStaffRecord record);
+
+    ProjectStaffRecord selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(ProjectStaffRecord record);
+
+    int updateByPrimaryKey(ProjectStaffRecord record);
+}

+ 122 - 0
ruoyi-system/src/main/resources/mapper/project/ProjectStaffRecordMapper.xml

@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.project.mapper.ProjectStaffRecordMapper">
+  <resultMap id="BaseResultMap" type="com.ruoyi.project.domain.ProjectStaffRecord">
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="pid" jdbcType="BIGINT" property="pid" />
+    <result column="aid" jdbcType="BIGINT" property="aid" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="project_status" jdbcType="INTEGER" property="projectStatus" />
+    <result column="content" jdbcType="VARCHAR" property="content" />
+    <result column="annex_url" jdbcType="VARCHAR" property="annexUrl" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    id, pid, aid, `name`, project_status, content, annex_url, create_time
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from project_staff_record
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    delete from project_staff_record
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.project.domain.ProjectStaffRecord" useGeneratedKeys="true">
+    insert into project_staff_record (pid, aid, `name`, 
+      project_status, content, annex_url, 
+      create_time)
+    values (#{pid,jdbcType=BIGINT}, #{aid,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, 
+      #{projectStatus,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{annexUrl,jdbcType=VARCHAR}, 
+      #{createTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.project.domain.ProjectStaffRecord" useGeneratedKeys="true">
+    insert into project_staff_record
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="pid != null">
+        pid,
+      </if>
+      <if test="aid != null">
+        aid,
+      </if>
+      <if test="name != null">
+        `name`,
+      </if>
+      <if test="projectStatus != null">
+        project_status,
+      </if>
+      <if test="content != null">
+        content,
+      </if>
+      <if test="annexUrl != null">
+        annex_url,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="pid != null">
+        #{pid,jdbcType=BIGINT},
+      </if>
+      <if test="aid != null">
+        #{aid,jdbcType=BIGINT},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="projectStatus != null">
+        #{projectStatus,jdbcType=INTEGER},
+      </if>
+      <if test="content != null">
+        #{content,jdbcType=VARCHAR},
+      </if>
+      <if test="annexUrl != null">
+        #{annexUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.project.domain.ProjectStaffRecord">
+    update project_staff_record
+    <set>
+      <if test="pid != null">
+        pid = #{pid,jdbcType=BIGINT},
+      </if>
+      <if test="aid != null">
+        aid = #{aid,jdbcType=BIGINT},
+      </if>
+      <if test="name != null">
+        `name` = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="projectStatus != null">
+        project_status = #{projectStatus,jdbcType=INTEGER},
+      </if>
+      <if test="content != null">
+        content = #{content,jdbcType=VARCHAR},
+      </if>
+      <if test="annexUrl != null">
+        annex_url = #{annexUrl,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.ruoyi.project.domain.ProjectStaffRecord">
+    update project_staff_record
+    set pid = #{pid,jdbcType=BIGINT},
+      aid = #{aid,jdbcType=BIGINT},
+      `name` = #{name,jdbcType=VARCHAR},
+      project_status = #{projectStatus,jdbcType=INTEGER},
+      content = #{content,jdbcType=VARCHAR},
+      annex_url = #{annexUrl,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>