|
@@ -5,7 +5,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="tid" jdbcType="INTEGER" property="tid" />
|
|
<result column="tid" jdbcType="INTEGER" property="tid" />
|
|
@@ -17,14 +17,15 @@
|
|
|
<result column="commodity_quantity" jdbcType="INTEGER" property="commodityQuantity" />
|
|
<result column="commodity_quantity" jdbcType="INTEGER" property="commodityQuantity" />
|
|
|
<result column="commodity_price" jdbcType="DECIMAL" property="commodityPrice" />
|
|
<result column="commodity_price" jdbcType="DECIMAL" property="commodityPrice" />
|
|
|
<result column="task_comment" jdbcType="VARCHAR" property="taskComment" />
|
|
<result column="task_comment" jdbcType="VARCHAR" property="taskComment" />
|
|
|
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
<result column="type" jdbcType="INTEGER" property="type" />
|
|
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
+ <result column="split_status" jdbcType="INTEGER" property="splitStatus" />
|
|
|
</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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -58,7 +59,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -92,16 +93,16 @@
|
|
|
<!--
|
|
<!--
|
|
|
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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
id, tid, cid, order_no, main, commodity_id, commodity_name, commodity_quantity, commodity_price,
|
|
id, tid, cid, order_no, main, commodity_id, commodity_name, commodity_quantity, commodity_price,
|
|
|
- task_comment, create_time, type
|
|
|
|
|
|
|
+ task_comment, type, create_time, split_status
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.TChangeTaskExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.TChangeTaskExample" 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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -120,7 +121,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -131,7 +132,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
delete from t_change_task
|
|
delete from t_change_task
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -140,7 +141,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
delete from t_change_task
|
|
delete from t_change_task
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -151,24 +152,24 @@
|
|
|
<!--
|
|
<!--
|
|
|
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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
insert into t_change_task (id, tid, cid,
|
|
insert into t_change_task (id, tid, cid,
|
|
|
order_no, main, commodity_id,
|
|
order_no, main, commodity_id,
|
|
|
commodity_name, commodity_quantity, commodity_price,
|
|
commodity_name, commodity_quantity, commodity_price,
|
|
|
- task_comment, create_time, type
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ task_comment, type, create_time,
|
|
|
|
|
+ split_status)
|
|
|
values (#{id,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER}, #{cid,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER}, #{cid,jdbcType=INTEGER},
|
|
|
#{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, #{commodityId,jdbcType=VARCHAR},
|
|
#{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, #{commodityId,jdbcType=VARCHAR},
|
|
|
#{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER}, #{commodityPrice,jdbcType=DECIMAL},
|
|
#{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER}, #{commodityPrice,jdbcType=DECIMAL},
|
|
|
- #{taskComment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{type,jdbcType=INTEGER}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{taskComment,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ #{splitStatus,jdbcType=INTEGER})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TChangeTask">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TChangeTask">
|
|
|
<!--
|
|
<!--
|
|
|
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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
insert into t_change_task
|
|
insert into t_change_task
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -202,11 +203,14 @@
|
|
|
<if test="taskComment != null">
|
|
<if test="taskComment != null">
|
|
|
task_comment,
|
|
task_comment,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
|
+ type,
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
create_time,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
|
|
- type,
|
|
|
|
|
|
|
+ <if test="splitStatus != null">
|
|
|
|
|
+ split_status,
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -240,11 +244,14 @@
|
|
|
<if test="taskComment != null">
|
|
<if test="taskComment != null">
|
|
|
#{taskComment,jdbcType=VARCHAR},
|
|
#{taskComment,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
|
+ #{type,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
|
|
- #{type,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="splitStatus != null">
|
|
|
|
|
+ #{splitStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -252,7 +259,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
select count(*) from t_change_task
|
|
select count(*) from t_change_task
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -263,7 +270,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
update t_change_task
|
|
update t_change_task
|
|
|
<set>
|
|
<set>
|
|
@@ -297,11 +304,14 @@
|
|
|
<if test="record.taskComment != null">
|
|
<if test="record.taskComment != null">
|
|
|
task_comment = #{record.taskComment,jdbcType=VARCHAR},
|
|
task_comment = #{record.taskComment,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="record.type != null">
|
|
|
|
|
+ type = #{record.type,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="record.createTime != null">
|
|
<if test="record.createTime != null">
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.type != null">
|
|
|
|
|
- type = #{record.type,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="record.splitStatus != null">
|
|
|
|
|
+ split_status = #{record.splitStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
</set>
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -312,7 +322,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
update t_change_task
|
|
update t_change_task
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
@@ -325,8 +335,9 @@
|
|
|
commodity_quantity = #{record.commodityQuantity,jdbcType=INTEGER},
|
|
commodity_quantity = #{record.commodityQuantity,jdbcType=INTEGER},
|
|
|
commodity_price = #{record.commodityPrice,jdbcType=DECIMAL},
|
|
commodity_price = #{record.commodityPrice,jdbcType=DECIMAL},
|
|
|
task_comment = #{record.taskComment,jdbcType=VARCHAR},
|
|
task_comment = #{record.taskComment,jdbcType=VARCHAR},
|
|
|
|
|
+ type = #{record.type,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
- type = #{record.type,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ split_status = #{record.splitStatus,jdbcType=INTEGER}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
</if>
|
|
@@ -335,7 +346,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
update t_change_task
|
|
update t_change_task
|
|
|
<set>
|
|
<set>
|
|
@@ -366,11 +377,14 @@
|
|
|
<if test="taskComment != null">
|
|
<if test="taskComment != null">
|
|
|
task_comment = #{taskComment,jdbcType=VARCHAR},
|
|
task_comment = #{taskComment,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="type != null">
|
|
|
|
|
+ type = #{type,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="splitStatus != null">
|
|
|
|
|
+ split_status = #{splitStatus,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -379,7 +393,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 Mon Jan 13 09:27:33 CST 2020.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 17 17:10:55 CST 2020.
|
|
|
-->
|
|
-->
|
|
|
update t_change_task
|
|
update t_change_task
|
|
|
set tid = #{tid,jdbcType=INTEGER},
|
|
set tid = #{tid,jdbcType=INTEGER},
|
|
@@ -391,19 +405,20 @@
|
|
|
commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
|
|
commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
|
|
|
commodity_price = #{commodityPrice,jdbcType=DECIMAL},
|
|
commodity_price = #{commodityPrice,jdbcType=DECIMAL},
|
|
|
task_comment = #{taskComment,jdbcType=VARCHAR},
|
|
task_comment = #{taskComment,jdbcType=VARCHAR},
|
|
|
|
|
+ type = #{type,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- type = #{type,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ split_status = #{splitStatus,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
<insert id="insertSelectiveList" parameterType="java.util.List">
|
|
<insert id="insertSelectiveList" parameterType="java.util.List">
|
|
|
- insert into t_change_task ( tid, cid,
|
|
|
|
|
|
|
+ insert into t_change_task ( tid, cid, split_status,
|
|
|
order_no, commodity_id, commodity_name,
|
|
order_no, commodity_id, commodity_name,
|
|
|
commodity_quantity, commodity_price, task_comment,
|
|
commodity_quantity, commodity_price, task_comment,
|
|
|
create_time)
|
|
create_time)
|
|
|
values
|
|
values
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
- ( #{item.tid,jdbcType=INTEGER}, #{item.cid,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ ( #{item.tid,jdbcType=INTEGER}, #{item.cid,jdbcType=INTEGER}, #{item.splitStatus,jdbcType=INTEGER},
|
|
|
#{item.orderNo,jdbcType=VARCHAR}, #{item.commodityId,jdbcType=VARCHAR}, #{item.commodityName,jdbcType=VARCHAR},
|
|
#{item.orderNo,jdbcType=VARCHAR}, #{item.commodityId,jdbcType=VARCHAR}, #{item.commodityName,jdbcType=VARCHAR},
|
|
|
#{item.commodityQuantity,jdbcType=INTEGER}, #{item.commodityPrice,jdbcType=DECIMAL}, #{item.taskComment,jdbcType=VARCHAR},
|
|
#{item.commodityQuantity,jdbcType=INTEGER}, #{item.commodityPrice,jdbcType=DECIMAL}, #{item.taskComment,jdbcType=VARCHAR},
|
|
|
now())
|
|
now())
|
|
@@ -412,7 +427,7 @@
|
|
|
<select id="selectByCid" resultType="com.goafanti.order.bo.TChangeTaskOut">
|
|
<select id="selectByCid" resultType="com.goafanti.order.bo.TChangeTaskOut">
|
|
|
select a.id,a.order_no as orderNo,a.main, c.cname,c.sort cSort,a.commodity_name as commodityName,
|
|
select a.id,a.order_no as orderNo,a.main, c.cname,c.sort cSort,a.commodity_name as commodityName,
|
|
|
a.commodity_quantity as commodityQuantity,i.price,a.commodity_id as commodityId,a.type,a.tid,
|
|
a.commodity_quantity as commodityQuantity,i.price,a.commodity_id as commodityId,a.type,a.tid,
|
|
|
- a.task_comment as taskComment ,a.commodity_price as commodityPrice
|
|
|
|
|
|
|
+ a.task_comment as taskComment ,a.commodity_price as commodityPrice,a.split_status splitStatus
|
|
|
from t_change_task a left join business_project i on a.commodity_id=i.id
|
|
from t_change_task a left join business_project i on a.commodity_id=i.id
|
|
|
left join business_category c on i.cid=c.id
|
|
left join business_category c on i.cid=c.id
|
|
|
where a.cid= #{id} order by a.id
|
|
where a.cid= #{id} order by a.id
|