fanxw преди 9 месеца
родител
ревизия
f922cfc6de

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

@@ -2,11 +2,6 @@
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3 3
 <mapper namespace="com.chinaitop.depot.business.mapper.BusinessDeliveryStorageNoticeMapper" >
4 4
   <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
5
-    <!--
6
-      WARNING - @mbggenerated
7
-      This element is automatically generated by MyBatis Generator, do not modify.
8
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
9
-    -->
10 5
     <id column="id" property="id" jdbcType="INTEGER" />
11 6
     <result column="bill_type" property="billType" jdbcType="VARCHAR" />
12 7
     <result column="bill_type_id" property="billTypeId" jdbcType="INTEGER" />
@@ -61,14 +56,10 @@
61 56
     <result column="change_time" property="changeTime" jdbcType="TIMESTAMP" />
62 57
     <result column="change_content" property="changeContent" jdbcType="VARCHAR" />
63 58
     <result column="lqss" property="lqss" jdbcType="VARCHAR" />
59
+    <result column="yjssl" property="yjssl" jdbcType="DECIMAL" />
64 60
     
65 61
   </resultMap>
66 62
   <sql id="Example_Where_Clause" >
67
-    <!--
68
-      WARNING - @mbggenerated
69
-      This element is automatically generated by MyBatis Generator, do not modify.
70
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
71
-    -->
72 63
     <where >
73 64
       <foreach collection="oredCriteria" item="criteria" separator="or" >
74 65
         <if test="criteria.valid" >
@@ -98,11 +89,6 @@
98 89
     </where>
99 90
   </sql>
100 91
   <sql id="Update_By_Example_Where_Clause" >
101
-    <!--
102
-      WARNING - @mbggenerated
103
-      This element is automatically generated by MyBatis Generator, do not modify.
104
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
105
-    -->
106 92
     <where >
107 93
       <foreach collection="example.oredCriteria" item="criteria" separator="or" >
108 94
         <if test="criteria.valid" >
@@ -132,11 +118,6 @@
132 118
     </where>
133 119
   </sql>
134 120
   <sql id="Base_Column_List" >
135
-    <!--
136
-      WARNING - @mbggenerated
137
-      This element is automatically generated by MyBatis Generator, do not modify.
138
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
139
-    -->
140 121
     id, bill_type, bill_type_id, bill_number, shiping_count, finished_count, received_money, 
141 122
     customer_bid, customer_number, mobile, delivery_customer, contract, contract_bid, 
142 123
     plan_number, plan_bid, bill_memo, grain_price, money_quantity, grain_annual, warehouse, 
@@ -145,14 +126,9 @@
145 126
     warehouse_id, warehouse_name, creater, create_time, create_unit, create_depot, update_time, 
146 127
     org_id, in_application, creater_id, root_contract_bid, identification, carNumber, 
147 128
     changing, change_record_flag, root_notice_bid, original_notice, original_notice_bid, 
148
-    change_reason, change_time, change_content, lqss
129
+    change_reason, change_time, change_content, lqss, yjssl
149 130
   </sql>
150 131
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" >
151
-    <!--
152
-      WARNING - @mbggenerated
153
-      This element is automatically generated by MyBatis Generator, do not modify.
154
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
155
-    -->
156 132
     select
157 133
     <if test="distinct" >
158 134
       distinct
@@ -167,42 +143,22 @@
167 143
     </if>
168 144
   </select>
169 145
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
170
-    <!--
171
-      WARNING - @mbggenerated
172
-      This element is automatically generated by MyBatis Generator, do not modify.
173
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
174
-    -->
175 146
     select 
176 147
     <include refid="Base_Column_List" />
177 148
     from business_delivery_storage_notice
178 149
     where id = #{id,jdbcType=INTEGER}
179 150
   </select>
180 151
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
181
-    <!--
182
-      WARNING - @mbggenerated
183
-      This element is automatically generated by MyBatis Generator, do not modify.
184
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
185
-    -->
186 152
     delete from business_delivery_storage_notice
187 153
     where id = #{id,jdbcType=INTEGER}
188 154
   </delete>
189 155
   <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" >
190
-    <!--
191
-      WARNING - @mbggenerated
192
-      This element is automatically generated by MyBatis Generator, do not modify.
193
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
194
-    -->
195 156
     delete from business_delivery_storage_notice
196 157
     <if test="_parameter != null" >
197 158
       <include refid="Example_Where_Clause" />
198 159
     </if>
199 160
   </delete>
200 161
   <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
