Selaa lähdekoodia

增加协议号和入库类型字段

gaodd 2 vuotta sitten
vanhempi
commit
04f042d5e3

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

@@ -64,7 +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 68
   </resultMap>
69 69
   <sql id="Example_Where_Clause" >
70 70
     <!--
@@ -149,7 +149,7 @@
149 149
     change_reason, change_time, change_content, changing, plan_bid, audit_state, process_instance_id, 
150 150
     process_definition_id, agree_time, create_man, creater, create_time, create_unit, 
151 151
     create_depot, update_time, org_id, in_application, creater_id, identification, updatetime, 
152
-    qddd, lybzj, khqyr, bfkhh, bfzh,agreement_number
152
+    qddd, lybzj, khqyr, bfkhh, bfzh
153 153
   </sql>
154 154
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessContractExample" >
155 155
     <!--
@@ -226,7 +226,7 @@
226 226
       update_time, org_id, in_application, 
227 227
       creater_id, identification, updatetime, 
228 228
       qddd, lybzj, khqyr, 
229
-      bfkhh, bfzh,agreement_number)
229
+      bfkhh, bfzh)
230 230
     values (#{id,jdbcType=INTEGER}, #{contractNumber,jdbcType=VARCHAR}, #{contractTitle,jdbcType=VARCHAR}, 
231 231
       #{customerId,jdbcType=VARCHAR}, #{customerBid,jdbcType=INTEGER}, #{customerNumber,jdbcType=VARCHAR}, 
232 232
       #{customerName,jdbcType=VARCHAR}, #{grainQuantity,jdbcType=VARCHAR}, #{moneyQuantity,jdbcType=VARCHAR}, 
@@ -246,7 +246,7 @@
246 246
       #{updateTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{inApplication,jdbcType=INTEGER}, 
247 247
       #{createrId,jdbcType=INTEGER}, #{identification,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
248 248
       #{qddd,jdbcType=VARCHAR}, #{lybzj,jdbcType=VARCHAR}, #{khqyr,jdbcType=VARCHAR}, 
249
-      #{bfkhh,jdbcType=VARCHAR}, #{bfzh,jdbcType=VARCHAR},#{agreementNumber,jdbcType=VARCHAR})
249
+      #{bfkhh,jdbcType=VARCHAR}, #{bfzh,jdbcType=VARCHAR})
250 250
   </insert>
251 251
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessContract" >
252 252
     <!--
@@ -427,9 +427,7 @@
427 427
       <if test="bfzh != null" >
428 428
         bfzh,
429 429
       </if>
430
-      <if test="agreementNumber != null" >
431
-        agreement_number,
432
-      </if>
430
+      
433 431
     </trim>
434 432
     <trim prefix="values (" suffix=")" suffixOverrides="," >
435 433
       <if test="id != null" >
@@ -603,9 +601,7 @@
603 601
       <if test="bfzh != null" >
604 602
         #{bfzh,jdbcType=VARCHAR},
605 603
       </if>
606
-      <if test="agreementNumber != null" >
607
-        #{agreementNumber,jdbcType=VARCHAR},
608
-      </if>
604
+      
609 605
     </trim>
610 606
   </insert>
611 607
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessContractExample" resultType="java.lang.Integer" >
@@ -798,9 +794,7 @@
798 794
       <if test="record.bfzh != null" >
799 795
         bfzh = #{record.bfzh,jdbcType=VARCHAR},
800 796
       </if>
801
-      <if test="record.agreementNumber != null" >
802
-        agreement_number = #{record.agreementNumber,jdbcType=VARCHAR},
803
-      </if>
797
+      
804 798
     </set>
805 799
     <if test="_parameter != null" >
806 800
       <include refid="Update_By_Example_Where_Clause" />
@@ -869,8 +863,8 @@
869 863
       lybzj = #{record.lybzj,jdbcType=VARCHAR},
870 864
       khqyr = #{record.khqyr,jdbcType=VARCHAR},
871 865
       bfkhh = #{record.bfkhh,jdbcType=VARCHAR},
872
-      bfzh = #{record.bfzh,jdbcType=VARCHAR},
873
-      agreement_number = #{record.agreementNumber,jdbcType=VARCHAR}
866
+      bfzh = #{record.bfzh,jdbcType=VARCHAR}
867
+      
874 868
     <if test="_parameter != null" >
875 869
       <include refid="Update_By_Example_Where_Clause" />
876 870
     </if>
@@ -1051,9 +1045,7 @@
1051 1045
       <if test="bfzh != null" >
1052 1046
         bfzh = #{bfzh,jdbcType=VARCHAR},
1053 1047
       </if>
1054
-      <if test="agreementNumber != null" >
1055
-        agreement_number = #{agreementNumber,jdbcType=VARCHAR},
1056
-      </if>
1048
+      
1057 1049
     </set>
1058 1050
     where id = #{id,jdbcType=INTEGER}
1059 1051
   </update>
@@ -1119,8 +1111,8 @@
1119 1111
       lybzj = #{lybzj,jdbcType=VARCHAR},
1120 1112
       khqyr = #{khqyr,jdbcType=VARCHAR},
1121 1113
       bfkhh = #{bfkhh,jdbcType=VARCHAR},
1122
-      bfzh = #{bfzh,jdbcType=VARCHAR},
1123
-      agreement_number = #{agreementNumber,jdbcType=VARCHAR}
1114
+      bfzh = #{bfzh,jdbcType=VARCHAR}
1115
+      
1124 1116
     where id = #{id,jdbcType=INTEGER}
1125 1117
   </update>
1126 1118
   
@@ -1134,7 +1126,7 @@
1134 1126
  
1135 1127
   <select id="getApprovalList" resultMap="approvalResultMap" parameterType="java.util.Map" >
1136 1128
     select
1137
-        a.id id, a.contract_number contract_number, a.plan_number plan_number,a.agreement_number agreement_number,
1129
+        a.id id, a.contract_number contract_number, a.plan_number plan_number,
1138 1130
         a.contract_title contract_title,
1139 1131
         a.contract_type contract_type,
1140 1132
         a.customer_name customer_name,

+ 13 - 22
src/main/java/com/chinaitop/depot/business/mapper/BusinessDeliveryStorageNoticeMapper.xml

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

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

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

+ 34 - 5
src/main/java/com/chinaitop/depot/business/mapper/BusinessStoreWareDetailMapper.xml

@@ -29,6 +29,8 @@
29 29
     <result column="out_detail_total_price" property="outDetailTotalPrice" jdbcType="VARCHAR" />
30 30
     <result column="out_remaining_number" property="outRemainingNumber" jdbcType="VARCHAR" />
31 31
     <result column="jstzd_id" property="jstzdId" jdbcType="VARCHAR" />
32
+    <result column="agreement_number" property="agreementNumber" jdbcType="VARCHAR" />
33
+    <result column="incoming_type" property="incomingType" jdbcType="INTEGER" />
32 34
   </resultMap>
33 35
   <sql id="Example_Where_Clause" >
34 36
     <where >
@@ -92,7 +94,7 @@
92 94
     id, zid, type, house_id, house_name, warehouse_id, warehouse_name, create_time, org_id, 
93 95
     grain_kind, grain_detail_kind, grain_grade, grain_attribute, grain_annual, grain_producing_area, 
94 96
     in_price, in_count, in_detail_total_price, input_time, state, productive_year, remaining_number, 
95
-    out_price, out_count, out_detail_total_price, out_remaining_number,jstzd_id
97
+    out_price, out_count, out_detail_total_price, out_remaining_number,jstzd_id,agreement_number,incoming_type
96 98
   </sql>
97 99
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" >
98 100
     select
@@ -133,7 +135,7 @@
133 135
       in_price, in_count, in_detail_total_price, 
134 136
       input_time, state, productive_year, 
135 137
       remaining_number, out_price, out_count, 
136
-      out_detail_total_price, out_remaining_number,jstzd_id
138
+      out_detail_total_price, out_remaining_number,jstzd_id,agreement_number,incoming_type
137 139
       )
