Browse Source

项目暂停列表开发

anderx 3 years ago
parent
commit
540a41aaae

+ 17 - 0
src/main/java/com/goafanti/common/dao/TaskSoptLogMapper.java

@@ -0,0 +1,17 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TaskSoptLog;
+
+public interface TaskSoptLogMapper {
+    int deleteByPrimaryKey(Long id);
+
+    int insert(TaskSoptLog record);
+
+    int insertSelective(TaskSoptLog record);
+
+    TaskSoptLog selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(TaskSoptLog record);
+
+    int updateByPrimaryKey(TaskSoptLog record);
+}

+ 98 - 0
src/main/java/com/goafanti/common/mapper/TaskSoptLogMapper.xml

@@ -0,0 +1,98 @@
+<?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.goafanti.common.dao.TaskSoptLogMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.TaskSoptLog">
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="task_sopt_id" jdbcType="INTEGER" property="taskSoptId" />
+    <result column="status" jdbcType="INTEGER" property="status" />
+    <result column="reason" jdbcType="VARCHAR" property="reason" />
+    <result column="create_by" jdbcType="VARCHAR" property="createBy" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    id, task_sopt_id, `status`, reason, create_by, create_time
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from task_sopt_log
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    delete from task_sopt_log
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TaskSoptLog" useGeneratedKeys="true">
+    insert into task_sopt_log (task_sopt_id, `status`, reason, 
+      create_by, create_time)
+    values (#{taskSoptId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{reason,jdbcType=VARCHAR}, 
+      #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TaskSoptLog" useGeneratedKeys="true">
+    insert into task_sopt_log
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="taskSoptId != null">
+        task_sopt_id,
+      </if>
+      <if test="status != null">
+        `status`,
+      </if>
+      <if test="reason != null">
+        reason,
+      </if>
+      <if test="createBy != null">
+        create_by,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="taskSoptId != null">
+        #{taskSoptId,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        #{status,jdbcType=INTEGER},
+      </if>
+      <if test="reason != null">
+        #{reason,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        #{createBy,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TaskSoptLog">
+    update task_sopt_log
+    <set>
+      <if test="taskSoptId != null">
+        task_sopt_id = #{taskSoptId,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        `status` = #{status,jdbcType=INTEGER},
+      </if>
+      <if test="reason != null">
+        reason = #{reason,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        create_by = #{createBy,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.goafanti.common.model.TaskSoptLog">
+    update task_sopt_log
+    set task_sopt_id = #{taskSoptId,jdbcType=INTEGER},
+      `status` = #{status,jdbcType=INTEGER},
+      reason = #{reason,jdbcType=VARCHAR},
+      create_by = #{createBy,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>

+ 87 - 0
src/main/java/com/goafanti/common/model/TaskSoptLog.java

@@ -0,0 +1,87 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * task_sopt_log
+ * @author
+ */
+public class TaskSoptLog implements Serializable {
+    private Long id;
+
+    /**
+     * 任务暂停编号
+     */
+    private Long taskSoptId;
+
+    /**
+     * 审核状态 0=发起,1=通过,2=拒绝
+     */
+    private Integer status;
+
+    /**
+     * 原因
+     */
+    private String reason;
+
+    /**
+     * 创建者
+     */
+    private String createBy;
+
+    /**
+     * 创建时间
+     */
+    private Date createTime;
+
+    private static final long serialVersionUID = 1L;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getTaskSoptId() {
+        return taskSoptId;
+    }
+
+    public void setTaskSoptId(Long taskSoptId) {
+        this.taskSoptId = taskSoptId;
+    }
+
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    public String getReason() {
+        return reason;
+    }
+
+    public void setReason(String reason) {
+        this.reason = reason;
+    }
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+}