|
|
@@ -41,6 +41,7 @@
|
|
41
|
41
|
<result column="kszxrq" property="kszxrq" jdbcType="TIMESTAMP" />
|
|
42
|
42
|
<result column="jzzxrq" property="jzzxrq" jdbcType="TIMESTAMP" />
|
|
43
|
43
|
<result column="jhnd" property="jhnd" jdbcType="VARCHAR" />
|
|
|
44
|
+ <result column="agreement_number" property="agreementNumber" jdbcType="VARCHAR" />
|
|
44
|
45
|
</resultMap>
|
|
45
|
46
|
|
|
46
|
47
|
<resultMap id="approvalResultMap" type="com.chinaitop.depot.business.model.vo.BusinessPlanAuditVO" extends="BaseResultMap">
|
|
|
@@ -144,7 +145,7 @@
|
|
144
|
145
|
process_instance_id, process_definition_id, current_approve_path, agree_time, creater_id,
|
|
145
|
146
|
creater, create_time, create_unit, org_id, in_application, total_quantity, report_date,
|
|
146
|
147
|
send_date, province_remark, enterprise_remark, attribute_type, refuse_reason, updatetime,
|
|
147
|
|
- kszxrq, jzzxrq, jhnd
|
|
|
148
|
+ kszxrq, jzzxrq, jhnd ,agreement_number
|
|
148
|
149
|
</sql>
|
|
149
|
150
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessPlanExample" >
|
|
150
|
151
|
<!--
|
|
|
@@ -213,7 +214,7 @@
|
|
213
|
214
|
report_date, send_date, province_remark,
|
|
214
|
215
|
enterprise_remark, attribute_type, refuse_reason,
|
|
215
|
216
|
updatetime, kszxrq, jzzxrq,
|
|
216
|
|
- jhnd)
|
|
|
217
|
+ jhnd,agreement_number)
|
|
217
|
218
|
values (#{id,jdbcType=INTEGER}, #{planNumber,jdbcType=VARCHAR}, #{planTitle,jdbcType=VARCHAR},
|
|
218
|
219
|
#{referenceNumber,jdbcType=VARCHAR}, #{planDesc,jdbcType=VARCHAR}, #{executeType,jdbcType=INTEGER},
|
|
219
|
220
|
#{outAmount,jdbcType=VARCHAR}, #{inAmount,jdbcType=VARCHAR}, #{outTotalPrice,jdbcType=VARCHAR},
|
|
|
@@ -225,7 +226,7 @@
|
|
225
|
226
|
#{reportDate,jdbcType=TIMESTAMP}, #{sendDate,jdbcType=TIMESTAMP}, #{provinceRemark,jdbcType=VARCHAR},
|
|
226
|
227
|
#{enterpriseRemark,jdbcType=VARCHAR}, #{attributeType,jdbcType=INTEGER}, #{refuseReason,jdbcType=VARCHAR},
|
|
227
|
228
|
#{updatetime,jdbcType=TIMESTAMP}, #{kszxrq,jdbcType=TIMESTAMP}, #{jzzxrq,jdbcType=TIMESTAMP},
|
|
228
|
|
- #{jhnd,jdbcType=VARCHAR})
|
|
|
229
|
+ #{jhnd,jdbcType=VARCHAR},#{agreementNumber,jdbcType=VARCHAR})
|
|
229
|
230
|
</insert>
|
|
230
|
231
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessPlan" >
|
|
231
|
232
|
<!--
|
|
|
@@ -337,6 +338,9 @@
|
|
337
|
338
|
<if test="jhnd != null" >
|
|
338
|
339
|
jhnd,
|
|
339
|
340
|
</if>
|
|
|
341
|
+ <if test="agreementNumber != null" >
|
|
|
342
|
+ agreement_number,
|
|
|
343
|
+ </if>
|
|
340
|
344
|
</trim>
|
|
341
|
345
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
342
|
346
|
<if test="id != null" >
|
|
|
@@ -441,6 +445,9 @@
|
|
441
|
445
|
<if test="jhnd != null" >
|
|
442
|
446
|
#{jhnd,jdbcType=VARCHAR},
|
|
443
|
447
|
</if>
|
|
|
448
|
+ <if test="agreementNumber != null" >
|
|
|
449
|
+ #{agreementNumber,jdbcType=VARCHAR},
|
|
|
450
|
+ </if>
|
|
444
|
451
|
</trim>
|
|
445
|
452
|
</insert>
|
|
446
|
453
|
<select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessPlanExample" resultType="java.lang.Integer" >
|
|
|
@@ -564,6 +571,9 @@
|
|
564
|
571
|
<if test="record.jhnd != null" >
|
|
565
|
572
|
jhnd = #{record.jhnd,jdbcType=VARCHAR},
|
|
566
|
573
|
</if>
|
|
|
574
|
+ <if test="record.agreementNumber != null" >
|
|
|
575
|
+ agreement_number = #{record.agreementNumber,jdbcType=VARCHAR},
|
|
|
576
|
+ </if>
|
|
567
|
577
|
</set>
|
|
568
|
578
|
<if test="_parameter != null" >
|
|
569
|
579
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -609,7 +619,8 @@
|
|
609
|
619
|
updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
610
|
620
|
kszxrq = #{record.kszxrq,jdbcType=TIMESTAMP},
|
|
611
|
621
|
jzzxrq = #{record.jzzxrq,jdbcType=TIMESTAMP},
|
|
612
|
|
- jhnd = #{record.jhnd,jdbcType=VARCHAR}
|
|
|
622
|
+ jhnd = #{record.jhnd,jdbcType=VARCHAR},
|
|
|
623
|
+ agreement_number = #{record.agreementNumber,jdbcType=VARCHAR}
|
|
613
|
624
|
<if test="_parameter != null" >
|
|
614
|
625
|
<include refid="Update_By_Example_Where_Clause" />
|
|
615
|
626
|
</if>
|
|
|
@@ -721,6 +732,9 @@
|
|
721
|
732
|
<if test="jhnd != null" >
|
|
722
|
733
|
jhnd = #{jhnd,jdbcType=VARCHAR},
|
|
723
|
734
|
</if>
|
|
|
735
|
+ <if test="agreementNumber != null" >
|
|
|
736
|
+ agreement_number = #{agreementNumber,jdbcType=VARCHAR},
|
|
|
737
|
+ </if>
|
|
724
|
738
|
</set>
|
|
725
|
739
|
where id = #{id,jdbcType=INTEGER}
|
|
726
|
740
|
</update>
|
|
|
@@ -763,14 +777,15 @@
|
|
763
|
777
|
updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
764
|
778
|
kszxrq = #{kszxrq,jdbcType=TIMESTAMP},
|
|
765
|
779
|
jzzxrq = #{jzzxrq,jdbcType=TIMESTAMP},
|
|
766
|
|
- jhnd = #{jhnd,jdbcType=VARCHAR}
|
|
|
780
|
+ jhnd = #{jhnd,jdbcType=VARCHAR},
|
|
|
781
|
+ agreement_number = #{agreementNumber,jdbcType=VARCHAR}
|
|
767
|
782
|
where id = #{id,jdbcType=INTEGER}
|
|
768
|
783
|
</update>
|
|
769
|
784
|
|
|
770
|
785
|
<select id="getApprovalList" resultMap="approvalResultMap" parameterType="java.util.Map" >
|
|
771
|
786
|
select
|
|
772
|
787
|
a.id id, a.plan_number plan_number, a.reference_number reference_number, a.execute_type execute_type,
|
|
773
|
|
- a.in_amount in_amount,a.out_amount out_amount, a.create_time create_time,
|
|
|
788
|
+ a.in_amount in_amount,a.out_amount out_amount, a.create_time create_time,a.agreement_number agreement_number,
|
|
774
|
789
|
a.process_instance_id process_instance_id,
|
|
775
|
790
|
a.process_definition_id process_definition_id,
|
|
776
|
791
|
b.id auditId,
|
|
|
@@ -818,7 +833,7 @@
|
|
818
|
833
|
<select id="getAcceptanceList" resultMap="approvalResultMap" parameterType="java.util.Map" >
|
|
819
|
834
|
SELECT
|
|
820
|
835
|
a.id id,a.plan_number plan_number,a.reference_number reference_number,
|
|
821
|
|
- a.execute_type execute_type,
|
|
|
836
|
+ a.execute_type execute_type,a.agreement_number agreement_number,
|
|
822
|
837
|
a.customer_plan_state customer_plan_state,
|
|
823
|
838
|
a.in_application in_application,
|
|
824
|
839
|
detail.grain_kind grain_kind,
|