|
@@ -9,9 +9,10 @@
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="aname" jdbcType="VARCHAR" property="aname" />
|
|
<result column="aname" jdbcType="VARCHAR" property="aname" />
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
|
|
+ <result column="tid" jdbcType="INTEGER" property="tid" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
- id, order_no, aid, `status`, create_time, aname, `type`
|
|
|
|
|
|
|
+ id, order_no, aid, `status`, create_time, aname, `type`, tid
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
select
|
|
select
|
|
@@ -25,11 +26,11 @@
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderExamine" useGeneratedKeys="true">
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderExamine" useGeneratedKeys="true">
|
|
|
insert into t_order_examine (order_no, aid, `status`,
|
|
insert into t_order_examine (order_no, aid, `status`,
|
|
|
- create_time, aname, `type`
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ create_time, aname, `type`,
|
|
|
|
|
+ tid)
|
|
|
values (#{orderNo,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
values (#{orderNo,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{aname,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{aname,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
|
|
|
|
|
+ #{tid,jdbcType=INTEGER})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderExamine" useGeneratedKeys="true">
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderExamine" useGeneratedKeys="true">
|
|
|
insert into t_order_examine
|
|
insert into t_order_examine
|
|
@@ -52,6 +53,9 @@
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
`type`,
|
|
`type`,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="tid != null">
|
|
|
|
|
+ tid,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="orderNo != null">
|
|
<if test="orderNo != null">
|
|
@@ -72,6 +76,9 @@
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
#{type,jdbcType=INTEGER},
|
|
#{type,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="tid != null">
|
|
|
|
|
+ #{tid,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderExamine">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderExamine">
|
|
@@ -95,6 +102,9 @@
|
|
|
<if test="type != null">
|
|
<if test="type != null">
|
|
|
`type` = #{type,jdbcType=INTEGER},
|
|
`type` = #{type,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="tid != null">
|
|
|
|
|
+ tid = #{tid,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
@@ -105,7 +115,8 @@
|
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
`status` = #{status,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
aname = #{aname,jdbcType=VARCHAR},
|
|
aname = #{aname,jdbcType=VARCHAR},
|
|
|
- `type` = #{type,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ `type` = #{type,jdbcType=INTEGER},
|
|
|
|
|
+ tid = #{tid,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
@@ -140,6 +151,12 @@
|
|
|
from t_order_examine where status=0
|
|
from t_order_examine where status=0
|
|
|
and order_no = #{orderNo} and aid= #{aid}
|
|
and order_no = #{orderNo} and aid= #{aid}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+ <select id="selectByTid" resultMap="BaseResultMap">
|
|
|
|
|
+ select
|
|
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
|
|
+ from t_order_examine
|
|
|
|
|
+ where tid = #{tid}
|
|
|
|
|
+ </select>
|
|
|
<delete id="deleteByOrderNo">
|
|
<delete id="deleteByOrderNo">
|
|
|
delete from t_order_examine
|
|
delete from t_order_examine
|
|
|
where order_no = #{orderNo}
|
|
where order_no = #{orderNo}
|