anderx пре 2 година
родитељ
комит
fe5a8b6328

+ 103 - 0
ruoyi-system/src/main/java/com/ruoyi/project/domain/ProjectStaffRecordLog.java

@@ -0,0 +1,103 @@
+package com.ruoyi.project.domain;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * project_staff_record_log
+ * @author 
+ */
+public class ProjectStaffRecordLog implements Serializable {
+    /**
+     * 日志项目编号
+     */
+    private Long id;
+
+    /**
+     * 项目打卡编号
+     */
+    private Long psrId;
+
+    /**
+     * 成员编号
+     */
+    private Long aid;
+
+    /**
+     * 成员名称
+     */
+    private String name;
+
+    /**
+     * 流程状态
+     */
+    private Integer processStatus;
+
+    /**
+     * 内容
+     */
+    private String content;
+
+    /**
+     * 创建时间
+     */
+    private Date createTime;
+
+    private static final long serialVersionUID = 1L;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getPsrId() {
+        return psrId;
+    }
+
+    public void setPsrId(Long psrId) {
+        this.psrId = psrId;
+    }
+
+    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 getProcessStatus() {
+        return processStatus;
+    }
+
+    public void setProcessStatus(Integer processStatus) {
+        this.processStatus = processStatus;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}

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

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

+ 111 - 0
ruoyi-system/src/main/resources/mapper/project/ProjectStaffRecordLogMapper.xml

@@ -0,0 +1,111 @@
+<?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.ProjectStaffRecordLogMapper">
+  <resultMap id="BaseResultMap" type="com.ruoyi.project.domain.ProjectStaffRecordLog">
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="psr_id" jdbcType="BIGINT" property="psrId" />
+    <result column="aid" jdbcType="BIGINT" property="aid" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="process_status" jdbcType="INTEGER" property="processStatus" />
+    <result column="content" jdbcType="VARCHAR" property="content" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    id, psr_id, aid, `name`, process_status, content, create_time
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from project_staff_record_log
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    delete from project_staff_record_log
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.project.domain.ProjectStaffRecordLog" useGeneratedKeys="true">
+    insert into project_staff_record_log (psr_id, aid, `name`, 
+      process_status, content, create_time
+      )
+    values (#{psrId,jdbcType=BIGINT}, #{aid,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, 
+      #{processStatus,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.ruoyi.project.domain.ProjectStaffRecordLog" useGeneratedKeys="true">
+    insert into project_staff_record_log
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="psrId != null">
+        psr_id,
+      </if>
+      <if test="aid != null">
+        aid,
+      </if>
+      <if test="name != null">
+        `name`,
+      </if>
+      <if test="processStatus != null">
+        process_status,
+      </if>
+      <if test="content != null">
+        content,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="psrId != null">
+        #{psrId,jdbcType=BIGINT},
+      </if>
+      <if test="aid != null">
+        #{aid,jdbcType=BIGINT},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="processStatus != null">
+        #{processStatus,jdbcType=INTEGER},
+      </if>
+      <if test="content != null">
+        #{content,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.project.domain.ProjectStaffRecordLog">
+    update project_staff_record_log
+    <set>
+      <if test="psrId != null">
+        psr_id = #{psrId,jdbcType=BIGINT},
+      </if>
+      <if test="aid != null">
+        aid = #{aid,jdbcType=BIGINT},
+      </if>
+      <if test="name != null">
+        `name` = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="processStatus != null">
+        process_status = #{processStatus,jdbcType=INTEGER},
+      </if>
+      <if test="content != null">
+        content = #{content,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.ProjectStaffRecordLog">
+    update project_staff_record_log
+    set psr_id = #{psrId,jdbcType=BIGINT},
+      aid = #{aid,jdbcType=BIGINT},
+      `name` = #{name,jdbcType=VARCHAR},
+      process_status = #{processStatus,jdbcType=INTEGER},
+      content = #{content,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>