|
|
@@ -5,7 +5,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
|
|
@@ -61,12 +61,14 @@
|
|
|
<result column="if_certification_fee" jdbcType="INTEGER" property="ifCertificationFee" />
|
|
|
<result column="certification_fee" jdbcType="DECIMAL" property="certificationFee" />
|
|
|
<result column="certification_corporate" jdbcType="VARCHAR" property="certificationCorporate" />
|
|
|
+ <result column="if_publicity" jdbcType="INTEGER" property="ifPublicity" />
|
|
|
+ <result column="check_status" jdbcType="INTEGER" property="checkStatus" />
|
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.TOrderTask">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
<result column="attachment_url" jdbcType="LONGVARCHAR" property="attachmentUrl" />
|
|
|
<result column="time_record" jdbcType="LONGVARCHAR" property="timeRecord" />
|
|
|
@@ -75,7 +77,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
id, order_no, main, super_id, commodity_id, commodity_name, commodity_quantity, commodity_mode,
|
|
|
commodity_price, task_status, task_distribution_time, task_allocator, task_receiver,
|
|
|
@@ -85,13 +87,14 @@
|
|
|
outsource_name, outsource_price, consultant_id, manager_id, outsource, split_super,
|
|
|
split_status, split_id, split_aid, split_time, cname, receiver_name, declaration_batch,
|
|
|
cost_reduction, official_cost, set_up_status, set_up_time, spot_check_status, high_tech_status,
|
|
|
- special_comment, if_certification_fee, certification_fee, certification_corporate
|
|
|
+ special_comment, if_certification_fee, certification_fee, certification_corporate,
|
|
|
+ if_publicity, check_status
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
attachment_url, time_record
|
|
|
</sql>
|
|
|
@@ -99,7 +102,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
@@ -112,7 +115,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
delete from t_order_task
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -121,7 +124,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
insert into t_order_task (id, order_no, main,
|
|
|
super_id, commodity_id, commodity_name,
|
|
|
@@ -141,7 +144,8 @@
|
|
|
official_cost, set_up_status, set_up_time,
|
|
|
spot_check_status, high_tech_status, special_comment,
|
|
|
if_certification_fee, certification_fee, certification_corporate,
|
|
|
- attachment_url, time_record)
|
|
|
+ if_publicity, check_status, attachment_url,
|
|
|
+ time_record)
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER},
|
|
|
#{superId,jdbcType=VARCHAR}, #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR},
|
|
|
#{commodityQuantity,jdbcType=INTEGER}, #{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL},
|
|
|
@@ -160,13 +164,14 @@
|
|
|
#{officialCost,jdbcType=INTEGER}, #{setUpStatus,jdbcType=INTEGER}, #{setUpTime,jdbcType=TIMESTAMP},
|
|
|
#{spotCheckStatus,jdbcType=INTEGER}, #{highTechStatus,jdbcType=INTEGER}, #{specialComment,jdbcType=VARCHAR},
|
|
|
#{ifCertificationFee,jdbcType=INTEGER}, #{certificationFee,jdbcType=DECIMAL}, #{certificationCorporate,jdbcType=VARCHAR},
|
|
|
- #{attachmentUrl,jdbcType=LONGVARCHAR}, #{timeRecord,jdbcType=LONGVARCHAR})
|
|
|
+ #{ifPublicity,jdbcType=INTEGER}, #{checkStatus,jdbcType=INTEGER}, #{attachmentUrl,jdbcType=LONGVARCHAR},
|
|
|
+ #{timeRecord,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderTask">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
insert into t_order_task
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -332,6 +337,12 @@
|
|
|
<if test="certificationCorporate != null">
|
|
|
certification_corporate,
|
|
|
</if>
|
|
|
+ <if test="ifPublicity != null">
|
|
|
+ if_publicity,
|
|
|
+ </if>
|
|
|
+ <if test="checkStatus != null">
|
|
|
+ check_status,
|
|
|
+ </if>
|
|
|
<if test="attachmentUrl != null">
|
|
|
attachment_url,
|
|
|
</if>
|
|
|
@@ -502,6 +513,12 @@
|
|
|
<if test="certificationCorporate != null">
|
|
|
#{certificationCorporate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="ifPublicity != null">
|
|
|
+ #{ifPublicity,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="checkStatus != null">
|
|
|
+ #{checkStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="attachmentUrl != null">
|
|
|
#{attachmentUrl,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
@@ -514,7 +531,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
update t_order_task
|
|
|
<set>
|
|
|
@@ -677,6 +694,12 @@
|
|
|
<if test="certificationCorporate != null">
|
|
|
certification_corporate = #{certificationCorporate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="ifPublicity != null">
|
|
|
+ if_publicity = #{ifPublicity,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="checkStatus != null">
|
|
|
+ check_status = #{checkStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="attachmentUrl != null">
|
|
|
attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
@@ -690,7 +713,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
update t_order_task
|
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
@@ -746,6 +769,8 @@
|
|
|
if_certification_fee = #{ifCertificationFee,jdbcType=INTEGER},
|
|
|
certification_fee = #{certificationFee,jdbcType=DECIMAL},
|
|
|
certification_corporate = #{certificationCorporate,jdbcType=VARCHAR},
|
|
|
+ if_publicity = #{ifPublicity,jdbcType=INTEGER},
|
|
|
+ check_status = #{checkStatus,jdbcType=INTEGER},
|
|
|
attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR},
|
|
|
time_record = #{timeRecord,jdbcType=LONGVARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -754,7 +779,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Tue Jan 26 11:11:55 CST 2021.
|
|
|
+ This element was generated on Wed Jul 14 15:27:49 CST 2021.
|
|
|
-->
|
|
|
update t_order_task
|
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
@@ -809,14 +834,17 @@
|
|
|
special_comment = #{specialComment,jdbcType=VARCHAR},
|
|
|
if_certification_fee = #{ifCertificationFee,jdbcType=INTEGER},
|
|
|
certification_fee = #{certificationFee,jdbcType=DECIMAL},
|
|
|
- certification_corporate = #{certificationCorporate,jdbcType=VARCHAR}
|
|
|
+ certification_corporate = #{certificationCorporate,jdbcType=VARCHAR},
|
|
|
+ if_publicity = #{ifPublicity,jdbcType=INTEGER},
|
|
|
+ check_status = #{checkStatus,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
+
|
|
|
<!-- 记得返回id -->
|
|
|
- <!-- &amp;amp;amp;amp;amp;amp;lt;insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderTask" useGeneratedKeys="true"&amp;amp;amp;amp;amp;amp;gt;
|
|
|
- &amp;amp;amp;amp;amp;amp;lt;selectKey keyProperty="id" order="AFTER" resultType="int"&amp;amp;amp;amp;amp;amp;gt;
|
|
|
+ <!-- &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderTask" useGeneratedKeys="true"&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;
|
|
|
+ &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;selectKey keyProperty="id" order="AFTER" resultType="int"&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
- &amp;amp;amp;amp;amp;amp;lt;/selectKey&amp;amp;amp;amp;amp;amp;gt; -->
|
|
|
+ &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/selectKey&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt; -->
|
|
|
<insert id="insertSelectiveGetId" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.TOrderTask" useGeneratedKeys="true">
|
|
|
insert into t_order_task
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -982,9 +1010,18 @@
|
|
|
<if test="certificationCorporate != null">
|
|
|
certification_corporate,
|
|
|
</if>
|
|
|
+ <if test="ifPublicity != null">
|
|
|
+ if_publicity,
|
|
|
+ </if>
|
|
|
+ <if test="checkStatus != null">
|
|
|
+ check_status,
|
|
|
+ </if>
|
|
|
<if test="attachmentUrl != null">
|
|
|
attachment_url,
|
|
|
</if>
|
|
|
+ <if test="timeRecord != null">
|
|
|
+ time_record,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -1149,9 +1186,18 @@
|
|
|
<if test="certificationCorporate != null">
|
|
|
#{certificationCorporate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="ifPublicity != null">
|
|
|
+ #{ifPublicity,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="checkStatus != null">
|
|
|
+ #{checkStatus,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="attachmentUrl != null">
|
|
|
#{attachmentUrl,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
|
+ <if test="timeRecord != null">
|
|
|
+ #{timeRecord,jdbcType=LONGVARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<selectKey keyProperty="id" order="AFTER" resultType="int">
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
@@ -1996,7 +2042,7 @@ left join department de on x.department_id=de.id left join business_category bc
|
|
|
|
|
|
<resultMap id="userOrder" type="com.goafanti.common.bo.UserOrderTask">
|
|
|
<id column="orderNo" jdbcType="VARCHAR" property="orderNo" />
|
|
|
- <collection property="list" ofType="com.goafanti.common.bo.UserTask">
|
|
|
+ <collection ofType="com.goafanti.common.bo.UserTask" property="list">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="commodityName" jdbcType="VARCHAR" property="commodityName" />
|
|
|
</collection>
|