|
@@ -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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 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" />
|
|
@@ -15,13 +15,14 @@
|
|
|
<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_year" jdbcType="INTEGER" property="effectiveYear" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
|
|
+ <result column="status" jdbcType="INTEGER" property="status" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
</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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
@@ -55,7 +56,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
<where>
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
@@ -89,15 +90,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
- id, order_no, tid, project_type, dun_type, wait_day, effective_year, aid, create_time
|
|
|
|
|
|
|
+ id, order_no, tid, project_type, dun_type, wait_day, effective_year, aid, status,
|
|
|
|
|
+ create_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 Mon Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<if test="distinct">
|
|
<if test="distinct">
|
|
@@ -116,7 +118,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -127,7 +129,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
delete from new_order_dun
|
|
delete from new_order_dun
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -136,7 +138,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
delete from new_order_dun
|
|
delete from new_order_dun
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -147,22 +149,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 Mon Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 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, create_time
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ effective_year, aid, status,
|
|
|
|
|
+ create_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}, #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ #{effectiveYear,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
|
|
+ #{createTime,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 Mon Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
insert into new_order_dun
|
|
insert into new_order_dun
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -190,6 +192,9 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
aid,
|
|
aid,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
|
+ status,
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
create_time,
|
|
|
</if>
|
|
</if>
|
|
@@ -219,6 +224,9 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
#{aid,jdbcType=VARCHAR},
|
|
#{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
|
+ #{status,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -228,7 +236,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
select count(*) from new_order_dun
|
|
select count(*) from new_order_dun
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -239,7 +247,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update new_order_dun
|
|
update new_order_dun
|
|
|
<set>
|
|
<set>
|
|
@@ -267,6 +275,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.status != null">
|
|
|
|
|
+ status = #{record.status,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>
|
|
@@ -279,7 +290,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update new_order_dun
|
|
update new_order_dun
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
@@ -290,6 +301,7 @@
|
|
|
wait_day = #{record.waitDay,jdbcType=INTEGER},
|
|
wait_day = #{record.waitDay,jdbcType=INTEGER},
|
|
|
effective_year = #{record.effectiveYear,jdbcType=INTEGER},
|
|
effective_year = #{record.effectiveYear,jdbcType=INTEGER},
|
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
|
|
|
+ status = #{record.status,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -299,7 +311,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update new_order_dun
|
|
update new_order_dun
|
|
|
<set>
|
|
<set>
|
|
@@ -324,6 +336,9 @@
|
|
|
<if test="aid != null">
|
|
<if test="aid != null">
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
@@ -334,7 +349,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 Dec 02 14:11:03 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Dec 03 11:01:29 CST 2019.
|
|
|
-->
|
|
-->
|
|
|
update new_order_dun
|
|
update new_order_dun
|
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
set order_no = #{orderNo,jdbcType=VARCHAR},
|
|
@@ -344,6 +359,7 @@
|
|
|
wait_day = #{waitDay,jdbcType=INTEGER},
|
|
wait_day = #{waitDay,jdbcType=INTEGER},
|
|
|
effective_year = #{effectiveYear,jdbcType=INTEGER},
|
|
effective_year = #{effectiveYear,jdbcType=INTEGER},
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
|
|
+ status = #{status,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
@@ -351,10 +367,14 @@
|
|
|
select id, order_no orderNo, tid, project_type projectType, dun_type dunType, wait_day waitDay,
|
|
select id, order_no orderNo, tid, project_type projectType, dun_type dunType, wait_day waitDay,
|
|
|
effective_year effectiveYear, aid, create_time createTime
|
|
effective_year effectiveYear, aid, create_time createTime
|
|
|
from new_order_dun where 1=1
|
|
from new_order_dun where 1=1
|
|
|
- <if test="orderNo!=null and orderNo!=''">
|
|
|
|
|
|
|
+ <if test="orderNo != null">
|
|
|
and order_no= #{orderNo}
|
|
and order_no= #{orderNo}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="aid != null and aid != ''">
|
|
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
|
+ and status= #{status}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="aid != null">
|
|
|
and aid= #{aid}
|
|
and aid= #{aid}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|