|
@@ -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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 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" />
|
|
@@ -13,7 +13,7 @@
|
|
|
<result column="project_type" jdbcType="INTEGER" property="projectType" />
|
|
<result column="project_type" jdbcType="INTEGER" property="projectType" />
|
|
|
<result column="dun_type" jdbcType="INTEGER" property="dunType" />
|
|
<result column="dun_type" jdbcType="INTEGER" property="dunType" />
|
|
|
<result column="wait_day" jdbcType="INTEGER" property="waitDay" />
|
|
<result column="wait_day" jdbcType="INTEGER" property="waitDay" />
|
|
|
- <result column="effective_year" jdbcType="INTEGER" property="effectiveYear" />
|
|
|
|
|
|
|
+ <result column="effective_count" jdbcType="INTEGER" property="effectiveCount" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
@@ -23,7 +23,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -57,7 +57,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -91,16 +91,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
- id, order_no, tid, project_type, dun_type, wait_day, effective_year, aid, status,
|
|
|
|
|
|
|
+ id, order_no, tid, project_type, dun_type, wait_day, effective_count, aid, status,
|
|
|
create_time, start_time
|
|
create_time, start_time
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.NewOrderDunExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.NewOrderDunExample" 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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -119,7 +119,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -130,7 +130,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
delete from new_order_dun
|
|
delete from new_order_dun
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -139,7 +139,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
delete from new_order_dun
|
|
delete from new_order_dun
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -150,22 +150,22 @@
|
|
|
<!--
|
|
<!--
|
|
|
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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
insert into new_order_dun (id, order_no, tid,
|
|
insert into new_order_dun (id, order_no, tid,
|
|
|
project_type, dun_type, wait_day,
|
|
project_type, dun_type, wait_day,
|
|
|
- effective_year, aid, status,
|
|
|
|
|
|
|
+ effective_count, aid, status,
|
|
|
create_time, start_time)
|
|
create_time, start_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{tid,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{tid,jdbcType=INTEGER},
|
|
|
#{projectType,jdbcType=INTEGER}, #{dunType,jdbcType=INTEGER}, #{waitDay,jdbcType=INTEGER},
|
|
#{projectType,jdbcType=INTEGER}, #{dunType,jdbcType=INTEGER}, #{waitDay,jdbcType=INTEGER},
|
|
|
- #{effectiveYear,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ #{effectiveCount,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP})
|
|
#{createTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.NewOrderDun">
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.NewOrderDun">
|
|
|
<!--
|
|
<!--
|
|
|
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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
insert into new_order_dun
|
|
insert into new_order_dun
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -187,8 +187,8 @@
|
|
|
<if test="waitDay != null">
|
|
<if test="waitDay != null">
|
|
|
wait_day,
|
|
wait_day,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="effectiveYear != null">
|
|
|
|
|
- effective_year,
|
|
|
|
|
|
|
+ <if test="effectiveCount != null">
|
|
|
|
|
+ effective_count,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
aid,
|
|
aid,
|
|
@@ -222,8 +222,8 @@
|
|
|
<if test="waitDay != null">
|
|
<if test="waitDay != null">
|
|
|
#{waitDay,jdbcType=INTEGER},
|
|
#{waitDay,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="effectiveYear != null">
|
|
|
|
|
- #{effectiveYear,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="effectiveCount != null">
|
|
|
|
|
+ #{effectiveCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
#{aid,jdbcType=VARCHAR},
|
|
#{aid,jdbcType=VARCHAR},
|
|
@@ -243,7 +243,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select count(*) from new_order_dun
|
|
select count(*) from new_order_dun
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -254,7 +254,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update new_order_dun
|
|
update new_order_dun
|
|
|
<set>
|
|
<set>
|
|
@@ -276,8 +276,8 @@
|
|
|
<if test="record.waitDay != null">
|
|
<if test="record.waitDay != null">
|
|
|
wait_day = #{record.waitDay,jdbcType=INTEGER},
|
|
wait_day = #{record.waitDay,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.effectiveYear != null">
|
|
|
|
|
- effective_year = #{record.effectiveYear,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="record.effectiveCount != null">
|
|
|
|
|
+ effective_count = #{record.effectiveCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="record.aid != null">
|
|
<if test="record.aid != null">
|
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
@@ -300,7 +300,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update new_order_dun
|
|
update new_order_dun
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
@@ -309,7 +309,7 @@
|
|
|
project_type = #{record.projectType,jdbcType=INTEGER},
|
|
project_type = #{record.projectType,jdbcType=INTEGER},
|
|
|
dun_type = #{record.dunType,jdbcType=INTEGER},
|
|
dun_type = #{record.dunType,jdbcType=INTEGER},
|
|
|
wait_day = #{record.waitDay,jdbcType=INTEGER},
|
|
wait_day = #{record.waitDay,jdbcType=INTEGER},
|
|
|
- effective_year = #{record.effectiveYear,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ effective_count = #{record.effectiveCount,jdbcType=INTEGER},
|
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
@@ -322,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update new_order_dun
|
|
update new_order_dun
|
|
|
<set>
|
|
<set>
|
|
@@ -341,8 +341,8 @@
|
|
|
<if test="waitDay != null">
|
|
<if test="waitDay != null">
|
|
|
wait_day = #{waitDay,jdbcType=INTEGER},
|
|
wait_day = #{waitDay,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="effectiveYear != null">
|
|
|
|
|
- effective_year = #{effectiveYear,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="effectiveCount != null">
|
|
|
|
|
+ effective_count = #{effectiveCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
@@ -363,7 +363,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 Tue Dec 03 17:56:47 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Thu Dec 05 14:06:46 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update new_order_dun
|
|
update new_order_dun
|
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
@@ -371,7 +371,7 @@
|
|
|
project_type = #{projectType,jdbcType=INTEGER},
|
|
project_type = #{projectType,jdbcType=INTEGER},
|
|
|
dun_type = #{dunType,jdbcType=INTEGER},
|
|
dun_type = #{dunType,jdbcType=INTEGER},
|
|
|
wait_day = #{waitDay,jdbcType=INTEGER},
|
|
wait_day = #{waitDay,jdbcType=INTEGER},
|
|
|
- effective_year = #{effectiveYear,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ effective_count = #{effectiveCount,jdbcType=INTEGER},
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
@@ -396,7 +396,7 @@
|
|
|
from new_order_dun a left join t_order_new b on a.order_no=b.order_no
|
|
from new_order_dun a left join t_order_new b on a.order_no=b.order_no
|
|
|
where 1=1 and b.approval=2
|
|
where 1=1 and b.approval=2
|
|
|
</select>
|
|
</select>
|
|
|
- <select id="selectByTid" resultType="com.goafanti.order.bo.OutNewOrderDunBo">
|
|
|
|
|
|
|
+ <select id="selectByTid" resultType="com.goafanti.order.bo.OutNewOrderDunBo">
|
|
|
select a.id, a.order_no orderNo, a.tid, a.project_type projectType, a.dun_type dunType, a.wait_day waitDay,
|
|
select a.id, a.order_no orderNo, a.tid, a.project_type projectType, a.dun_type dunType, a.wait_day waitDay,
|
|
|
a.effective_year effectiveYear, a.aid, a.create_time createTime from new_order_dun a
|
|
a.effective_year effectiveYear, a.aid, a.create_time createTime from new_order_dun a
|
|
|
where tid = #{tid} and status=0
|
|
where tid = #{tid} and status=0
|