Преглед изворни кода

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

gaodd пре 2 година
родитељ
комит
04f042d5e3

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

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

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

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

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

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

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

@@ -29,6 +29,8 @@
29
     <result column="out_detail_total_price" property="outDetailTotalPrice" jdbcType="VARCHAR" />
29
     <result column="out_detail_total_price" property="outDetailTotalPrice" jdbcType="VARCHAR" />
30
     <result column="out_remaining_number" property="outRemainingNumber" jdbcType="VARCHAR" />
30
     <result column="out_remaining_number" property="outRemainingNumber" jdbcType="VARCHAR" />
31
     <result column="jstzd_id" property="jstzdId" jdbcType="VARCHAR" />
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
   </resultMap>
34
   </resultMap>
33
   <sql id="Example_Where_Clause" >
35
   <sql id="Example_Where_Clause" >
34
     <where >
36
     <where >
@@ -92,7 +94,7 @@
92
     id, zid, type, house_id, house_name, warehouse_id, warehouse_name, create_time, org_id, 
94
     id, zid, type, house_id, house_name, warehouse_id, warehouse_name, create_time, org_id, 
93
     grain_kind, grain_detail_kind, grain_grade, grain_attribute, grain_annual, grain_producing_area, 
95
     grain_kind, grain_detail_kind, grain_grade, grain_attribute, grain_annual, grain_producing_area, 
94
     in_price, in_count, in_detail_total_price, input_time, state, productive_year, remaining_number, 
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
   </sql>
98
   </sql>
97
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" >
99
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" >
98
     select
100
     select
@@ -133,7 +135,7 @@
133
       in_price, in_count, in_detail_total_price, 
135
       in_price, in_count, in_detail_total_price, 
134
       input_time, state, productive_year, 
136
       input_time, state, productive_year, 
