|
|
@@ -5,12 +5,13 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="tid" jdbcType="INTEGER" property="tid" />
|
|
|
<result column="cid" jdbcType="INTEGER" property="cid" />
|
|
|
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
|
|
+ <result column="main" jdbcType="INTEGER" property="main" />
|
|
|
<result column="commodity_id" jdbcType="VARCHAR" property="commodityId" />
|
|
|
<result column="commodity_name" jdbcType="VARCHAR" property="commodityName" />
|
|
|
<result column="commodity_quantity" jdbcType="INTEGER" property="commodityQuantity" />
|
|
|
@@ -22,7 +23,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
@@ -56,7 +57,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
@@ -90,16 +91,16 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
- id, tid, cid, order_no, 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
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.TChanggeTaskExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
select
|
|
|
<if test="distinct">
|
|
|
@@ -118,7 +119,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
@@ -129,7 +130,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
delete from t_changge_task
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -138,7 +139,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
delete from t_changge_task
|
|
|
<if test="_parameter != null">
|
|
|
@@ -149,22 +150,22 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
insert into t_changge_task (id, tid, cid,
|
|
|
- order_no, commodity_id, commodity_name,
|
|
|
- commodity_quantity, commodity_price, task_comment,
|
|
|
- create_time)
|
|
|
+ order_no, main, commodity_id,
|
|
|
+ commodity_name, commodity_quantity, commodity_price,
|
|
|
+ task_comment, create_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER}, #{cid,jdbcType=INTEGER},
|
|
|
- #{orderNo,jdbcType=VARCHAR}, #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR},
|
|
|
- #{commodityQuantity,jdbcType=INTEGER}, #{commodityPrice,jdbcType=DECIMAL}, #{taskComment,jdbcType=VARCHAR},
|
|
|
- #{createTime,jdbcType=TIMESTAMP})
|
|
|
+ #{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, #{commodityId,jdbcType=VARCHAR},
|
|
|
+ #{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER}, #{commodityPrice,jdbcType=DECIMAL},
|
|
|
+ #{taskComment,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TChanggeTask">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
insert into t_changge_task
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -180,6 +181,9 @@
|
|
|
<if test="orderNo != null">
|
|
|
order_no,
|
|
|
</if>
|
|
|
+ <if test="main != null">
|
|
|
+ main,
|
|
|
+ </if>
|
|
|
<if test="commodityId != null">
|
|
|
commodity_id,
|
|
|
</if>
|
|
|
@@ -212,6 +216,9 @@
|
|
|
<if test="orderNo != null">
|
|
|
#{orderNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="main != null">
|
|
|
+ #{main,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="commodityId != null">
|
|
|
#{commodityId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -236,7 +243,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
select count(*) from t_changge_task
|
|
|
<if test="_parameter != null">
|
|
|
@@ -247,7 +254,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
update t_changge_task
|
|
|
<set>
|
|
|
@@ -263,6 +270,9 @@
|
|
|
<if test="record.orderNo != null">
|
|
|
order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.main != null">
|
|
|
+ main = #{record.main,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.commodityId != null">
|
|
|
commodity_id = #{record.commodityId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -290,13 +300,14 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
update t_changge_task
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
tid = #{record.tid,jdbcType=INTEGER},
|
|
|
cid = #{record.cid,jdbcType=INTEGER},
|
|
|
order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
+ main = #{record.main,jdbcType=INTEGER},
|
|
|
commodity_id = #{record.commodityId,jdbcType=VARCHAR},
|
|
|
commodity_name = #{record.commodityName,jdbcType=VARCHAR},
|
|
|
commodity_quantity = #{record.commodityQuantity,jdbcType=INTEGER},
|
|
|
@@ -311,7 +322,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
update t_changge_task
|
|
|
<set>
|
|
|
@@ -324,6 +335,9 @@
|
|
|
<if test="orderNo != null">
|
|
|
order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="main != null">
|
|
|
+ main = #{main,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="commodityId != null">
|
|
|
commodity_id = #{commodityId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -349,12 +363,13 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Fri Jan 10 14:42:42 CST 2020.
|
|
|
+ This element was generated on Sat Jan 11 11:53:39 CST 2020.
|
|
|
-->
|
|
|
update t_changge_task
|
|
|
set tid = #{tid,jdbcType=INTEGER},
|
|
|
cid = #{cid,jdbcType=INTEGER},
|
|
|
order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
+ main = #{main,jdbcType=INTEGER},
|
|
|
commodity_id = #{commodityId,jdbcType=VARCHAR},
|
|
|
commodity_name = #{commodityName,jdbcType=VARCHAR},
|
|
|
commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
|
|
|
@@ -370,17 +385,19 @@
|
|
|
commodity_quantity, commodity_price, task_comment,
|
|
|
create_time)
|
|
|
values
|
|
|
- <foreach collection="list" item="item" index= "index" separator =",">
|
|
|
+ <foreach collection="list" index="index" item="item" separator=",">
|
|
|
( #{item.tid,jdbcType=INTEGER}, #{item.cid,jdbcType=INTEGER},
|
|
|
#{item.orderNo,jdbcType=VARCHAR}, #{item.commodityId,jdbcType=VARCHAR}, #{item.commodityName,jdbcType=VARCHAR},
|
|
|
#{item.commodityQuantity,jdbcType=INTEGER}, #{item.commodityPrice,jdbcType=DECIMAL}, #{item.taskComment,jdbcType=VARCHAR},
|
|
|
now())
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
- <select id="selectByCid" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from t_changge_task
|
|
|
- where cid= #{id}
|
|
|
+ <select id="selectByCid" resultType="com.goafanti.order.bo.TChanggeTaskOut">
|
|
|
+ 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.task_comment as taskComment ,a.commodity_price as commodityPrice
|
|
|
+ from t_changge_task a left join business_project i on a.commodity_id=i.id
|
|
|
+ left join business_category c on i.cid=c.id
|
|
|
+ where a.cid= #{id}
|
|
|
</select>
|
|
|
</mapper>
|