Browse Source

订单变更BUG修复

anderx 3 years ago
parent
commit
77689c0b85

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

@@ -0,0 +1,17 @@
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TOrderTaskDetails;
+
+public interface TOrderTaskDetailsMapper {
+    int deleteByPrimaryKey(Integer tid);
+
+    int insert(TOrderTaskDetails record);
+
+    int insertSelective(TOrderTaskDetails record);
+
+    TOrderTaskDetails selectByPrimaryKey(Integer tid);
+
+    int updateByPrimaryKeySelective(TOrderTaskDetails record);
+
+    int updateByPrimaryKey(TOrderTaskDetails record);
+}

+ 58 - 0
src/main/java/com/goafanti/common/mapper/TOrderTaskDetailsMapper.xml

@@ -0,0 +1,58 @@
+<?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.TOrderTaskDetailsMapper">
+  <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderTaskDetails">
+    <id column="tid" jdbcType="INTEGER" property="tid" />
+    <result column="change" jdbcType="INTEGER" property="change" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    tid, `change`
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from t_order_task_details
+    where tid = #{tid,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from t_order_task_details
+    where tid = #{tid,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.goafanti.common.model.TOrderTaskDetails">
+    insert into t_order_task_details (tid, `change`)
+    values (#{tid,jdbcType=INTEGER}, #{change,jdbcType=INTEGER})
+  </insert>
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderTaskDetails">
+    insert into t_order_task_details
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="tid != null">
+        tid,
+      </if>
+      <if test="change != null">
+        `change`,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="tid != null">
+        #{tid,jdbcType=INTEGER},
+      </if>
+      <if test="change != null">
+        #{change,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderTaskDetails">
+    update t_order_task_details
+    <set>
+      <if test="change != null">
+        `change` = #{change,jdbcType=INTEGER},
+      </if>
+    </set>
+    where tid = #{tid,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderTaskDetails">
+    update t_order_task_details
+    set `change` = #{change,jdbcType=INTEGER}
+    where tid = #{tid,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 34 - 0
src/main/java/com/goafanti/common/model/TOrderTaskDetails.java

@@ -0,0 +1,34 @@
+package com.goafanti.common.model;
+
+import java.io.Serializable;
+
+/**
+ * t_order_task_details
+ * @author 
+ */
+public class TOrderTaskDetails implements Serializable {
+    private Integer tid;
+
+    /**
+     * 变更新增项目 0否 1是
+     */
+    private Integer change;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getTid() {
+        return tid;
+    }
+
+    public void setTid(Integer tid) {
+        this.tid = tid;
+    }
+
+    public Integer getChange() {
+        return change;
+    }
+
+    public void setChange(Integer change) {
+        this.change = change;
+    }
+}