135
       remaining_number, out_price, out_count, 
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
     values (#{id,jdbcType=INTEGER}, #{zid,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, 
140
     values (#{id,jdbcType=INTEGER}, #{zid,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, 
139
       #{houseId,jdbcType=INTEGER}, #{houseName,jdbcType=VARCHAR}, #{warehouseId,jdbcType=INTEGER}, 
141
       #{houseId,jdbcType=INTEGER}, #{houseName,jdbcType=VARCHAR}, #{warehouseId,jdbcType=INTEGER}, 
@@ -144,7 +146,7 @@
144
       #{inputTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}, #{productiveYear,jdbcType=INTEGER}, 
146
       #{inputTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}, #{productiveYear,jdbcType=INTEGER}, 
145
       #{remainingNumber,jdbcType=VARCHAR}, #{outPrice,jdbcType=VARCHAR}, #{outCount,jdbcType=VARCHAR}, 
147
       #{remainingNumber,jdbcType=VARCHAR}, #{outPrice,jdbcType=VARCHAR}, #{outCount,jdbcType=VARCHAR}, 
146
       #{outDetailTotalPrice,jdbcType=VARCHAR}, #{outRemainingNumber,jdbcType=VARCHAR},#{jstzdId,jdbcType=VARCHAR}
148
       #{outDetailTotalPrice,jdbcType=VARCHAR}, #{outRemainingNumber,jdbcType=VARCHAR},#{jstzdId,jdbcType=VARCHAR}
147
-      )
149
+      ,#{agreementNumber,jdbcType=VARCHAR},#{incomingType,jdbcType=INTEGER})
148
   </insert>
150
   </insert>
149
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
151
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetail" >
150
     insert into business_store_ware_detail
152
     insert into business_store_ware_detail
@@ -230,6 +232,12 @@
230
       <if test="jstzdId != null" >
232
       <if test="jstzdId != null" >
231
         jstzd_id,
233
         jstzd_id,
232
       </if>
234
       </if>
235
+      <if test="agreementNumber != null" >
236
+        agreement_number,
237
+      </if>
238
+      <if test="incomingType != null" >
239
+        incoming_type,
240
+      </if>
233
     </trim>
241
     </trim>
234
     <trim prefix="values (" suffix=")" suffixOverrides="," >
242
     <trim prefix="values (" suffix=")" suffixOverrides="," >
235
       <if test="id != null" >
243
       <if test="id != null" >
@@ -313,6 +321,12 @@
313
       <if test="jstzdId != null" >
321
       <if test="jstzdId != null" >
314
         #{jstzdId,jdbcType=VARCHAR},
322
         #{jstzdId,jdbcType=VARCHAR},
315
       </if>
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
     </trim>
330
     </trim>
317
   </insert>
331
   </insert>
318
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" resultType="java.lang.Integer" >
332
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessStoreWareDetailExample" resultType="java.lang.Integer" >
@@ -405,6 +419,12 @@
405
       <if test="record.jstzdId != null" >
419
       <if test="record.jstzdId != null" >
406
         jstzd_id = #{record.jstzdId,jdbcType=VARCHAR},
420
         jstzd_id = #{record.jstzdId,jdbcType=VARCHAR},
407
       </if>
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
     </set>
428
     </set>
409
     <if test="_parameter != null" >
429
     <if test="_parameter != null" >
410
       <include refid="Update_By_Example_Where_Clause" />
430
       <include refid="Update_By_Example_Where_Clause" />
@@ -438,7 +458,8 @@
438
       out_count = #{record.outCount,jdbcType=VARCHAR},
458
       out_count = #{record.outCount,jdbcType=VARCHAR},
439
       out_detail_total_price = #{record.outDetailTotalPrice,jdbcType=VARCHAR},
459
       out_detail_total_price = #{record.outDetailTotalPrice,jdbcType=VARCHAR},
440
       out_remaining_number = #{record.outRemainingNumber,jdbcType=VARCHAR},
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
     <if test="_parameter != null" >
463
     <if test="_parameter != null" >
443
       <include refid="Update_By_Example_Where_Clause" />
464
       <include refid="Update_By_Example_Where_Clause" />
444
     </if>
465
     </if>
@@ -524,6 +545,12 @@
524
       <if test="jstzdId != null" >
545
       <if test="jstzdId != null" >
525
         jstzd_id = #{jstzdId,jdbcType=VARCHAR},
546
         jstzd_id = #{jstzdId,jdbcType=VARCHAR},
526
       </if>
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
     </set>
554
     </set>
528
     where id = #{id,jdbcType=INTEGER}
555
     where id = #{id,jdbcType=INTEGER}
529
   </update>
556
   </update>
@@ -554,7 +581,9 @@
554
       out_count = #{outCount,jdbcType=VARCHAR},
581
       out_count = #{outCount,jdbcType=VARCHAR},
555
       out_detail_total_price = #{outDetailTotalPrice,jdbcType=VARCHAR},
582
       out_detail_total_price = #{outDetailTotalPrice,jdbcType=VARCHAR},
556
       out_remaining_number = #{outRemainingNumber,jdbcType=VARCHAR},
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
     where id = #{id,jdbcType=INTEGER}
587
     where id = #{id,jdbcType=INTEGER}
559
   </update>
588
   </update>
560
   <!-- 通过计划ID获取计划子表数据的已使用数量 -->
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
 public class BusinessContract {
5
 public class BusinessContract {
6
 	
6
 	
7
-	private String agreementNumber;//协议编号
7
+	/*private String agreementNumber;//协议编号
8
 	
8
 	
9
     public String getAgreementNumber() {
9
     public String getAgreementNumber() {
10
 		return agreementNumber;
10
 		return agreementNumber;
@@ -12,7 +12,7 @@ public class BusinessContract {
12
 
12
 
13
 	public void setAgreementNumber(String agreementNumber) {
13
 	public void setAgreementNumber(String agreementNumber) {
14
 		this.agreementNumber = agreementNumber;
14
 		this.agreementNumber = agreementNumber;
15
-	}
15
+	}*/
16
 
16
 
17
 	/**
17
 	/**
18
      * This field was generated by MyBatis Generator.
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
 public class BusinessDeliveryStorageNotice {
5
 public class BusinessDeliveryStorageNotice {
6
 	
6
 	
7
-    private String agreementNumber;//协议编号
7
+    /*private String agreementNumber;//协议编号
8
 	
8
 	
9
     public String getAgreementNumber() {
9
     public String getAgreementNumber() {
10
 		return agreementNumber;
10
 		return agreementNumber;
@@ -12,7 +12,7 @@ public class BusinessDeliveryStorageNotice {
12
 
12
 
13
 	public void setAgreementNumber(String agreementNumber) {
13
 	public void setAgreementNumber(String agreementNumber) {
14
 		this.agreementNumber = agreementNumber;
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
 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
-	
17
 	
7
 	
18
 	//业务字段
8
 	//业务字段
19
     private String grainAttributeByfirst; //省平台展示粮油性质
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
 import com.fasterxml.jackson.annotation.JsonFormat;
5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
 
6
 
7
 public class BusinessStoreWareDetail {
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
     private Integer id;
29
     private Integer id;
9
 
30
 
10
     private Integer zid;
31
     private Integer zid;