fanxw 9 months ago
parent
commit
f922cfc6de

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

@@ -2,11 +2,6 @@
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
 <mapper namespace="com.chinaitop.depot.business.mapper.BusinessDeliveryStorageNoticeMapper" >
3
 <mapper namespace="com.chinaitop.depot.business.mapper.BusinessDeliveryStorageNoticeMapper" >
4
   <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
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
     <id column="id" property="id" jdbcType="INTEGER" />
5
     <id column="id" property="id" jdbcType="INTEGER" />
11
     <result column="bill_type" property="billType" jdbcType="VARCHAR" />
6
     <result column="bill_type" property="billType" jdbcType="VARCHAR" />
12
     <result column="bill_type_id" property="billTypeId" jdbcType="INTEGER" />
7
     <result column="bill_type_id" property="billTypeId" jdbcType="INTEGER" />
@@ -61,14 +56,10 @@
61
     <result column="change_time" property="changeTime" jdbcType="TIMESTAMP" />
56
     <result column="change_time" property="changeTime" jdbcType="TIMESTAMP" />
62
     <result column="change_content" property="changeContent" jdbcType="VARCHAR" />
57
     <result column="change_content" property="changeContent" jdbcType="VARCHAR" />
63
     <result column="lqss" property="lqss" jdbcType="VARCHAR" />
58
     <result column="lqss" property="lqss" jdbcType="VARCHAR" />
59
+    <result column="yjssl" property="yjssl" jdbcType="DECIMAL" />
64
     
60
     
65
   </resultMap>
61
   </resultMap>
66
   <sql id="Example_Where_Clause" >
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
     <where >
63
     <where >
73
       <foreach collection="oredCriteria" item="criteria" separator="or" >
64
       <foreach collection="oredCriteria" item="criteria" separator="or" >
74
         <if test="criteria.valid" >
65
         <if test="criteria.valid" >
@@ -98,11 +89,6 @@
98
     </where>
89
     </where>
99
   </sql>
90
   </sql>
100
   <sql id="Update_By_Example_Where_Clause" >
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
     <where >
92
     <where >
107
       <foreach collection="example.oredCriteria" item="criteria" separator="or" >
93
       <foreach collection="example.oredCriteria" item="criteria" separator="or" >
108
         <if test="criteria.valid" >
94
         <if test="criteria.valid" >
@@ -132,11 +118,6 @@
132
     </where>
118
     </where>
133
   </sql>
119
   </sql>
134
   <sql id="Base_Column_List" >
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
     id, bill_type, bill_type_id, bill_number, shiping_count, finished_count, received_money, 
121
     id, bill_type, bill_type_id, bill_number, shiping_count, finished_count, received_money, 
141
     customer_bid, customer_number, mobile, delivery_customer, contract, contract_bid, 
122
     customer_bid, customer_number, mobile, delivery_customer, contract, contract_bid, 
142
     plan_number, plan_bid, bill_memo, grain_price, money_quantity, grain_annual, warehouse, 
123
     plan_number, plan_bid, bill_memo, grain_price, money_quantity, grain_annual, warehouse, 
@@ -145,14 +126,9 @@
145
     warehouse_id, warehouse_name, creater, create_time, create_unit, create_depot, update_time, 
126
     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, 
127
     org_id, in_application, creater_id, root_contract_bid, identification, carNumber, 
147
     changing, change_record_flag, root_notice_bid, original_notice, original_notice_bid, 
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
   </sql>
130
   </sql>
150
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" >
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
     select
132
     select
157
     <if test="distinct" >
133
     <if test="distinct" >
158
       distinct
134
       distinct
@@ -167,42 +143,22 @@
167
     </if>
143
     </if>
168
   </select>
144
   </select>
169
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
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
     select 
146
     select 
176
     <include refid="Base_Column_List" />
147
     <include refid="Base_Column_List" />
177
     from business_delivery_storage_notice
148
     from business_delivery_storage_notice
178
     where id = #{id,jdbcType=INTEGER}
149
     where id = #{id,jdbcType=INTEGER}
179
   </select>
150
   </select>
180
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
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
     delete from business_delivery_storage_notice
152
     delete from business_delivery_storage_notice
187
     where id = #{id,jdbcType=INTEGER}
153
     where id = #{id,jdbcType=INTEGER}
188
   </delete>
154
   </delete>
189
   <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" >
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
     delete from business_delivery_storage_notice
156
     delete from business_delivery_storage_notice
196
     <if test="_parameter != null" >
157
     <if test="_parameter != null" >
197
       <include refid="Example_Where_Clause" />
158
       <include refid="Example_Where_Clause" />
198
     </if>
159
     </if>
199
   </delete>
160
   </delete>
