浏览代码

增加协议编号 字段

gaodd 2 年之前
父节点
当前提交
0f4a04f078

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

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

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

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

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

@@ -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,

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

@@ -3,7 +3,18 @@ package com.chinaitop.depot.business.model;
3 3
 import java.util.Date;
4 4
 
5 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 18
      * This field was generated by MyBatis Generator.
8 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 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 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 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 19
     private String grainAttributeByfirst; //省平台展示粮油性质