|
@@ -5,19 +5,20 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
|
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
|
|
<result column="process" jdbcType="INTEGER" property="process" />
|
|
<result column="process" jdbcType="INTEGER" property="process" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
|
|
+ <result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -51,7 +52,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -85,15 +86,15 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
- id, order_no, process, create_time, aid
|
|
|
|
|
|
|
+ id, order_no, process, create_time, aid, remarks
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.TOrderLogExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.TOrderLogExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -112,7 +113,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -123,7 +124,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
delete from t_order_log
|
|
delete from t_order_log
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -132,7 +133,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
delete from t_order_log
|
|
delete from t_order_log
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -143,18 +144,20 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
insert into t_order_log (id, order_no, process,
|
|
insert into t_order_log (id, order_no, process,
|
|
|
- create_time, aid)
|
|
|
|
|
|
|
+ create_time, aid, remarks
|
|
|
|
|
+ )
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{process,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{process,jdbcType=INTEGER},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{aid,jdbcType=VARCHAR})
|
|
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{aid,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}
|
|
|
|
|
+ )
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderLog">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderLog">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
insert into t_order_log
|
|
insert into t_order_log
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -173,6 +176,9 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
aid,
|
|
aid,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="remarks != null">
|
|
|
|
|
+ remarks,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -190,13 +196,16 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
#{aid,jdbcType=VARCHAR},
|
|
#{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="remarks != null">
|
|
|
|
|
+ #{remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.TOrderLogExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.TOrderLogExample" resultType="java.lang.Long">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select count(*) from t_order_log
|
|
select count(*) from t_order_log
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -207,7 +216,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update t_order_log
|
|
update t_order_log
|
|
|
<set>
|
|
<set>
|
|
@@ -226,6 +235,9 @@
|
|
|
<if test="record.aid != null">
|
|
<if test="record.aid != null">
|
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.remarks != null">
|
|
|
|
|
+ remarks = #{record.remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -235,14 +247,15 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update t_order_log
|
|
update t_order_log
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
process = #{record.process,jdbcType=INTEGER},
|
|
process = #{record.process,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
- aid = #{record.aid,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ aid = #{record.aid,jdbcType=VARCHAR},
|
|
|
|
|
+ remarks = #{record.remarks,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
@@ -251,7 +264,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update t_order_log
|
|
update t_order_log
|
|
|
<set>
|
|
<set>
|
|
@@ -267,6 +280,9 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="remarks != null">
|
|
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
@@ -274,16 +290,17 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Apr 12 15:30:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Nov 28 11:28:43 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update t_order_log
|
|
update t_order_log
|
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
process = #{process,jdbcType=INTEGER},
|
|
process = #{process,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- aid = #{aid,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ aid = #{aid,jdbcType=VARCHAR},
|
|
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
|
- <select id="selectOrderByNo" parameterType="string" resultType="com.goafanti.order.bo.TOrderLogBo">
|
|
|
|
|
|
|
+ <select id="selectOrderByNo" parameterType="string" resultType="com.goafanti.order.bo.TOrderLogBo">
|
|
|
select a.id,a.order_no as orderNo,a.aid,a.process,a.create_time as createTime, b.name as adminName
|
|
select a.id,a.order_no as orderNo,a.aid,a.process,a.create_time as createTime, b.name as adminName
|
|
|
from t_order_log a left join admin b on a.aid=b.id
|
|
from t_order_log a left join admin b on a.aid=b.id
|
|
|
where a.order_no= #{orderNo,jdbcType=VARCHAR}
|
|
where a.order_no= #{orderNo,jdbcType=VARCHAR}
|