201
-    <!--
202
-      WARNING - @mbggenerated
203
-      This element is automatically generated by MyBatis Generator, do not modify.
204
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
205
-    -->
206 162
     insert into business_delivery_storage_notice (id, bill_type, bill_type_id, 
207 163
       bill_number, shiping_count, finished_count, 
208 164
       received_money, customer_bid, customer_number, 
@@ -220,7 +176,7 @@
220 176
       root_contract_bid, identification, carNumber, 
221 177
        changing, change_record_flag, 
222 178
       root_notice_bid, original_notice, original_notice_bid, 
223
-      change_reason, change_time, change_content, lqss
179
+      change_reason, change_time, change_content, lqss, yjssl
224 180
       )
225 181
     values (#{id,jdbcType=INTEGER}, #{billType,jdbcType=VARCHAR}, #{billTypeId,jdbcType=INTEGER}, 
226 182
       #{billNumber,jdbcType=VARCHAR}, #{shipingCount,jdbcType=VARCHAR}, #{finishedCount,jdbcType=VARCHAR}, 
@@ -239,14 +195,10 @@
239 195
       #{rootContractBid,jdbcType=INTEGER}, #{identification,jdbcType=VARCHAR}, #{carnumber,jdbcType=VARCHAR}, 
240 196
        #{changing,jdbcType=VARCHAR}, #{changeRecordFlag,jdbcType=VARCHAR}, 
241 197
       #{rootNoticeBid,jdbcType=INTEGER}, #{originalNotice,jdbcType=VARCHAR}, #{originalNoticeBid,jdbcType=INTEGER}, 
242
-      #{changeReason,jdbcType=VARCHAR}, #{changeTime,jdbcType=TIMESTAMP}, #{changeContent,jdbcType=VARCHAR}, #{lqss,jdbcType=VARCHAR})
198
+      #{changeReason,jdbcType=VARCHAR}, #{changeTime,jdbcType=TIMESTAMP}, #{changeContent,jdbcType=VARCHAR}, #{lqss,jdbcType=VARCHAR},
199
+      #{yjssl,jdbcType=DECIMAL})
243 200
   </insert>
244 201
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
245
-    <!--
246
-      WARNING - @mbggenerated
247
-      This element is automatically generated by MyBatis Generator, do not modify.
248
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
249
-    -->
250 202
     insert into business_delivery_storage_notice
251 203
     <trim prefix="(" suffix=")" suffixOverrides="," >
252 204
       <if test="id != null" >
@@ -411,7 +363,9 @@
411 363
       <if test="lqss != null" >
412 364
         lqss,
413 365
       </if>
414
-      
366
+      <if test="yjssl != null">
367
+        yjssl,
368
+      </if>
415 369
     </trim>
416 370
     <trim prefix="values (" suffix=")" suffixOverrides="," >
417 371
       <if test="id != null" >
@@ -576,26 +530,18 @@
576 530
       <if test="lqss != null" >
577 531
         #{lqss,jdbcType=VARCHAR},
578 532
       </if>
579
-      
533
+      <if test="yjssl != null">
534
+        #{yjssl,jdbcType=DECIMAL},
535
+      </if>
580 536
     </trim>
581 537
   </insert>
582 538
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" resultType="java.lang.Integer" >
583
-    <!--
584
-      WARNING - @mbggenerated
585
-      This element is automatically generated by MyBatis Generator, do not modify.
586
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
587
-    -->
588 539
     select count(*) from business_delivery_storage_notice
589 540
     <if test="_parameter != null" >
590 541
       <include refid="Example_Where_Clause" />
591 542
     </if>
592 543
   </select>
593 544
   <update id="updateByExampleSelective" parameterType="map" >
594
-    <!--
595
-      WARNING - @mbggenerated
596
-      This element is automatically generated by MyBatis Generator, do not modify.
597
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
598
-    -->
599 545
     update business_delivery_storage_notice
600 546
     <set >
601 547
       <if test="record.id != null" >
@@ -760,18 +706,15 @@
760 706
       <if test="record.lqss != null" >
761 707
         lqss = #{record.lqss,jdbcType=VARCHAR},
762 708
       </if>
763
-      
709
+      <if test="record.yjssl != null">
710
+        yjssl = #{record.yjssl,jdbcType=DECIMAL},
711
+      </if>
764 712
     </set>
765 713
     <if test="_parameter != null" >
766 714
       <include refid="Update_By_Example_Where_Clause" />
767 715
     </if>
768 716
   </update>
769 717
   <update id="updateByExample" parameterType="map" >
770
-    <!--
771
-      WARNING - @mbggenerated
772
-      This element is automatically generated by MyBatis Generator, do not modify.
773
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
774
-    -->
775 718
     update business_delivery_storage_notice
776 719
     set id = #{record.id,jdbcType=INTEGER},
777 720
       bill_type = #{record.billType,jdbcType=VARCHAR},
@@ -826,18 +769,14 @@
826 769
       change_reason = #{record.changeReason,jdbcType=VARCHAR},
827 770
       change_time = #{record.changeTime,jdbcType=TIMESTAMP},
828 771
       change_content = #{record.changeContent,jdbcType=VARCHAR},
829
-      lqss = #{record.lqss,jdbcType=VARCHAR}
772
+      lqss = #{record.lqss,jdbcType=VARCHAR},
773
+      yjssl = #{record.yjssl,jdbcType=DECIMAL}
830 774
      
831 775
     <if test="_parameter != null" >
832 776
       <include refid="Update_By_Example_Where_Clause" />
833 777
     </if>
834 778
   </update>
835 779
   <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
836
-    <!--
837
-      WARNING - @mbggenerated
838
-      This element is automatically generated by MyBatis Generator, do not modify.
839
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
840
-    -->
841 780
     update business_delivery_storage_notice
842 781
     <set >
843 782
       <if test="billType != null" >
@@ -999,16 +938,13 @@
999 938
       <if test="lqss != null" >
1000 939
         lqss = #{lqss,jdbcType=VARCHAR},
1001 940
       </if>
1002
-      
941
+      <if test="yjssl != null">
942
+        yjssl = #{yjssl,jdbcType=DECIMAL},
943
+      </if>
1003 944
     </set>
1004 945
     where id = #{id,jdbcType=INTEGER}
1005 946
   </update>
1006 947
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
1007
-    <!--
1008
-      WARNING - @mbggenerated
1009
-      This element is automatically generated by MyBatis Generator, do not modify.
1010
-      This element was generated on Tue Aug 25 14:02:58 CST 2020.
1011
-    -->
1012 948
     update business_delivery_storage_notice
1013 949
     set bill_type = #{billType,jdbcType=VARCHAR},
1014 950
       bill_type_id = #{billTypeId,jdbcType=INTEGER},
@@ -1062,7 +998,8 @@
1062 998
       change_reason = #{changeReason,jdbcType=VARCHAR},
1063 999
       change_time = #{changeTime,jdbcType=TIMESTAMP},
1064 1000
       change_content = #{changeContent,jdbcType=VARCHAR},
1065
-      lqss = #{lqss,jdbcType=VARCHAR}
1001
+      lqss = #{lqss,jdbcType=VARCHAR},
1002
+      yjssl = #{yjssl,jdbcType=DECIMAL}
1066 1003
       
1067 1004
     where id = #{id,jdbcType=INTEGER}
1068 1005
   </update>

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

@@ -1,5 +1,6 @@
1 1
 package com.chinaitop.depot.business.model;
2 2
 
3
+import java.math.BigDecimal;
3 4
 import java.util.Date;
4 5
 
5 6
 public class BusinessDeliveryStorageNotice {
@@ -466,6 +467,11 @@ public class BusinessDeliveryStorageNotice {
466 467
     private String lqss;
467 468
 
468 469
     /**
470
+     * 已结算数量(吨)
471
+     */
472
+    private BigDecimal yjssl;
473
+
474
+    /**
469 475
      * This method was generated by MyBatis Generator.
470 476
      * This method returns the value of the database column business_delivery_storage_notice.id
471 477
      *
@@ -1746,4 +1752,20 @@ public class BusinessDeliveryStorageNotice {
1746 1752
     public void setLqss(String lqss) {
1747 1753
         this.lqss = lqss == null ? null : lqss.trim();
1748 1754
     }
1755
+
1756
+    /**
1757
+     * 已结算数量(吨)
1758
+     * @return
1759
+     */
1760
+	public BigDecimal getYjssl() {
1761
+		return yjssl;
1762
+	}
1763
+
1764
+	/**
1765
+	 * 已结算数量(吨)
1766
+	 * @param yjssl
1767
+	 */
1768
+	public void setYjssl(BigDecimal yjssl) {
1769
+		this.yjssl = yjssl;
1770
+	}
1749 1771
 }

+ 2 - 0
src/main/java/com/chinaitop/depot/business/service/impl/BusinessDeliveryStorageNoticeServiceImpl.java

@@ -97,6 +97,8 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
97 97
     public Map<String, Object> add(BusinessDeliveryStorageNotice businessDeliveryStorageNotice, 
98 98
             List<BusinessStoreWareDetail> storeWareDetailList, Integer userId, String name ,Integer orgId,Integer depotInfoOrgId) {
99 99
         Map<String, Object> returnMap = new HashMap<String, Object>();
100
+        //已结算数量为0
101
+        businessDeliveryStorageNotice.setYjssl(new BigDecimal(0));
100 102
         // 没有被变更.
101 103
         businessDeliveryStorageNotice.setChanging("0");
102 104
         // 不是变更数据.