Pārlūkot izejas kodu

增加协议编号 字段

gaodd 2 gadi atpakaļ
vecāks
revīzija
0f4a04f078

+ 21 - 6
src/main/java/com/chinaitop/depot/business/mapper/BusinessContractMapper.xml

@@ -64,6 +64,7 @@
64
     <result column="khqyr" property="khqyr" jdbcType="VARCHAR" />
64
     <result column="khqyr" property="khqyr" jdbcType="VARCHAR" />
65
     <result column="bfkhh" property="bfkhh" jdbcType="VARCHAR" />
65
     <result column="bfkhh" property="bfkhh" jdbcType="VARCHAR" />
66
     <result column="bfzh" property="bfzh" jdbcType="VARCHAR" />
66
     <result column="bfzh" property="bfzh" jdbcType="VARCHAR" />
67
+    <result column="agreement_number" property="agreementNumber" jdbcType="VARCHAR" />
67
   </resultMap>
68
   </resultMap>
68
   <sql id="Example_Where_Clause" >
69
   <sql id="Example_Where_Clause" >
69
     <!--
70
     <!--
@@ -148,7 +149,7 @@
148
     change_reason, change_time, change_content, changing, plan_bid, audit_state, process_instance_id, 
149
     change_reason, change_time, change_content, changing, plan_bid, audit_state, process_instance_id, 
149
     process_definition_id, agree_time, create_man, creater, create_time, create_unit, 
150
     process_definition_id, agree_time, create_man, creater, create_time, create_unit, 
150
     create_depot, update_time, org_id, in_application, creater_id, identification, updatetime, 
151
     create_depot, update_time, org_id, in_application, creater_id, identification, updatetime, 
151
-    qddd, lybzj, khqyr, bfkhh, bfzh
152
+    qddd, lybzj, khqyr, bfkhh, bfzh,agreement_number
152
   </sql>
153
   </sql>
153
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessContractExample" >
154
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessContractExample" >
154
     <!--
155
     <!--
@@ -225,7 +226,7 @@
225
       update_time, org_id, in_application, 
226
       update_time, org_id, in_application, 
226
       creater_id, identification, updatetime, 
227
       creater_id, identification, updatetime, 
227
       qddd, lybzj, khqyr, 
228
       qddd, lybzj, khqyr, 
