|
|
@@ -5,31 +5,33 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="did" jdbcType="INTEGER" property="did" />
|
|
|
<result column="cid" jdbcType="INTEGER" property="cid" />
|
|
|
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
|
|
<result column="tid" jdbcType="INTEGER" property="tid" />
|
|
|
+ <result column="ctid" jdbcType="INTEGER" property="ctid" />
|
|
|
<result column="project_type" jdbcType="INTEGER" property="projectType" />
|
|
|
<result column="dun_type" jdbcType="INTEGER" property="dunType" />
|
|
|
<result column="wait_day" jdbcType="INTEGER" property="waitDay" />
|
|
|
<result column="effective_count" jdbcType="INTEGER" property="effectiveCount" />
|
|
|
<result column="aid" jdbcType="VARCHAR" property="aid" />
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
+ <result column="type" jdbcType="INTEGER" property="type" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
|
|
<result column="money" jdbcType="DECIMAL" property="money" />
|
|
|
<result column="appropriation_ratio" jdbcType="DECIMAL" property="appropriationRatio" />
|
|
|
- <result column="type" jdbcType="INTEGER" property="type" />
|
|
|
- <result column="ctid" jdbcType="INTEGER" property="ctid" />
|
|
|
+ <result column="customize_name" jdbcType="VARCHAR" property="customizeName" />
|
|
|
+ <result column="customize_time" jdbcType="TIMESTAMP" property="customizeTime" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
<where>
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
@@ -63,7 +65,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
<where>
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
@@ -97,16 +99,17 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
- id, did, cid, order_no, tid, project_type, dun_type, wait_day, effective_count, aid,
|
|
|
- status, create_time, start_time, money, appropriation_ratio, type, ctid
|
|
|
+ id, did, cid, order_no, tid, ctid, project_type, dun_type, wait_day, effective_count,
|
|
|
+ aid, status, type, create_time, start_time, money, appropriation_ratio, customize_name,
|
|
|
+ customize_time
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.TChangeDunExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
select
|
|
|
<if test="distinct">
|
|
|
@@ -125,7 +128,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
@@ -136,7 +139,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
delete from t_change_dun
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -145,7 +148,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
delete from t_change_dun
|
|
|
<if test="_parameter != null">
|
|
|
@@ -156,26 +159,28 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
insert into t_change_dun (id, did, cid,
|
|
|
- order_no, tid, project_type,
|
|
|
- dun_type, wait_day, effective_count,
|
|
|
- aid, status, create_time,
|
|
|
- start_time, money, appropriation_ratio,
|
|
|
- type, ctid)
|
|
|
+ order_no, tid, ctid,
|
|
|
+ project_type, dun_type, wait_day,
|
|
|
+ effective_count, aid, status,
|
|
|
+ type, create_time, start_time,
|
|
|
+ money, appropriation_ratio, customize_name,
|
|
|
+ customize_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{did,jdbcType=INTEGER}, #{cid,jdbcType=INTEGER},
|
|
|
- #{orderNo,jdbcType=VARCHAR}, #{tid,jdbcType=INTEGER}, #{projectType,jdbcType=INTEGER},
|
|
|
- #{dunType,jdbcType=INTEGER}, #{waitDay,jdbcType=INTEGER}, #{effectiveCount,jdbcType=INTEGER},
|
|
|
- #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{startTime,jdbcType=TIMESTAMP}, #{money,jdbcType=DECIMAL}, #{appropriationRatio,jdbcType=DECIMAL},
|
|
|
- #{type,jdbcType=INTEGER}, #{ctid,jdbcType=INTEGER})
|
|
|
+ #{orderNo,jdbcType=VARCHAR}, #{tid,jdbcType=INTEGER}, #{ctid,jdbcType=INTEGER},
|
|
|
+ #{projectType,jdbcType=INTEGER}, #{dunType,jdbcType=INTEGER}, #{waitDay,jdbcType=INTEGER},
|
|
|
+ #{effectiveCount,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
|
|
|
+ #{type,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{startTime,jdbcType=TIMESTAMP},
|
|
|
+ #{money,jdbcType=DECIMAL}, #{appropriationRatio,jdbcType=DECIMAL}, #{customizeName,jdbcType=VARCHAR},
|
|
|
+ #{customizeTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.TChangeDun">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
insert into t_change_dun
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -194,6 +199,9 @@
|
|
|
<if test="tid != null">
|
|
|
tid,
|
|
|
</if>
|
|
|
+ <if test="ctid != null">
|
|
|
+ ctid,
|
|
|
+ </if>
|
|
|
<if test="projectType != null">
|
|
|
project_type,
|
|
|
</if>
|
|
|
@@ -212,6 +220,9 @@
|
|
|
<if test="status != null">
|
|
|
status,
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ type,
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
@@ -224,11 +235,11 @@
|
|
|
<if test="appropriationRatio != null">
|
|
|
appropriation_ratio,
|
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
- type,
|
|
|
+ <if test="customizeName != null">
|
|
|
+ customize_name,
|
|
|
</if>
|
|
|
- <if test="ctid != null">
|
|
|
- ctid,
|
|
|
+ <if test="customizeTime != null">
|
|
|
+ customize_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -247,6 +258,9 @@
|
|
|
<if test="tid != null">
|
|
|
#{tid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="ctid != null">
|
|
|
+ #{ctid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="projectType != null">
|
|
|
#{projectType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -265,6 +279,9 @@
|
|
|
<if test="status != null">
|
|
|
#{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -277,11 +294,11 @@
|
|
|
<if test="appropriationRatio != null">
|
|
|
#{appropriationRatio,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
- #{type,jdbcType=INTEGER},
|
|
|
+ <if test="customizeName != null">
|
|
|
+ #{customizeName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="ctid != null">
|
|
|
- #{ctid,jdbcType=INTEGER},
|
|
|
+ <if test="customizeTime != null">
|
|
|
+ #{customizeTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -289,7 +306,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
select count(*) from t_change_dun
|
|
|
<if test="_parameter != null">
|
|
|
@@ -300,7 +317,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
update t_change_dun
|
|
|
<set>
|
|
|
@@ -319,6 +336,9 @@
|
|
|
<if test="record.tid != null">
|
|
|
tid = #{record.tid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.ctid != null">
|
|
|
+ ctid = #{record.ctid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.projectType != null">
|
|
|
project_type = #{record.projectType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -337,6 +357,9 @@
|
|
|
<if test="record.status != null">
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="record.type != null">
|
|
|
+ type = #{record.type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="record.createTime != null">
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -349,11 +372,11 @@
|
|
|
<if test="record.appropriationRatio != null">
|
|
|
appropriation_ratio = #{record.appropriationRatio,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
- <if test="record.type != null">
|
|
|
- type = #{record.type,jdbcType=INTEGER},
|
|
|
+ <if test="record.customizeName != null">
|
|
|
+ customize_name = #{record.customizeName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="record.ctid != null">
|
|
|
- ctid = #{record.ctid,jdbcType=INTEGER},
|
|
|
+ <if test="record.customizeTime != null">
|
|
|
+ customize_time = #{record.customizeTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
@@ -364,7 +387,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
update t_change_dun
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
@@ -372,18 +395,20 @@
|
|
|
cid = #{record.cid,jdbcType=INTEGER},
|
|
|
order_no = #{record.orderNo,jdbcType=VARCHAR},
|
|
|
tid = #{record.tid,jdbcType=INTEGER},
|
|
|
+ ctid = #{record.ctid,jdbcType=INTEGER},
|
|
|
project_type = #{record.projectType,jdbcType=INTEGER},
|
|
|
dun_type = #{record.dunType,jdbcType=INTEGER},
|
|
|
wait_day = #{record.waitDay,jdbcType=INTEGER},
|
|
|
effective_count = #{record.effectiveCount,jdbcType=INTEGER},
|
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
|
status = #{record.status,jdbcType=INTEGER},
|
|
|
+ type = #{record.type,jdbcType=INTEGER},
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
|
|
money = #{record.money,jdbcType=DECIMAL},
|
|
|
appropriation_ratio = #{record.appropriationRatio,jdbcType=DECIMAL},
|
|
|
- type = #{record.type,jdbcType=INTEGER},
|
|
|
- ctid = #{record.ctid,jdbcType=INTEGER}
|
|
|
+ customize_name = #{record.customizeName,jdbcType=VARCHAR},
|
|
|
+ customize_time = #{record.customizeTime,jdbcType=TIMESTAMP}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -392,7 +417,7 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
update t_change_dun
|
|
|
<set>
|
|
|
@@ -408,6 +433,9 @@
|
|
|
<if test="tid != null">
|
|
|
tid = #{tid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="ctid != null">
|
|
|
+ ctid = #{ctid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="projectType != null">
|
|
|
project_type = #{projectType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
@@ -426,6 +454,9 @@
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="type != null">
|
|
|
+ type = #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
@@ -438,11 +469,11 @@
|
|
|
<if test="appropriationRatio != null">
|
|
|
appropriation_ratio = #{appropriationRatio,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
- <if test="type != null">
|
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
+ <if test="customizeName != null">
|
|
|
+ customize_name = #{customizeName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="ctid != null">
|
|
|
- ctid = #{ctid,jdbcType=INTEGER},
|
|
|
+ <if test="customizeTime != null">
|
|
|
+ customize_time = #{customizeTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -451,25 +482,27 @@
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Mon Jan 13 11:34:14 CST 2020.
|
|
|
+ This element was generated on Fri May 15 10:10:48 CST 2020.
|
|
|
-->
|
|
|
update t_change_dun
|
|
|
set did = #{did,jdbcType=INTEGER},
|
|
|
cid = #{cid,jdbcType=INTEGER},
|
|
|
order_no = #{orderNo,jdbcType=VARCHAR},
|
|
|
tid = #{tid,jdbcType=INTEGER},
|
|
|
+ ctid = #{ctid,jdbcType=INTEGER},
|
|
|
project_type = #{projectType,jdbcType=INTEGER},
|
|
|
dun_type = #{dunType,jdbcType=INTEGER},
|
|
|
wait_day = #{waitDay,jdbcType=INTEGER},
|
|
|
effective_count = #{effectiveCount,jdbcType=INTEGER},
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
status = #{status,jdbcType=INTEGER},
|
|
|
+ type = #{type,jdbcType=INTEGER},
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
|
|
money = #{money,jdbcType=DECIMAL},
|
|
|
appropriation_ratio = #{appropriationRatio,jdbcType=DECIMAL},
|
|
|
- type = #{type,jdbcType=INTEGER},
|
|
|
- ctid = #{ctid,jdbcType=INTEGER}
|
|
|
+ customize_name = #{customizeName,jdbcType=VARCHAR},
|
|
|
+ customize_time = #{customizeTime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
@@ -494,6 +527,7 @@
|
|
|
select a.id,a.order_no orderNo,ifnull(a.tid,c.tid)tid, a.project_type projectType, a.dun_type dunType, a.wait_day waitDay,
|
|
|
b.set_up_amount setUpAmount, a.effective_count effectiveCount, a.aid, a.create_time createTime,a.type,a.ctid,a.did,
|
|
|
ifnull(b.commodity_name,c.commodity_name) commodityName,a.money,a.status, a.appropriation_ratio appropriationRatio
|
|
|
+ ,date_format(a.customize_time,'%Y-%m-%d') customizeTimes, a.customize_name customizeName,a.customize_time customizeTime
|
|
|
from t_change_dun a left join t_order_task b on a.tid=b.id left join t_change_task c on a.ctid=c.id
|
|
|
where a.cid= #{id} order by a.id
|
|
|
</select>
|
|
|
@@ -517,7 +551,6 @@
|
|
|
</if>
|
|
|
</update>
|
|
|
<delete id="deleteByCtid" parameterType="java.lang.Integer">
|
|
|
-
|
|
|
delete from t_change_dun
|
|
|
where ctid = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|