200
   <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
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
     insert into business_delivery_storage_notice (id, bill_type, bill_type_id, 
162
     insert into business_delivery_storage_notice (id, bill_type, bill_type_id, 
207
       bill_number, shiping_count, finished_count, 
163
       bill_number, shiping_count, finished_count, 
208
       received_money, customer_bid, customer_number, 
164
       received_money, customer_bid, customer_number, 
@@ -220,7 +176,7 @@
220
       root_contract_bid, identification, carNumber, 
176
       root_contract_bid, identification, carNumber, 
221
        changing, change_record_flag, 
177
        changing, change_record_flag, 
222
       root_notice_bid, original_notice, original_notice_bid, 
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
     values (#{id,jdbcType=INTEGER}, #{billType,jdbcType=VARCHAR}, #{billTypeId,jdbcType=INTEGER}, 
181
     values (#{id,jdbcType=INTEGER}, #{billType,jdbcType=VARCHAR}, #{billTypeId,jdbcType=INTEGER}, 
226
       #{billNumber,jdbcType=VARCHAR}, #{shipingCount,jdbcType=VARCHAR}, #{finishedCount,jdbcType=VARCHAR}, 
182
       #{billNumber,jdbcType=VARCHAR}, #{shipingCount,jdbcType=VARCHAR}, #{finishedCount,jdbcType=VARCHAR}, 
@@ -239,14 +195,10 @@
239
       #{rootContractBid,jdbcType=INTEGER}, #{identification,jdbcType=VARCHAR}, #{carnumber,jdbcType=VARCHAR}, 
195
       #{rootContractBid,jdbcType=INTEGER}, #{identification,jdbcType=VARCHAR}, #{carnumber,jdbcType=VARCHAR}, 
240
        #{changing,jdbcType=VARCHAR}, #{changeRecordFlag,jdbcType=VARCHAR}, 
196
        #{changing,jdbcType=VARCHAR}, #{changeRecordFlag,jdbcType=VARCHAR}, 
241
       #{rootNoticeBid,jdbcType=INTEGER}, #{originalNotice,jdbcType=VARCHAR}, #{originalNoticeBid,jdbcType=INTEGER}, 
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
   </insert>
200
   </insert>
244
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
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
     insert into business_delivery_storage_notice
202
     insert into business_delivery_storage_notice
251
     <trim prefix="(" suffix=")" suffixOverrides="," >
203
     <trim prefix="(" suffix=")" suffixOverrides="," >
252
       <if test="id != null" >
204
       <if test="id != null" >
@@ -411,7 +363,9 @@
411
       <if test="lqss != null" >
363
       <if test="lqss != null" >
412
         lqss,
364
         lqss,
413
       </if>
365
       </if>
414
-      
366
+      <if test="yjssl != null">
367
+        yjssl,
368
+      </if>
415
     </trim>
369
     </trim>
416
     <trim prefix="values (" suffix=")" suffixOverrides="," >
370
     <trim prefix="values (" suffix=")" suffixOverrides="," >
417
       <if test="id != null" >
371
       <if test="id != null" >
@@ -576,26 +530,18 @@
576
       <if test="lqss != null" >
530
       <if test="lqss != null" >
577
         #{lqss,jdbcType=VARCHAR},
531
         #{lqss,jdbcType=VARCHAR},
578
       </if>
532
       </if>
579
-      
533
+      <if test="yjssl != null">
534
+        #{yjssl,jdbcType=DECIMAL},
535
+      </if>
580
     </trim>
536
     </trim>
581
   </insert>
537
   </insert>
582
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample" resultType="java.lang.Integer" >
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
     select count(*) from business_delivery_storage_notice
539
     select count(*) from business_delivery_storage_notice
589
     <if test="_parameter != null" >
540
     <if test="_parameter != null" >
590
       <include refid="Example_Where_Clause" />
541
       <include refid="Example_Where_Clause" />
591
     </if>
542
     </if>
592
   </select>
543
   </select>
593
   <update id="updateByExampleSelective" parameterType="map" >
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
     update business_delivery_storage_notice
545
     update business_delivery_storage_notice
600
     <set >
546
     <set >
601
       <if test="record.id != null" >
547
       <if test="record.id != null" >
@@ -760,18 +706,15 @@
760
       <if test="record.lqss != null" >
706
       <if test="record.lqss != null" >
761
         lqss = #{record.lqss,jdbcType=VARCHAR},
707
         lqss = #{record.lqss,jdbcType=VARCHAR},
762
       </if>
708
       </if>
763
-      
709
+      <if test="record.yjssl != null">
710
+        yjssl = #{record.yjssl,jdbcType=DECIMAL},
711
+      </if>
764
     </set>
712
     </set>
765
     <if test="_parameter != null" >
713
     <if test="_parameter != null" >
766
       <include refid="Update_By_Example_Where_Clause" />
714
       <include refid="Update_By_Example_Where_Clause" />
767
     </if>
715
     </if>
768
   </update>
716
   </update>
769
   <update id="updateByExample" parameterType="map" >
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
     update business_delivery_storage_notice
718
     update business_delivery_storage_notice
776
     set id = #{record.id,jdbcType=INTEGER},
719
     set id = #{record.id,jdbcType=INTEGER},
777
       bill_type = #{record.billType,jdbcType=VARCHAR},
720
       bill_type = #{record.billType,jdbcType=VARCHAR},
@@ -826,18 +769,14 @@
826
       change_reason = #{record.changeReason,jdbcType=VARCHAR},
769
       change_reason = #{record.changeReason,jdbcType=VARCHAR},
827
       change_time = #{record.changeTime,jdbcType=TIMESTAMP},
770
       change_time = #{record.changeTime,jdbcType=TIMESTAMP},
828
       change_content = #{record.changeContent,jdbcType=VARCHAR},
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
     <if test="_parameter != null" >
775
     <if test="_parameter != null" >
832
       <include refid="Update_By_Example_Where_Clause" />
776
       <include refid="Update_By_Example_Where_Clause" />
833
     </if>
777
     </if>
834
   </update>
778
   </update>
835
   <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
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
     update business_delivery_storage_notice
780
     update business_delivery_storage_notice
842
     <set >
781
     <set >
843
       <if test="billType != null" >
782
       <if test="billType != null" >
@@ -999,16 +938,13 @@
999
       <if test="lqss != null" >
938
       <if test="lqss != null" >
1000
         lqss = #{lqss,jdbcType=VARCHAR},
939
         lqss = #{lqss,jdbcType=VARCHAR},
1001
       </if>
940
       </if>
1002
-      
941
+      <if test="yjssl != null">
942
+        yjssl = #{yjssl,jdbcType=DECIMAL},
943
+      </if>
1003
     </set>
944
     </set>
1004
     where id = #{id,jdbcType=INTEGER}
945
     where id = #{id,jdbcType=INTEGER}
1005
   </update>
946
   </update>
1006
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice" >
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
     update business_delivery_storage_notice
948
     update business_delivery_storage_notice
1013
     set bill_type = #{billType,jdbcType=VARCHAR},
949
     set bill_type = #{billType,jdbcType=VARCHAR},
1014
       bill_type_id = #{billTypeId,jdbcType=INTEGER},
950
       bill_type_id = #{billTypeId,jdbcType=INTEGER},
@@ -1062,7 +998,8 @@
1062
       change_reason = #{changeReason,jdbcType=VARCHAR},
998
       change_reason = #{changeReason,jdbcType=VARCHAR},
1063
       change_time = #{changeTime,jdbcType=TIMESTAMP},
999
       change_time = #{changeTime,jdbcType=TIMESTAMP},
1064
       change_content = #{changeContent,jdbcType=VARCHAR},
1000
       change_content = #{changeContent,jdbcType=VARCHAR},
1065
-      lqss = #{lqss,jdbcType=VARCHAR}
1001
+      lqss = #{lqss,jdbcType=VARCHAR},
1002
+      yjssl = #{yjssl,jdbcType=DECIMAL}
1066
       
1003
       
1067
     where id = #{id,jdbcType=INTEGER}
1004
     where id = #{id,jdbcType=INTEGER}
1068
   </update>
1005
   </update>

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

@@ -1,5 +1,6 @@
1
 package com.chinaitop.depot.business.model;
1
 package com.chinaitop.depot.business.model;
2
 
2
 
3
+import java.math.BigDecimal;
3
 import java.util.Date;
4
 import java.util.Date;
4
 
5
 
5
 public class BusinessDeliveryStorageNotice {
6
 public class BusinessDeliveryStorageNotice {
@@ -466,6 +467,11 @@ public class BusinessDeliveryStorageNotice {
466
     private String lqss;
467
     private String lqss;
467
 
468
 
468
     /**
469
     /**
470
+     * 已结算数量(吨)
471
+     */
472
+    private BigDecimal yjssl;
473
+
474
+    /**
469
      * This method was generated by MyBatis Generator.
475
      * This method was generated by MyBatis Generator.
470
      * This method returns the value of the database column business_delivery_storage_notice.id
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
     public void setLqss(String lqss) {
1752
     public void setLqss(String lqss) {
1747
         this.lqss = lqss == null ? null : lqss.trim();
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
     public Map<String, Object> add(BusinessDeliveryStorageNotice businessDeliveryStorageNotice, 
97
     public Map<String, Object> add(BusinessDeliveryStorageNotice businessDeliveryStorageNotice, 
98
             List<BusinessStoreWareDetail> storeWareDetailList, Integer userId, String name ,Integer orgId,Integer depotInfoOrgId) {
98
             List<BusinessStoreWareDetail> storeWareDetailList, Integer userId, String name ,Integer orgId,Integer depotInfoOrgId) {
99
         Map<String, Object> returnMap = new HashMap<String, Object>();
99
         Map<String, Object> returnMap = new HashMap<String, Object>();
100
+        //已结算数量为0
101
+        businessDeliveryStorageNotice.setYjssl(new BigDecimal(0));
100
         // 没有被变更.
102
         // 没有被变更.
101
         businessDeliveryStorageNotice.setChanging("0");
103
         businessDeliveryStorageNotice.setChanging("0");
102
         // 不是变更数据.
104
         // 不是变更数据.