228
-      bfkhh, bfzh)
229
+      bfkhh, bfzh,agreement_number)
229
     values (#{id,jdbcType=INTEGER}, #{contractNumber,jdbcType=VARCHAR}, #{contractTitle,jdbcType=VARCHAR}, 
230
     values (#{id,jdbcType=INTEGER}, #{contractNumber,jdbcType=VARCHAR}, #{contractTitle,jdbcType=VARCHAR}, 
230
       #{customerId,jdbcType=VARCHAR}, #{customerBid,jdbcType=INTEGER}, #{customerNumber,jdbcType=VARCHAR}, 
231
       #{customerId,jdbcType=VARCHAR}, #{customerBid,jdbcType=INTEGER}, #{customerNumber,jdbcType=VARCHAR}, 
231
       #{customerName,jdbcType=VARCHAR}, #{grainQuantity,jdbcType=VARCHAR}, #{moneyQuantity,jdbcType=VARCHAR}, 
232
       #{customerName,jdbcType=VARCHAR}, #{grainQuantity,jdbcType=VARCHAR}, #{moneyQuantity,jdbcType=VARCHAR}, 
@@ -245,7 +246,7 @@
245
       #{updateTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{inApplication,jdbcType=INTEGER}, 
246
       #{updateTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{inApplication,jdbcType=INTEGER}, 
246
       #{createrId,jdbcType=INTEGER}, #{identification,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
247
       #{createrId,jdbcType=INTEGER}, #{identification,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
247
       #{qddd,jdbcType=VARCHAR}, #{lybzj,jdbcType=VARCHAR}, #{khqyr,jdbcType=VARCHAR}, 
248
       #{qddd,jdbcType=VARCHAR}, #{lybzj,jdbcType=VARCHAR}, #{khqyr,jdbcType=VARCHAR}, 
248
-      #{bfkhh,jdbcType=VARCHAR}, #{bfzh,jdbcType=VARCHAR})
249
+      #{bfkhh,jdbcType=VARCHAR}, #{bfzh,jdbcType=VARCHAR},#{agreementNumber,jdbcType=VARCHAR})
249
   </insert>
250
   </insert>
250
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessContract" >
251
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessContract" >
251
     <!--
252
     <!--
@@ -426,6 +427,9 @@
426
       <if test="bfzh != null" >
427
       <if test="bfzh != null" >
427
         bfzh,
428
         bfzh,
428
       </if>
429
       </if>
430
+      <if test="agreementNumber != null" >
431
+        agreement_number,
432
+      </if>
429
     </trim>
433
     </trim>
430
     <trim prefix="values (" suffix=")" suffixOverrides="," >
434
     <trim prefix="values (" suffix=")" suffixOverrides="," >
431
       <if test="id != null" >
435
       <if test="id != null" >
@@ -599,6 +603,9 @@
599
       <if test="bfzh != null" >
603
       <if test="bfzh != null" >
600
         #{bfzh,jdbcType=VARCHAR},
604
         #{bfzh,jdbcType=VARCHAR},
601
       </if>
605
       </if>
606
+      <if test="agreementNumber != null" >
607
+        #{agreementNumber,jdbcType=VARCHAR},
608
+      </if>
602
     </trim>
609
     </trim>
603
   </insert>
610
   </insert>
604
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessContractExample" resultType="java.lang.Integer" >
611
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessContractExample" resultType="java.lang.Integer" >
@@ -791,6 +798,9 @@
791
       <if test="record.bfzh != null" >
798
       <if test="record.bfzh != null" >
792
         bfzh = #{record.bfzh,jdbcType=VARCHAR},
799
         bfzh = #{record.bfzh,jdbcType=VARCHAR},
793
       </if>
800
       </if>
801
+      <if test="record.agreementNumber != null" >
802
+        agreement_number = #{record.agreementNumber,jdbcType=VARCHAR},
803
+      </if>
794
     </set>
804
     </set>
795
     <if test="_parameter != null" >
805
     <if test="_parameter != null" >
796
       <include refid="Update_By_Example_Where_Clause" />
806
       <include refid="Update_By_Example_Where_Clause" />
@@ -859,7 +869,8 @@
859
       lybzj = #{record.lybzj,jdbcType=VARCHAR},
869
       lybzj = #{record.lybzj,jdbcType=VARCHAR},
860
       khqyr = #{record.khqyr,jdbcType=VARCHAR},
870
       khqyr = #{record.khqyr,jdbcType=VARCHAR},
861
       bfkhh = #{record.bfkhh,jdbcType=VARCHAR},
871
       bfkhh = #{record.bfkhh,jdbcType=VARCHAR},
862
-      bfzh = #{record.bfzh,jdbcType=VARCHAR}
872
+      bfzh = #{record.bfzh,jdbcType=VARCHAR},
873
+      agreement_number = #{record.agreementNumber,jdbcType=VARCHAR}
863
     <if test="_parameter != null" >
874
     <if test="_parameter != null" >
864
       <include refid="Update_By_Example_Where_Clause" />
875
       <include refid="Update_By_Example_Where_Clause" />
865
     </if>
876
     </if>
@@ -1040,6 +1051,9 @@
1040
       <if test="bfzh != null" >
1051
       <if test="bfzh != null" >
1041
         bfzh = #{bfzh,jdbcType=VARCHAR},
1052
         bfzh = #{bfzh,jdbcType=VARCHAR},
1042
       </if>
1053
       </if>
1054
+      <if test="agreementNumber != null" >
1055
+        agreement_number = #{agreementNumber,jdbcType=VARCHAR},
1056
+      </if>
1043
     </set>
1057
     </set>
1044
     where id = #{id,jdbcType=INTEGER}
1058
     where id = #{id,jdbcType=INTEGER}
1045
   </update>
1059
   </update>
@@ -1105,7 +1119,8 @@
1105
       lybzj = #{lybzj,jdbcType=VARCHAR},
1119
       lybzj = #{lybzj,jdbcType=VARCHAR},
1106
       khqyr = #{khqyr,jdbcType=VARCHAR},
1120
       khqyr = #{khqyr,jdbcType=VARCHAR},
1107
       bfkhh = #{bfkhh,jdbcType=VARCHAR},
1121
       bfkhh = #{bfkhh,jdbcType=VARCHAR},
1108
-      bfzh = #{bfzh,jdbcType=VARCHAR}
1122
+      bfzh = #{bfzh,jdbcType=VARCHAR},
1123
+      agreement_number = #{agreementNumber,jdbcType=VARCHAR}
1109
     where id = #{id,jdbcType=INTEGER}
1124
     where id = #{id,jdbcType=INTEGER}
1110
   </update>
1125
   </update>
1111
   
1126
   
@@ -1119,7 +1134,7 @@
1119
  
1134
  
1120
   <select id="getApprovalList" resultMap="approvalResultMap" parameterType="java.util.Map" >
1135
   <select id="getApprovalList" resultMap="approvalResultMap" parameterType="java.util.Map" >
1121
     select
1136
     select
1122
-        a.id id, a.contract_number contract_number, a.plan_number plan_number,
1137
+        a.id id, a.contract_number contract_number, a.plan_number plan_number,a.agreement_number agreement_number,
1123
         a.contract_title contract_title,
1138
         a.contract_title contract_title,
1124
         a.contract_type contract_type,
1139
         a.contract_type contract_type,
1125
         a.customer_name customer_name,
1140
         a.customer_name customer_name,

+ 21 - 6
src/main/java/com/chinaitop/depot/business/mapper/BusinessDeliveryStorageNoticeMapper.xml

@@ -61,6 +61,7 @@
61
     <result column="change_time" property="changeTime" jdbcType="TIMESTAMP" />
61
     <result column="change_time" property="changeTime" jdbcType="TIMESTAMP" />
62
     <result column="change_content" property="changeContent" jdbcType="VARCHAR" />
62
     <result column="change_content" property="changeContent" jdbcType="VARCHAR" />
63
     <result column="lqss" property="lqss" jdbcType="VARCHAR" />
63
     <result column="lqss" property="lqss" jdbcType="VARCHAR" />
64
+    <result column="agreement_number" property="agreementNumber" jdbcType="VARCHAR" />
64
   </resultMap>
65
   </resultMap>
65
   <sql id="Example_Where_Clause" >
66
   <sql id="Example_Where_Clause" >
66
     <!--
67
     <!--
@@ -144,7 +145,7 @@
144
     warehouse_id, warehouse_name, creater, create_time, create_unit, create_depot, update_time, 
145
     warehouse_id, warehouse_name, creater, create_time, create_unit, create_depot, update_time, 
145
     org_id, in_application, creater_id, root_contract_bid, identification, carNumber, 
146
     org_id, in_application, creater_id, root_contract_bid, identification, carNumber, 
146
     changing, change_record_flag, root_notice_bid, original_notice, original_notice_bid, 
147
     changing, change_record_flag, root_notice_bid, original_notice, original_notice_bid, 
147
-    change_reason, change_time, change_content, lqss
148
+    change_reason, change_time, change_content, lqss,agreement_number
148
   </sql>
149
   </sql>
149
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" >
150
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" >
150
     <!--
151
     <!--
@@ -219,7 +220,7 @@
219
       root_contract_bid, identification, carNumber, 
220
       root_contract_bid, identification, carNumber, 
220
        changing, change_record_flag, 
221
        changing, change_record_flag, 
221
       root_notice_bid, original_notice, original_notice_bid, 
222
       root_notice_bid, original_notice, original_notice_bid, 
222
-      change_reason, change_time, change_content, lqss
223
+      change_reason, change_time, change_content, lqss,agreement_number
223
       )
224
       )