138 140
     values (#{id,jdbcType=INTEGER}, #{zid,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, 
139 141
       #{houseId,jdbcType=INTEGER}, #{houseName,jdbcType=VARCHAR}, #{warehouseId,jdbcType=INTEGER}, 
@@ -144,7 +146,7 @@
144 146
       #{inputTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}, #{productiveYear,jdbcType=INTEGER}, 
145 147
       #{remainingNumber,jdbcType=VARCHAR}, #{outPrice,jdbcType=VARCHAR}, #{outCount,jdbcType=VARCHAR}, 
146 148
       #{outDetailTotalPrice,jdbcType=VARCHAR}, #{outRemainingNumber,jdbcType=VARCHAR},#{jstzdId,jdbcType=VARCHAR}
147
-      )
149
+      ,#{agreementNumber,jdbcType=VARCHAR},#{incomingType,jdbcType=INTEGER})
148 150
   </insert>
149 151
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
150 152
     insert into business_store_ware_detail
@@ -230,6 +232,12 @@
230 232
       <if test="jstzdId != null" >
231 233
         jstzd_id,
232 234
       </if>
235
+      <if test="agreementNumber != null" >
236
+        agreement_number,
237
+      </if>
238
+      <if test="incomingType != null" >
239
+        incoming_type,
240
+      </if>
233 241
     </trim>
234 242
     <trim prefix="values (" suffix=")" suffixOverrides="," >
235 243
       <if test="id != null" >
@@ -313,6 +321,12 @@
313 321
       <if test="jstzdId != null" >
314 322
         #{jstzdId,jdbcType=VARCHAR},
315 323
       </if>
324
+      <if test="agreementNumber  != null" >
325
+        #{agreementNumber,jdbcType=VARCHAR},
326
+      </if>
327
+      <if test="incomingType != null" >
328
+        #{incomingType,jdbcType=INTEGER},
329
+      </if>
316 330
     </trim>