224
     values (#{id,jdbcType=INTEGER}, #{billType,jdbcType=VARCHAR}, #{billTypeId,jdbcType=INTEGER}, 
225
     values (#{id,jdbcType=INTEGER}, #{billType,jdbcType=VARCHAR}, #{billTypeId,jdbcType=INTEGER}, 
225
       #{billNumber,jdbcType=VARCHAR}, #{shipingCount,jdbcType=VARCHAR}, #{finishedCount,jdbcType=VARCHAR}, 
226
       #{billNumber,jdbcType=VARCHAR}, #{shipingCount,jdbcType=VARCHAR}, #{finishedCount,jdbcType=VARCHAR}, 
@@ -239,7 +240,7 @@
239
        #{changing,jdbcType=VARCHAR}, #{changeRecordFlag,jdbcType=VARCHAR}, 
240
        #{changing,jdbcType=VARCHAR}, #{changeRecordFlag,jdbcType=VARCHAR}, 
240
       #{rootNoticeBid,jdbcType=INTEGER}, #{originalNotice,jdbcType=VARCHAR}, #{originalNoticeBid,jdbcType=INTEGER}, 
241
       #{rootNoticeBid,jdbcType=INTEGER}, #{originalNotice,jdbcType=VARCHAR}, #{originalNoticeBid,jdbcType=INTEGER}, 
241
       #{changeReason,jdbcType=VARCHAR}, #{changeTime,jdbcType=TIMESTAMP}, #{changeContent,jdbcType=VARCHAR}, #{lqss,jdbcType=VARCHAR}
242
       #{changeReason,jdbcType=VARCHAR}, #{changeTime,jdbcType=TIMESTAMP}, #{changeContent,jdbcType=VARCHAR}, #{lqss,jdbcType=VARCHAR}
242
-      )
243
+      , #{agreementNumber,jdbcType=VARCHAR})
243
   </insert>
244
   </insert>
244
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
245
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
245
     <!--
246
     <!--
@@ -411,6 +412,9 @@
411
       <if test="lqss != null" >
412
       <if test="lqss != null" >
412
         lqss,
413
         lqss,
413
       </if>
414
       </if>
415
+      <if test="agreementNumber != null" >
416
+        agreement_number,
417
+      </if>
414
     </trim>
418
     </trim>
415
     <trim prefix="values (" suffix=")" suffixOverrides="," >
419
     <trim prefix="values (" suffix=")" suffixOverrides="," >
416
       <if test="id != null" >
420
       <if test="id != null" >
@@ -575,6 +579,9 @@
575
       <if test="lqss != null" >
579
       <if test="lqss != null" >
576
         #{lqss,jdbcType=VARCHAR},
580
         #{lqss,jdbcType=VARCHAR},
577
       </if>
581
       </if>
582
+      <if test="agreementNumber != null" >
583
+        #{agreementNumber,jdbcType=VARCHAR},
584
+      </if>
578
     </trim>
585
     </trim>
579
   </insert>
586
   </insert>
580
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" resultType="java.lang.Integer" >
587
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" resultType="java.lang.Integer" >
@@ -758,6 +765,9 @@
758
       <if test="record.lqss != null" >
765
       <if test="record.lqss != null" >
759
         lqss = #{record.lqss,jdbcType=VARCHAR},
766
         lqss = #{record.lqss,jdbcType=VARCHAR},
760
       </if>
767
       </if>
768
+      <if test="record.agreementNumber != null" >
769
+        agreement_number = #{record.agreementNumber,jdbcType=VARCHAR},
770
+      </if>
761
     </set>
771
     </set>
762
     <if test="_parameter != null" >
772
     <if test="_parameter != null" >
763
       <include refid="Update_By_Example_Where_Clause" />
773
       <include refid="Update_By_Example_Where_Clause" />
@@ -823,7 +833,8 @@
823
       change_reason = #{record.changeReason,jdbcType=VARCHAR},
833
       change_reason = #{record.changeReason,jdbcType=VARCHAR},
824
       change_time = #{record.changeTime,jdbcType=TIMESTAMP},
834
       change_time = #{record.changeTime,jdbcType=TIMESTAMP},
825
       change_content = #{record.changeContent,jdbcType=VARCHAR},
835
       change_content = #{record.changeContent,jdbcType=VARCHAR},
826
-      lqss = #{record.lqss,jdbcType=VARCHAR}
836
+      lqss = #{record.lqss,jdbcType=VARCHAR},
837
+      agreement_number = #{record.agreementNumber,jdbcType=VARCHAR}
827
     <if test="_parameter != null" >
838
     <if test="_parameter != null" >
828
       <include refid="Update_By_Example_Where_Clause" />
839
       <include refid="Update_By_Example_Where_Clause" />
829
     </if>
840
     </if>
@@ -995,6 +1006,9 @@
995
       <if test="lqss != null" >
1006
       <if test="lqss != null" >
996
         lqss = #{lqss,jdbcType=VARCHAR},
1007
         lqss = #{lqss,jdbcType=VARCHAR},
997
       </if>
1008
       </if>
1009
+      <if test="agreementNumber != null" >
1010
+        agreement_number = #{agreementNumber,jdbcType=VARCHAR},
1011
+      </if>
998
     </set>
1012
     </set>
999
     where id = #{id,jdbcType=INTEGER}
1013
     where id = #{id,jdbcType=INTEGER}
1000
   </update>
1014
   </update>
@@ -1057,7 +1071,8 @@
1057
       change_reason = #{changeReason,jdbcType=VARCHAR},
1071
       change_reason = #{changeReason,jdbcType=VARCHAR},
1058
       change_time = #{changeTime,jdbcType=TIMESTAMP},
1072
       change_time = #{changeTime,jdbcType=TIMESTAMP},
1059
       change_content = #{changeContent,jdbcType=VARCHAR},
1073
       change_content = #{changeContent,jdbcType=VARCHAR},
1060
-      lqss = #{lqss,jdbcType=VARCHAR}
1074
+      lqss = #{lqss,jdbcType=VARCHAR},
1075
+      agreement_number = #{agreementNumber,jdbcType=VARCHAR}
1061
     where id = #{id,jdbcType=INTEGER}
1076
     where id = #{id,jdbcType=INTEGER}
1062
   </update>
1077
   </update>
1063
   
1078
   
@@ -1072,7 +1087,7 @@
1072
  
1087
  
1073
   <select id="getApprovalList" resultMap="approvalResultMap" parameterType="java.util.Map" >
1088
   <select id="getApprovalList" resultMap="approvalResultMap" parameterType="java.util.Map" >
1074
     select
1089
     select
1075
-        a.id id, a.bill_type bill_type, a.bill_number bill_number,
1090
+        a.id id, a.bill_type bill_type, a.bill_number bill_number,a.agreement_number agreement_number,
1076
         a.contract contract,
1091
         a.contract contract,
1077
         a.plan_number plan_number,
1092
         a.plan_number plan_number,
1078
         a.delivery_customer delivery_customer,
1093
         a.delivery_customer delivery_customer,

+ 22 - 7
src/main/java/com/chinaitop/depot/business/mapper/BusinessPlanMapper.xml

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

+ 12 - 1
src/main/java/com/chinaitop/depot/business/model/BusinessContract.java

@@ -3,7 +3,18 @@ package com.chinaitop.depot.business.model;
3
 import java.util.Date;
3
 import java.util.Date;
4
 
4
 
5
 public class BusinessContract {
5
 public class BusinessContract {
6
-    /**
6
+	
7
+	private String agreementNumber;//协议编号
8
+	
9
+    public String getAgreementNumber() {
10
+		return agreementNumber;
11
+	}
12
+
13
+	public void setAgreementNumber(String agreementNumber) {
14
+		this.agreementNumber = agreementNumber;
15
+	}
16
+
17
+	/**
7
      * This field was generated by MyBatis Generator.
18
      * This field was generated by MyBatis Generator.
8
      * This field corresponds to the database column business_contract.id
19
      * This field corresponds to the database column business_contract.id
9
      *
20
      *

+ 10 - 0
src/main/java/com/chinaitop/depot/business/model/BusinessDeliveryStorageNotice.java

@@ -4,6 +4,16 @@ import java.util.Date;
4
 
4
 
5
 public class BusinessDeliveryStorageNotice {
5
 public class BusinessDeliveryStorageNotice {
6
 	
6
 	
7
+    private String agreementNumber;//协议编号
8
+	
9
+    public String getAgreementNumber() {
10
+		return agreementNumber;
11
+	}
12
+
13
+	public void setAgreementNumber(String agreementNumber) {
14
+		this.agreementNumber = agreementNumber;
15
+	}
16
+	
7
 	
17
 	
8
 	//业务字段(用于通知单新增)
18
 	//业务字段(用于通知单新增)
9
     private Integer grainProducingArea;
19
     private Integer grainProducingArea;

+ 10 - 0
src/main/java/com/chinaitop/depot/business/model/BusinessPlan.java

@@ -4,6 +4,16 @@ import java.util.Date;
4
 
4
 
5
 public class BusinessPlan {
5
 public class BusinessPlan {
6
 	
6
 	
7
+    private String agreementNumber;//协议编号
8
+	
9
+    public String getAgreementNumber() {
10
+		return agreementNumber;
11
+	}
12
+
13
+	public void setAgreementNumber(String agreementNumber) {
14
+		this.agreementNumber = agreementNumber;
15
+	}
16
+	
7
 	
17
 	
8
 	//业务字段
18
 	//业务字段
9
     private String grainAttributeByfirst; //省平台展示粮油性质
19
     private String grainAttributeByfirst; //省平台展示粮油性质