317 331
   </insert>
318 332
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" resultType="java.lang.Integer" >
@@ -405,6 +419,12 @@
405 419
       <if test="record.jstzdId != null" >
406 420
         jstzd_id = #{record.jstzdId,jdbcType=VARCHAR},
407 421
       </if>
422
+      <if test="record.agreementNumber!= null" >
423
+        agreement_number = #{record.agreementNumber ,jdbcType=VARCHAR},
424
+      </if>
425
+      <if test="record.incomingType != null" >
426
+        incoming_type = #{record.incomingType,jdbcType=INTEGER},
427
+      </if>
408 428
     </set>
409 429
     <if test="_parameter != null" >
410 430
       <include refid="Update_By_Example_Where_Clause" />
@@ -438,7 +458,8 @@
438 458
       out_count = #{record.outCount,jdbcType=VARCHAR},
439 459
       out_detail_total_price = #{record.outDetailTotalPrice,jdbcType=VARCHAR},
440 460
       out_remaining_number = #{record.outRemainingNumber,jdbcType=VARCHAR},
441
-      jstzd_id = #{record.jstzdId,jdbcType=VARCHAR}
461
+      jstzd_id = #{record.jstzdId,jdbcType=VARCHAR},agreement_number = #{record.agreementNumber,jdbcType=VARCHAR},
462
+      incoming_type = #{record.incomingType,jdbcType=INTEGER}
442 463
     <if test="_parameter != null" >
443 464
       <include refid="Update_By_Example_Where_Clause" />
444 465
     </if>
@@ -524,6 +545,12 @@
524 545
       <if test="jstzdId != null" >
525 546
         jstzd_id = #{jstzdId,jdbcType=VARCHAR},
526 547
       </if>
548
+      <if test="agreementNumber  != null" >
549
+        agreement_number = #{agreementNumber,jdbcType=VARCHAR},
550
+      </if>
551
+      <if test="incomingType != null" >
552
+        incoming_type = #{incomingType,jdbcType=INTEGER},
553
+      </if>
527 554
     </set>
528 555
     where id = #{id,jdbcType=INTEGER}
529 556
   </update>
@@ -554,7 +581,9 @@
554 581
       out_count = #{outCount,jdbcType=VARCHAR},
555 582
       out_detail_total_price = #{outDetailTotalPrice,jdbcType=VARCHAR},
556 583
       out_remaining_number = #{outRemainingNumber,jdbcType=VARCHAR},
557
-      jstzd_id = #{jstzdId,jdbcType=VARCHAR}
584
+      jstzd_id = #{jstzdId,jdbcType=VARCHAR},
585
+      agreement_number = #{agreementNumber,jdbcType=VARCHAR},
586
+      incoming_type = #{incomingType,jdbcType=INTEGER}
558 587
     where id = #{id,jdbcType=INTEGER}
559 588
   </update>
560 589
   <!-- 通过计划ID获取计划子表数据的已使用数量 -->

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

@@ -4,7 +4,7 @@ import java.util.Date;
4 4
 
5 5
 public class BusinessContract {
6 6
 	
7
-	private String agreementNumber;//协议编号
7
+	/*private String agreementNumber;//协议编号
8 8
 	
9 9
     public String getAgreementNumber() {
10 10
 		return agreementNumber;
@@ -12,7 +12,7 @@ public class BusinessContract {
12 12
 
13 13
 	public void setAgreementNumber(String agreementNumber) {
14 14
 		this.agreementNumber = agreementNumber;
15
-	}
15
+	}*/
16 16
 
17 17
 	/**
18 18
      * This field was generated by MyBatis Generator.

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

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

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

@@ -4,16 +4,6 @@ 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
-	
17 7
 	
18 8
 	//业务字段
19 9
     private String grainAttributeByfirst; //省平台展示粮油性质

+ 21 - 0
src/main/java/com/chinaitop/depot/business/model/BusinessStoreWareDetail.java

@@ -5,6 +5,27 @@ import java.util.Date;
5 5
 import com.fasterxml.jackson.annotation.JsonFormat;
6 6
 
7 7
 public class BusinessStoreWareDetail {
8
+	
9
+	 private String agreementNumber;//协议编号
10
+	 private Integer incomingType;//入库类型
11
+	 
12
+		
13
+	 public Integer getIncomingType() {
14
+		return incomingType;
15
+	}
16
+
17
+	public void setIncomingType(Integer incomingType) {
18
+		this.incomingType = incomingType;
19
+	}
20
+
21
+	public String getAgreementNumber() {
22
+		return agreementNumber;
23
+	 }
24
+
25
+	 public void setAgreementNumber(String agreementNumber) {
26
+		this.agreementNumber = agreementNumber;
27
+	 }
28
+		
8 29
     private Integer id;
9 30
 
10 31
     private Integer zid;