Просмотр исходного кода

Merge remote-tracking branch 'remotes/origin/dev-1.1' into dev

# Conflicts:
#	pom.xml
#	src/main/resources/bootstrap.yml
ZeroLiYi 1 год назад
Родитель
Сommit
329fef9efe

+ 4 - 0
pom.xml

@@ -153,6 +153,10 @@
153 153
 		    <artifactId>fastjson</artifactId>
154 154
 		    <version>1.2.4</version>
155 155
 		</dependency>
156
+        <dependency>
157
+            <groupId>org.projectlombok</groupId>
158
+            <artifactId>lombok</artifactId>
159
+        </dependency>
156 160
 		<dependency>
157 161
 			<groupId>org.projectlombok</groupId>
158 162
 			<artifactId>lombok</artifactId>

+ 57 - 2
src/main/java/com/chinaitop/depot/storage/controller/WarehouseSealingRecordController.java

@@ -1,7 +1,10 @@
1 1
 package com.chinaitop.depot.storage.controller;
2 2
 
3 3
 
4
+import com.chinaitop.depot.storage.model.ClearanceConfirmation;
5
+import com.chinaitop.depot.storage.model.StorageStorehouseBusiness;
4 6
 import com.chinaitop.depot.storage.model.WarehouseSealingRecord;
7
+import com.chinaitop.depot.storage.model.vo.WareHouseVO;
5 8
 import com.chinaitop.depot.storage.service.WarehouseSealingRecordService;
6 9
 import com.github.pagehelper.PageHelper;
7 10
 import com.github.pagehelper.PageInfo;
@@ -23,7 +26,7 @@ import java.util.List;
23 26
 import java.util.Map;
24 27
 
25 28
 /**
26
- * 封仓确认单Controller
29
+ * 封仓确认单控制类
27 30
  *
28 31
  * @author User
29 32
  *
@@ -159,8 +162,60 @@ public class WarehouseSealingRecordController {
159 162
         }
160 163
         return modelMap;
161 164
     }
165
+    /**
166
+     * 查询当前库区做过检验的仓房
167
+     *
168
+     * @param orgId
169
+     * @return
170
+     */
171
+    @RequestMapping(value = "/findStorehouse",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
172
+    public List<StorageStorehouseBusiness> findStorehouse(Integer orgId) {
173
+        List<StorageStorehouseBusiness> storageStorehouseBusinessList = null;
174
+        try {
175
+
176
+                storageStorehouseBusinessList = WarehouseSealingRecordService.findStorehouse(orgId);
177
+
178
+        } catch (Exception e) {
179
+            e.printStackTrace();
180
+        }
181
+        return storageStorehouseBusinessList;
182
+    }
183
+
184
+    /**
185
+     * 根据basicStorehouseId查询货位
186
+     * @param storehouseId
187
+     * @return
188
+     */
189
+    @RequestMapping(value = "/findWareHouse",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
190
+    public List<WareHouseVO> findWareHouse(Integer storehouseId) {
191
+        List<WareHouseVO> wareHouseVOList = null;
192
+        try {
193
+
194
+           wareHouseVOList = WarehouseSealingRecordService.findWareHouse(storehouseId);
195
+
196
+        } catch (Exception e) {
197
+            e.printStackTrace();
198
+        }
199
+        return wareHouseVOList;
200
+    }
201
+    /**
202
+     * 根据货位查询库存
203
+     * @param warehouseId
204
+     * @return
205
+     */
206
+    @RequestMapping(value = "/findkcsw",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
207
+    public WareHouseVO findkcsw(Integer warehouseId) {
208
+        WareHouseVO wareHouseVO = null;
209
+        try {
210
+            wareHouseVO = WarehouseSealingRecordService.findkcsw(warehouseId);
211
+
212
+        } catch (Exception e) {
213
+            e.printStackTrace();
214
+        }
215
+        return wareHouseVO;
216
+    }
217
+
162 218
 
163 219
 
164
-    
165 220
 
166 221
 }

+ 31 - 0
src/main/java/com/chinaitop/depot/storage/mapper/GrainSituationCardMapper.java

@@ -0,0 +1,31 @@
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import com.chinaitop.depot.storage.model.GrainSituationCard;
4
+import com.chinaitop.depot.storage.model.GrainSituationCardExample;
5
+import org.apache.ibatis.annotations.Param;
6
+
7
+import java.util.List;
8
+
9
+public interface GrainSituationCardMapper {
10
+    int countByExample(GrainSituationCardExample example);
11
+
12
+    int deleteByExample(GrainSituationCardExample example);
13
+
14
+    int deleteByPrimaryKey(Integer id);
15
+
16
+    int insert(GrainSituationCard record);
17
+
18
+    int insertSelective(GrainSituationCard record);
19
+
20
+    List<GrainSituationCard> selectByExample(GrainSituationCardExample example);
21
+
22
+    GrainSituationCard selectByPrimaryKey(Integer id);
23
+
24
+    int updateByExampleSelective(@Param("record") GrainSituationCard record, @Param("example") GrainSituationCardExample example);
25
+
26
+    int updateByExample(@Param("record") GrainSituationCard record, @Param("example") GrainSituationCardExample example);
27
+
28
+    int updateByPrimaryKeySelective(GrainSituationCard record);
29
+
30
+    int updateByPrimaryKey(GrainSituationCard record);
31
+}

+ 769 - 0
src/main/java/com/chinaitop/depot/storage/mapper/GrainSituationCardMapper.xml

@@ -0,0 +1,769 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
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.storage.mapper.GrainSituationCardMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.GrainSituationCard" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="createname" property="createname" jdbcType="VARCHAR" />
7
+    <result column="createdate" property="createdate" jdbcType="TIMESTAMP" />
8
+    <result column="updatename" property="updatename" jdbcType="VARCHAR" />
9
+    <result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
10
+    <result column="warehouse_sealing_record_id" property="warehouseSealingRecordId" jdbcType="INTEGER" />
11
+    <result column="fill_org_id" property="fillOrgId" jdbcType="INTEGER" />
12
+    <result column="keep_org_id" property="keepOrgId" jdbcType="INTEGER" />
13
+    <result column="basic_storehouse_id" property="basicStorehouseId" jdbcType="INTEGER" />
14
+    <result column="basic_unit_aisle_id" property="basicUnitAisleId" jdbcType="INTEGER" />
15
+    <result column="warehouse_id" property="warehouseId" jdbcType="INTEGER" />
16
+    <result column="storehouse_type" property="storehouseType" jdbcType="INTEGER" />
17
+    <result column="design_capacity" property="designCapacity" jdbcType="DECIMAL" />
18
+    <result column="grain_variety_id" property="grainVarietyId" jdbcType="INTEGER" />
19
+    <result column="grain_nature_id" property="grainNatureId" jdbcType="INTEGER" />
20
+    <result column="lssl" property="lssl" jdbcType="DECIMAL" />
21
+    <result column="grain_area_id" property="grainAreaId" jdbcType="INTEGER" />
22
+    <result column="shnd" property="shnd" jdbcType="DATE" />
23
+    <result column="rcsj" property="rcsj" jdbcType="DATE" />
24
+    <result column="form_warehouse_time" property="formWarehouseTime" jdbcType="TIMESTAMP" />
25
+    <result column="grain_grade_id" property="grainGradeId" jdbcType="INTEGER" />
26
+    <result column="temperature_measure_type" property="temperatureMeasureType" jdbcType="TINYINT" />
27
+    <result column="drafttype" property="drafttype" jdbcType="INTEGER" />
28
+    <result column="glfs" property="glfs" jdbcType="VARCHAR" />
29
+    <result column="storage_org_id" property="storageOrgId" jdbcType="INTEGER" />
30
+    <result column="keeping_way" property="keepingWay" jdbcType="INTEGER" />
31
+    <result column="volume" property="volume" jdbcType="DECIMAL" />
32
+    <result column="length" property="length" jdbcType="DECIMAL" />
33
+    <result column="width" property="width" jdbcType="DECIMAL" />
34
+    <result column="trapezoid_upper_length" property="trapezoidUpperLength" jdbcType="DECIMAL" />
35
+    <result column="trapezoid_lower_length" property="trapezoidLowerLength" jdbcType="DECIMAL" />
36
+    <result column="trapezoid_upper_width" property="trapezoidUpperWidth" jdbcType="DECIMAL" />
37
+    <result column="trapezoid_lower_width" property="trapezoidLowerWidth" jdbcType="DECIMAL" />
38
+    <result column="flat_storage_height" property="flatStorageHeight" jdbcType="DECIMAL" />
39
+    <result column="trapezoid_height" property="trapezoidHeight" jdbcType="DECIMAL" />
40
+    <result column="silo_inner_diameter" property="siloInnerDiameter" jdbcType="DECIMAL" />
41
+    <result column="silo_grain_height" property="siloGrainHeight" jdbcType="DECIMAL" />
42
+    <result column="packaged_count" property="packagedCount" jdbcType="INTEGER" />
43
+    <result column="average_weight" property="averageWeight" jdbcType="DECIMAL" />
44
+    <result column="check_record_ids" property="checkRecordIds" jdbcType="VARCHAR" />
45
+  </resultMap>
46
+  <sql id="Example_Where_Clause" >
47
+    <where >
48
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
49
+        <if test="criteria.valid" >
50
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
51
+            <foreach collection="criteria.criteria" item="criterion" >
52
+              <choose >
53
+                <when test="criterion.noValue" >
54
+                  and ${criterion.condition}
55
+                </when>
56
+                <when test="criterion.singleValue" >
57
+                  and ${criterion.condition} #{criterion.value}
58
+                </when>
59
+                <when test="criterion.betweenValue" >
60
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
61
+                </when>
62
+                <when test="criterion.listValue" >
63
+                  and ${criterion.condition}
64
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
65
+                    #{listItem}
66
+                  </foreach>
67
+                </when>
68
+              </choose>
69
+            </foreach>
70
+          </trim>
71
+        </if>
72
+      </foreach>
73
+    </where>
74
+  </sql>
75
+  <sql id="Update_By_Example_Where_Clause" >
76
+    <where >
77
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
78
+        <if test="criteria.valid" >
79
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
80
+            <foreach collection="criteria.criteria" item="criterion" >
81
+              <choose >
82
+                <when test="criterion.noValue" >
83
+                  and ${criterion.condition}
84
+                </when>
85
+                <when test="criterion.singleValue" >
86
+                  and ${criterion.condition} #{criterion.value}
87
+                </when>
88
+                <when test="criterion.betweenValue" >
89
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
90
+                </when>
91
+                <when test="criterion.listValue" >
92
+                  and ${criterion.condition}
93
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
94
+                    #{listItem}
95
+                  </foreach>
96
+                </when>
97
+              </choose>
98
+            </foreach>
99
+          </trim>
100
+        </if>
101
+      </foreach>
102
+    </where>
103
+  </sql>
104
+  <sql id="Base_Column_List" >
105
+    id, createname, createdate, updatename, updatedate, warehouse_sealing_record_id, 
106
+    fill_org_id, keep_org_id, basic_storehouse_id, basic_unit_aisle_id, warehouse_id, 
107
+    storehouse_type, design_capacity, grain_variety_id, grain_nature_id, lssl, grain_area_id, 
108
+    shnd, rcsj, form_warehouse_time, grain_grade_id, temperature_measure_type, drafttype, 
109
+    glfs, storage_org_id, keeping_way, volume, length, width, trapezoid_upper_length, 
110
+    trapezoid_lower_length, trapezoid_upper_width, trapezoid_lower_width, flat_storage_height, 
111
+    trapezoid_height, silo_inner_diameter, silo_grain_height, packaged_count, average_weight, 
112
+    check_record_ids
113
+  </sql>
114
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.GrainSituationCardExample" >
115
+    select
116
+    <if test="distinct" >
117
+      distinct
118
+    </if>
119
+    <include refid="Base_Column_List" />
120
+    from grain_situation_card
121
+    <if test="_parameter != null" >
122
+      <include refid="Example_Where_Clause" />
123
+    </if>
124
+    <if test="orderByClause != null" >
125
+      order by ${orderByClause}
126
+    </if>
127
+  </select>
128
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
129
+    select 
130
+    <include refid="Base_Column_List" />
131
+    from grain_situation_card
132
+    where id = #{id,jdbcType=INTEGER}
133
+  </select>
134
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
135
+    delete from grain_situation_card
136
+    where id = #{id,jdbcType=INTEGER}
137
+  </delete>
138
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.GrainSituationCardExample" >
139
+    delete from grain_situation_card
140
+    <if test="_parameter != null" >
141
+      <include refid="Example_Where_Clause" />
142
+    </if>
143
+  </delete>
144
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.GrainSituationCard" >
145
+    insert into grain_situation_card (id, createname, createdate, 
146
+      updatename, updatedate, warehouse_sealing_record_id, 
147
+      fill_org_id, keep_org_id, basic_storehouse_id, 
148
+      basic_unit_aisle_id, warehouse_id, storehouse_type, 
149
+      design_capacity, grain_variety_id, grain_nature_id, 
150
+      lssl, grain_area_id, shnd, 
151
+      rcsj, form_warehouse_time, grain_grade_id, 
152
+      temperature_measure_type, drafttype, glfs, 
153
+      storage_org_id, keeping_way, volume, 
154
+      length, width, trapezoid_upper_length, 
155
+      trapezoid_lower_length, trapezoid_upper_width, 
156
+      trapezoid_lower_width, flat_storage_height, 
157
+      trapezoid_height, silo_inner_diameter, silo_grain_height, 
158
+      packaged_count, average_weight, check_record_ids
159
+      )
160
+    values (#{id,jdbcType=INTEGER}, #{createname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, 
161
+      #{updatename,jdbcType=VARCHAR}, #{updatedate,jdbcType=TIMESTAMP}, #{warehouseSealingRecordId,jdbcType=INTEGER}, 
162
+      #{fillOrgId,jdbcType=INTEGER}, #{keepOrgId,jdbcType=INTEGER}, #{basicStorehouseId,jdbcType=INTEGER}, 
163
+      #{basicUnitAisleId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER}, #{storehouseType,jdbcType=INTEGER}, 
164
+      #{designCapacity,jdbcType=DECIMAL}, #{grainVarietyId,jdbcType=INTEGER}, #{grainNatureId,jdbcType=INTEGER}, 
165
+      #{lssl,jdbcType=DECIMAL}, #{grainAreaId,jdbcType=INTEGER}, #{shnd,jdbcType=DATE}, 
166
+      #{rcsj,jdbcType=DATE}, #{formWarehouseTime,jdbcType=TIMESTAMP}, #{grainGradeId,jdbcType=INTEGER}, 
167
+      #{temperatureMeasureType,jdbcType=TINYINT}, #{drafttype,jdbcType=INTEGER}, #{glfs,jdbcType=VARCHAR}, 
168
+      #{storageOrgId,jdbcType=INTEGER}, #{keepingWay,jdbcType=INTEGER}, #{volume,jdbcType=DECIMAL}, 
169
+      #{length,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL}, #{trapezoidUpperLength,jdbcType=DECIMAL}, 
170
+      #{trapezoidLowerLength,jdbcType=DECIMAL}, #{trapezoidUpperWidth,jdbcType=DECIMAL}, 
171
+      #{trapezoidLowerWidth,jdbcType=DECIMAL}, #{flatStorageHeight,jdbcType=DECIMAL}, 
172
+      #{trapezoidHeight,jdbcType=DECIMAL}, #{siloInnerDiameter,jdbcType=DECIMAL}, #{siloGrainHeight,jdbcType=DECIMAL}, 
173
+      #{packagedCount,jdbcType=INTEGER}, #{averageWeight,jdbcType=DECIMAL}, #{checkRecordIds,jdbcType=VARCHAR}
174
+      )
175
+  </insert>
176
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.GrainSituationCard" >
177
+    insert into grain_situation_card
178
+    <trim prefix="(" suffix=")" suffixOverrides="," >
179
+      <if test="id != null" >
180
+        id,
181
+      </if>
182
+      <if test="createname != null" >
183
+        createname,
184
+      </if>
185
+      <if test="createdate != null" >
186
+        createdate,
187
+      </if>
188
+      <if test="updatename != null" >
189
+        updatename,
190
+      </if>
191
+      <if test="updatedate != null" >
192
+        updatedate,
193
+      </if>
194
+      <if test="warehouseSealingRecordId != null" >
195
+        warehouse_sealing_record_id,
196
+      </if>
197
+      <if test="fillOrgId != null" >
198
+        fill_org_id,
199
+      </if>
200
+      <if test="keepOrgId != null" >
201
+        keep_org_id,
202
+      </if>
203
+      <if test="basicStorehouseId != null" >
204
+        basic_storehouse_id,
205
+      </if>
206
+      <if test="basicUnitAisleId != null" >
207
+        basic_unit_aisle_id,
208
+      </if>
209
+      <if test="warehouseId != null" >
210
+        warehouse_id,
211
+      </if>
212
+      <if test="storehouseType != null" >
213
+        storehouse_type,
214
+      </if>
215
+      <if test="designCapacity != null" >
216
+        design_capacity,
217
+      </if>
218
+      <if test="grainVarietyId != null" >
219
+        grain_variety_id,
220
+      </if>
221
+      <if test="grainNatureId != null" >
222
+        grain_nature_id,
223
+      </if>
224
+      <if test="lssl != null" >
225
+        lssl,
226
+      </if>
227
+      <if test="grainAreaId != null" >
228
+        grain_area_id,
229
+      </if>
230
+      <if test="shnd != null" >
231
+        shnd,
232
+      </if>
233
+      <if test="rcsj != null" >
234
+        rcsj,
235
+      </if>
236
+      <if test="formWarehouseTime != null" >
237
+        form_warehouse_time,
238
+      </if>
239
+      <if test="grainGradeId != null" >
240
+        grain_grade_id,
241
+      </if>
242
+      <if test="temperatureMeasureType != null" >
243
+        temperature_measure_type,
244
+      </if>
245
+      <if test="drafttype != null" >
246
+        drafttype,
247
+      </if>
248
+      <if test="glfs != null" >
249
+        glfs,
250
+      </if>
251
+      <if test="storageOrgId != null" >
252
+        storage_org_id,
253
+      </if>
254
+      <if test="keepingWay != null" >
255
+        keeping_way,
256
+      </if>
257
+      <if test="volume != null" >
258
+        volume,
259
+      </if>
260
+      <if test="length != null" >
261
+        length,
262
+      </if>
263
+      <if test="width != null" >
264
+        width,
265
+      </if>
266
+      <if test="trapezoidUpperLength != null" >
267
+        trapezoid_upper_length,
268
+      </if>
269
+      <if test="trapezoidLowerLength != null" >
270
+        trapezoid_lower_length,
271
+      </if>
272
+      <if test="trapezoidUpperWidth != null" >
273
+        trapezoid_upper_width,
274
+      </if>
275
+      <if test="trapezoidLowerWidth != null" >
276
+        trapezoid_lower_width,
277
+      </if>
278
+      <if test="flatStorageHeight != null" >
279
+        flat_storage_height,
280
+      </if>
281
+      <if test="trapezoidHeight != null" >
282
+        trapezoid_height,
283
+      </if>
284
+      <if test="siloInnerDiameter != null" >
285
+        silo_inner_diameter,
286
+      </if>
287
+      <if test="siloGrainHeight != null" >
288
+        silo_grain_height,
289
+      </if>
290
+      <if test="packagedCount != null" >
291
+        packaged_count,
292
+      </if>
293
+      <if test="averageWeight != null" >
294
+        average_weight,
295
+      </if>
296
+      <if test="checkRecordIds != null" >
297
+        check_record_ids,
298
+      </if>
299
+    </trim>
300
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
301
+      <if test="id != null" >
302
+        #{id,jdbcType=INTEGER},
303
+      </if>
304
+      <if test="createname != null" >
305
+        #{createname,jdbcType=VARCHAR},
306
+      </if>
307
+      <if test="createdate != null" >
308
+        #{createdate,jdbcType=TIMESTAMP},
309
+      </if>
310
+      <if test="updatename != null" >
311
+        #{updatename,jdbcType=VARCHAR},
312
+      </if>
313
+      <if test="updatedate != null" >
314
+        #{updatedate,jdbcType=TIMESTAMP},
315
+      </if>
316
+      <if test="warehouseSealingRecordId != null" >
317
+        #{warehouseSealingRecordId,jdbcType=INTEGER},
318
+      </if>
319
+      <if test="fillOrgId != null" >
320
+        #{fillOrgId,jdbcType=INTEGER},
321
+      </if>
322
+      <if test="keepOrgId != null" >
323
+        #{keepOrgId,jdbcType=INTEGER},
324
+      </if>
325
+      <if test="basicStorehouseId != null" >
326
+        #{basicStorehouseId,jdbcType=INTEGER},
327
+      </if>
328
+      <if test="basicUnitAisleId != null" >
329
+        #{basicUnitAisleId,jdbcType=INTEGER},
330
+      </if>
331
+      <if test="warehouseId != null" >
332
+        #{warehouseId,jdbcType=INTEGER},
333
+      </if>
334
+      <if test="storehouseType != null" >
335
+        #{storehouseType,jdbcType=INTEGER},
336
+      </if>
337
+      <if test="designCapacity != null" >
338
+        #{designCapacity,jdbcType=DECIMAL},
339
+      </if>
340
+      <if test="grainVarietyId != null" >
341
+        #{grainVarietyId,jdbcType=INTEGER},
342
+      </if>
343
+      <if test="grainNatureId != null" >
344
+        #{grainNatureId,jdbcType=INTEGER},
345
+      </if>
346
+      <if test="lssl != null" >
347
+        #{lssl,jdbcType=DECIMAL},
348
+      </if>
349
+      <if test="grainAreaId != null" >
350
+        #{grainAreaId,jdbcType=INTEGER},
351
+      </if>
352
+      <if test="shnd != null" >
353
+        #{shnd,jdbcType=DATE},
354
+      </if>
355
+      <if test="rcsj != null" >
356
+        #{rcsj,jdbcType=DATE},
357
+      </if>
358
+      <if test="formWarehouseTime != null" >
359
+        #{formWarehouseTime,jdbcType=TIMESTAMP},
360
+      </if>
361
+      <if test="grainGradeId != null" >
362
+        #{grainGradeId,jdbcType=INTEGER},
363
+      </if>
364
+      <if test="temperatureMeasureType != null" >
365
+        #{temperatureMeasureType,jdbcType=TINYINT},
366
+      </if>
367
+      <if test="drafttype != null" >
368
+        #{drafttype,jdbcType=INTEGER},
369
+      </if>
370
+      <if test="glfs != null" >
371
+        #{glfs,jdbcType=VARCHAR},
372
+      </if>
373
+      <if test="storageOrgId != null" >
374
+        #{storageOrgId,jdbcType=INTEGER},
375
+      </if>
376
+      <if test="keepingWay != null" >
377
+        #{keepingWay,jdbcType=INTEGER},
378
+      </if>
379
+      <if test="volume != null" >
380
+        #{volume,jdbcType=DECIMAL},
381
+      </if>
382
+      <if test="length != null" >
383
+        #{length,jdbcType=DECIMAL},
384
+      </if>
385
+      <if test="width != null" >
386
+        #{width,jdbcType=DECIMAL},
387
+      </if>
388
+      <if test="trapezoidUpperLength != null" >
389
+        #{trapezoidUpperLength,jdbcType=DECIMAL},
390
+      </if>
391
+      <if test="trapezoidLowerLength != null" >
392
+        #{trapezoidLowerLength,jdbcType=DECIMAL},
393
+      </if>
394
+      <if test="trapezoidUpperWidth != null" >
395
+        #{trapezoidUpperWidth,jdbcType=DECIMAL},
396
+      </if>
397
+      <if test="trapezoidLowerWidth != null" >
398
+        #{trapezoidLowerWidth,jdbcType=DECIMAL},
399
+      </if>
400
+      <if test="flatStorageHeight != null" >
401
+        #{flatStorageHeight,jdbcType=DECIMAL},
402
+      </if>
403
+      <if test="trapezoidHeight != null" >
404
+        #{trapezoidHeight,jdbcType=DECIMAL},
405
+      </if>
406
+      <if test="siloInnerDiameter != null" >
407
+        #{siloInnerDiameter,jdbcType=DECIMAL},
408
+      </if>
409
+      <if test="siloGrainHeight != null" >
410
+        #{siloGrainHeight,jdbcType=DECIMAL},
411
+      </if>
412
+      <if test="packagedCount != null" >
413
+        #{packagedCount,jdbcType=INTEGER},
414
+      </if>
415
+      <if test="averageWeight != null" >
416
+        #{averageWeight,jdbcType=DECIMAL},
417
+      </if>
418
+      <if test="checkRecordIds != null" >
419
+        #{checkRecordIds,jdbcType=VARCHAR},
420
+      </if>
421
+    </trim>
422
+  </insert>
423
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.GrainSituationCardExample" resultType="java.lang.Integer" >
424
+    select count(*) from grain_situation_card
425
+    <if test="_parameter != null" >
426
+      <include refid="Example_Where_Clause" />
427
+    </if>
428
+  </select>
429
+  <update id="updateByExampleSelective" parameterType="map" >
430
+    update grain_situation_card
431
+    <set >
432
+      <if test="record.id != null" >
433
+        id = #{record.id,jdbcType=INTEGER},
434
+      </if>
435
+      <if test="record.createname != null" >
436
+        createname = #{record.createname,jdbcType=VARCHAR},
437
+      </if>
438
+      <if test="record.createdate != null" >
439
+        createdate = #{record.createdate,jdbcType=TIMESTAMP},
440
+      </if>
441
+      <if test="record.updatename != null" >
442
+        updatename = #{record.updatename,jdbcType=VARCHAR},
443
+      </if>
444
+      <if test="record.updatedate != null" >
445
+        updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
446
+      </if>
447
+      <if test="record.warehouseSealingRecordId != null" >
448
+        warehouse_sealing_record_id = #{record.warehouseSealingRecordId,jdbcType=INTEGER},
449
+      </if>
450
+      <if test="record.fillOrgId != null" >
451
+        fill_org_id = #{record.fillOrgId,jdbcType=INTEGER},
452
+      </if>
453
+      <if test="record.keepOrgId != null" >
454
+        keep_org_id = #{record.keepOrgId,jdbcType=INTEGER},
455
+      </if>
456
+      <if test="record.basicStorehouseId != null" >
457
+        basic_storehouse_id = #{record.basicStorehouseId,jdbcType=INTEGER},
458
+      </if>
459
+      <if test="record.basicUnitAisleId != null" >
460
+        basic_unit_aisle_id = #{record.basicUnitAisleId,jdbcType=INTEGER},
461
+      </if>
462
+      <if test="record.warehouseId != null" >
463
+        warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
464
+      </if>
465
+      <if test="record.storehouseType != null" >
466
+        storehouse_type = #{record.storehouseType,jdbcType=INTEGER},
467
+      </if>
468
+      <if test="record.designCapacity != null" >
469
+        design_capacity = #{record.designCapacity,jdbcType=DECIMAL},
470
+      </if>
471
+      <if test="record.grainVarietyId != null" >
472
+        grain_variety_id = #{record.grainVarietyId,jdbcType=INTEGER},
473
+      </if>
474
+      <if test="record.grainNatureId != null" >
475
+        grain_nature_id = #{record.grainNatureId,jdbcType=INTEGER},
476
+      </if>
477
+      <if test="record.lssl != null" >
478
+        lssl = #{record.lssl,jdbcType=DECIMAL},
479
+      </if>
480
+      <if test="record.grainAreaId != null" >
481
+        grain_area_id = #{record.grainAreaId,jdbcType=INTEGER},
482
+      </if>
483
+      <if test="record.shnd != null" >
484
+        shnd = #{record.shnd,jdbcType=DATE},
485
+      </if>
486
+      <if test="record.rcsj != null" >
487
+        rcsj = #{record.rcsj,jdbcType=DATE},
488
+      </if>
489
+      <if test="record.formWarehouseTime != null" >
490
+        form_warehouse_time = #{record.formWarehouseTime,jdbcType=TIMESTAMP},
491
+      </if>
492
+      <if test="record.grainGradeId != null" >
493
+        grain_grade_id = #{record.grainGradeId,jdbcType=INTEGER},
494
+      </if>
495
+      <if test="record.temperatureMeasureType != null" >
496
+        temperature_measure_type = #{record.temperatureMeasureType,jdbcType=TINYINT},
497
+      </if>
498
+      <if test="record.drafttype != null" >
499
+        drafttype = #{record.drafttype,jdbcType=INTEGER},
500
+      </if>
501
+      <if test="record.glfs != null" >
502
+        glfs = #{record.glfs,jdbcType=VARCHAR},
503
+      </if>
504
+      <if test="record.storageOrgId != null" >
505
+        storage_org_id = #{record.storageOrgId,jdbcType=INTEGER},
506
+      </if>
507
+      <if test="record.keepingWay != null" >
508
+        keeping_way = #{record.keepingWay,jdbcType=INTEGER},
509
+      </if>
510
+      <if test="record.volume != null" >
511
+        volume = #{record.volume,jdbcType=DECIMAL},
512
+      </if>
513
+      <if test="record.length != null" >
514
+        length = #{record.length,jdbcType=DECIMAL},
515
+      </if>
516
+      <if test="record.width != null" >
517
+        width = #{record.width,jdbcType=DECIMAL},
518
+      </if>
519
+      <if test="record.trapezoidUpperLength != null" >
520
+        trapezoid_upper_length = #{record.trapezoidUpperLength,jdbcType=DECIMAL},
521
+      </if>
522
+      <if test="record.trapezoidLowerLength != null" >
523
+        trapezoid_lower_length = #{record.trapezoidLowerLength,jdbcType=DECIMAL},
524
+      </if>
525
+      <if test="record.trapezoidUpperWidth != null" >
526
+        trapezoid_upper_width = #{record.trapezoidUpperWidth,jdbcType=DECIMAL},
527
+      </if>
528
+      <if test="record.trapezoidLowerWidth != null" >
529
+        trapezoid_lower_width = #{record.trapezoidLowerWidth,jdbcType=DECIMAL},
530
+      </if>
531
+      <if test="record.flatStorageHeight != null" >
532
+        flat_storage_height = #{record.flatStorageHeight,jdbcType=DECIMAL},
533
+      </if>
534
+      <if test="record.trapezoidHeight != null" >
535
+        trapezoid_height = #{record.trapezoidHeight,jdbcType=DECIMAL},
536
+      </if>
537
+      <if test="record.siloInnerDiameter != null" >
538
+        silo_inner_diameter = #{record.siloInnerDiameter,jdbcType=DECIMAL},
539
+      </if>
540
+      <if test="record.siloGrainHeight != null" >
541
+        silo_grain_height = #{record.siloGrainHeight,jdbcType=DECIMAL},
542
+      </if>
543
+      <if test="record.packagedCount != null" >
544
+        packaged_count = #{record.packagedCount,jdbcType=INTEGER},
545
+      </if>
546
+      <if test="record.averageWeight != null" >
547
+        average_weight = #{record.averageWeight,jdbcType=DECIMAL},
548
+      </if>
549
+      <if test="record.checkRecordIds != null" >
550
+        check_record_ids = #{record.checkRecordIds,jdbcType=VARCHAR},
551
+      </if>
552
+    </set>
553
+    <if test="_parameter != null" >
554
+      <include refid="Update_By_Example_Where_Clause" />
555
+    </if>
556
+  </update>
557
+  <update id="updateByExample" parameterType="map" >
558
+    update grain_situation_card
559
+    set id = #{record.id,jdbcType=INTEGER},
560
+      createname = #{record.createname,jdbcType=VARCHAR},
561
+      createdate = #{record.createdate,jdbcType=TIMESTAMP},
562
+      updatename = #{record.updatename,jdbcType=VARCHAR},
563
+      updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
564
+      warehouse_sealing_record_id = #{record.warehouseSealingRecordId,jdbcType=INTEGER},
565
+      fill_org_id = #{record.fillOrgId,jdbcType=INTEGER},
566
+      keep_org_id = #{record.keepOrgId,jdbcType=INTEGER},
567
+      basic_storehouse_id = #{record.basicStorehouseId,jdbcType=INTEGER},
568
+      basic_unit_aisle_id = #{record.basicUnitAisleId,jdbcType=INTEGER},
569
+      warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
570
+      storehouse_type = #{record.storehouseType,jdbcType=INTEGER},
571
+      design_capacity = #{record.designCapacity,jdbcType=DECIMAL},
572
+      grain_variety_id = #{record.grainVarietyId,jdbcType=INTEGER},
573
+      grain_nature_id = #{record.grainNatureId,jdbcType=INTEGER},
574
+      lssl = #{record.lssl,jdbcType=DECIMAL},
575
+      grain_area_id = #{record.grainAreaId,jdbcType=INTEGER},
576
+      shnd = #{record.shnd,jdbcType=DATE},
577
+      rcsj = #{record.rcsj,jdbcType=DATE},
578
+      form_warehouse_time = #{record.formWarehouseTime,jdbcType=TIMESTAMP},
579
+      grain_grade_id = #{record.grainGradeId,jdbcType=INTEGER},
580
+      temperature_measure_type = #{record.temperatureMeasureType,jdbcType=TINYINT},
581
+      drafttype = #{record.drafttype,jdbcType=INTEGER},
582
+      glfs = #{record.glfs,jdbcType=VARCHAR},
583
+      storage_org_id = #{record.storageOrgId,jdbcType=INTEGER},
584
+      keeping_way = #{record.keepingWay,jdbcType=INTEGER},
585
+      volume = #{record.volume,jdbcType=DECIMAL},
586
+      length = #{record.length,jdbcType=DECIMAL},
587
+      width = #{record.width,jdbcType=DECIMAL},
588
+      trapezoid_upper_length = #{record.trapezoidUpperLength,jdbcType=DECIMAL},
589
+      trapezoid_lower_length = #{record.trapezoidLowerLength,jdbcType=DECIMAL},
590
+      trapezoid_upper_width = #{record.trapezoidUpperWidth,jdbcType=DECIMAL},
591
+      trapezoid_lower_width = #{record.trapezoidLowerWidth,jdbcType=DECIMAL},
592
+      flat_storage_height = #{record.flatStorageHeight,jdbcType=DECIMAL},
593
+      trapezoid_height = #{record.trapezoidHeight,jdbcType=DECIMAL},
594
+      silo_inner_diameter = #{record.siloInnerDiameter,jdbcType=DECIMAL},
595
+      silo_grain_height = #{record.siloGrainHeight,jdbcType=DECIMAL},
596
+      packaged_count = #{record.packagedCount,jdbcType=INTEGER},
597
+      average_weight = #{record.averageWeight,jdbcType=DECIMAL},
598
+      check_record_ids = #{record.checkRecordIds,jdbcType=VARCHAR}
599
+    <if test="_parameter != null" >
600
+      <include refid="Update_By_Example_Where_Clause" />
601
+    </if>
602
+  </update>
603
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.GrainSituationCard" >
604
+    update grain_situation_card
605
+    <set >
606
+      <if test="createname != null" >
607
+        createname = #{createname,jdbcType=VARCHAR},
608
+      </if>
609
+      <if test="createdate != null" >
610
+        createdate = #{createdate,jdbcType=TIMESTAMP},
611
+      </if>
612
+      <if test="updatename != null" >
613
+        updatename = #{updatename,jdbcType=VARCHAR},
614
+      </if>
615
+      <if test="updatedate != null" >
616
+        updatedate = #{updatedate,jdbcType=TIMESTAMP},
617
+      </if>
618
+      <if test="warehouseSealingRecordId != null" >
619
+        warehouse_sealing_record_id = #{warehouseSealingRecordId,jdbcType=INTEGER},
620
+      </if>
621
+      <if test="fillOrgId != null" >
622
+        fill_org_id = #{fillOrgId,jdbcType=INTEGER},
623
+      </if>
624
+      <if test="keepOrgId != null" >
625
+        keep_org_id = #{keepOrgId,jdbcType=INTEGER},
626
+      </if>
627
+      <if test="basicStorehouseId != null" >
628
+        basic_storehouse_id = #{basicStorehouseId,jdbcType=INTEGER},
629
+      </if>
630
+      <if test="basicUnitAisleId != null" >
631
+        basic_unit_aisle_id = #{basicUnitAisleId,jdbcType=INTEGER},
632
+      </if>
633
+      <if test="warehouseId != null" >
634
+        warehouse_id = #{warehouseId,jdbcType=INTEGER},
635
+      </if>
636
+      <if test="storehouseType != null" >
637
+        storehouse_type = #{storehouseType,jdbcType=INTEGER},
638
+      </if>
639
+      <if test="designCapacity != null" >
640
+        design_capacity = #{designCapacity,jdbcType=DECIMAL},
641
+      </if>
642
+      <if test="grainVarietyId != null" >
643
+        grain_variety_id = #{grainVarietyId,jdbcType=INTEGER},
644
+      </if>
645
+      <if test="grainNatureId != null" >
646
+        grain_nature_id = #{grainNatureId,jdbcType=INTEGER},
647
+      </if>
648
+      <if test="lssl != null" >
649
+        lssl = #{lssl,jdbcType=DECIMAL},
650
+      </if>
651
+      <if test="grainAreaId != null" >
652
+        grain_area_id = #{grainAreaId,jdbcType=INTEGER},
653
+      </if>
654
+      <if test="shnd != null" >
655
+        shnd = #{shnd,jdbcType=DATE},
656
+      </if>
657
+      <if test="rcsj != null" >
658
+        rcsj = #{rcsj,jdbcType=DATE},
659
+      </if>
660
+      <if test="formWarehouseTime != null" >
661
+        form_warehouse_time = #{formWarehouseTime,jdbcType=TIMESTAMP},
662
+      </if>
663
+      <if test="grainGradeId != null" >
664
+        grain_grade_id = #{grainGradeId,jdbcType=INTEGER},
665
+      </if>
666
+      <if test="temperatureMeasureType != null" >
667
+        temperature_measure_type = #{temperatureMeasureType,jdbcType=TINYINT},
668
+      </if>
669
+      <if test="drafttype != null" >
670
+        drafttype = #{drafttype,jdbcType=INTEGER},
671
+      </if>
672
+      <if test="glfs != null" >
673
+        glfs = #{glfs,jdbcType=VARCHAR},
674
+      </if>
675
+      <if test="storageOrgId != null" >
676
+        storage_org_id = #{storageOrgId,jdbcType=INTEGER},
677
+      </if>
678
+      <if test="keepingWay != null" >
679
+        keeping_way = #{keepingWay,jdbcType=INTEGER},
680
+      </if>
681
+      <if test="volume != null" >
682
+        volume = #{volume,jdbcType=DECIMAL},
683
+      </if>
684
+      <if test="length != null" >
685
+        length = #{length,jdbcType=DECIMAL},
686
+      </if>
687
+      <if test="width != null" >
688
+        width = #{width,jdbcType=DECIMAL},
689
+      </if>
690
+      <if test="trapezoidUpperLength != null" >
691
+        trapezoid_upper_length = #{trapezoidUpperLength,jdbcType=DECIMAL},
692
+      </if>
693
+      <if test="trapezoidLowerLength != null" >
694
+        trapezoid_lower_length = #{trapezoidLowerLength,jdbcType=DECIMAL},
695
+      </if>
696
+      <if test="trapezoidUpperWidth != null" >
697
+        trapezoid_upper_width = #{trapezoidUpperWidth,jdbcType=DECIMAL},
698
+      </if>
699
+      <if test="trapezoidLowerWidth != null" >
700
+        trapezoid_lower_width = #{trapezoidLowerWidth,jdbcType=DECIMAL},
701
+      </if>
702
+      <if test="flatStorageHeight != null" >
703
+        flat_storage_height = #{flatStorageHeight,jdbcType=DECIMAL},
704
+      </if>
705
+      <if test="trapezoidHeight != null" >
706
+        trapezoid_height = #{trapezoidHeight,jdbcType=DECIMAL},
707
+      </if>
708
+      <if test="siloInnerDiameter != null" >
709
+        silo_inner_diameter = #{siloInnerDiameter,jdbcType=DECIMAL},
710
+      </if>
711
+      <if test="siloGrainHeight != null" >
712
+        silo_grain_height = #{siloGrainHeight,jdbcType=DECIMAL},
713
+      </if>
714
+      <if test="packagedCount != null" >
715
+        packaged_count = #{packagedCount,jdbcType=INTEGER},
716
+      </if>
717
+      <if test="averageWeight != null" >
718
+        average_weight = #{averageWeight,jdbcType=DECIMAL},
719
+      </if>
720
+      <if test="checkRecordIds != null" >
721
+        check_record_ids = #{checkRecordIds,jdbcType=VARCHAR},
722
+      </if>
723
+    </set>
724
+    where id = #{id,jdbcType=INTEGER}
725
+  </update>
726
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.GrainSituationCard" >
727
+    update grain_situation_card
728
+    set createname = #{createname,jdbcType=VARCHAR},
729
+      createdate = #{createdate,jdbcType=TIMESTAMP},
730
+      updatename = #{updatename,jdbcType=VARCHAR},
731
+      updatedate = #{updatedate,jdbcType=TIMESTAMP},
732
+      warehouse_sealing_record_id = #{warehouseSealingRecordId,jdbcType=INTEGER},
733
+      fill_org_id = #{fillOrgId,jdbcType=INTEGER},
734
+      keep_org_id = #{keepOrgId,jdbcType=INTEGER},
735
+      basic_storehouse_id = #{basicStorehouseId,jdbcType=INTEGER},
736
+      basic_unit_aisle_id = #{basicUnitAisleId,jdbcType=INTEGER},
737
+      warehouse_id = #{warehouseId,jdbcType=INTEGER},
738
+      storehouse_type = #{storehouseType,jdbcType=INTEGER},
739
+      design_capacity = #{designCapacity,jdbcType=DECIMAL},
740
+      grain_variety_id = #{grainVarietyId,jdbcType=INTEGER},
741
+      grain_nature_id = #{grainNatureId,jdbcType=INTEGER},
742
+      lssl = #{lssl,jdbcType=DECIMAL},
743
+      grain_area_id = #{grainAreaId,jdbcType=INTEGER},
744
+      shnd = #{shnd,jdbcType=DATE},
745
+      rcsj = #{rcsj,jdbcType=DATE},
746
+      form_warehouse_time = #{formWarehouseTime,jdbcType=TIMESTAMP},
747
+      grain_grade_id = #{grainGradeId,jdbcType=INTEGER},
748
+      temperature_measure_type = #{temperatureMeasureType,jdbcType=TINYINT},
749
+      drafttype = #{drafttype,jdbcType=INTEGER},
750
+      glfs = #{glfs,jdbcType=VARCHAR},
751
+      storage_org_id = #{storageOrgId,jdbcType=INTEGER},
752
+      keeping_way = #{keepingWay,jdbcType=INTEGER},
753
+      volume = #{volume,jdbcType=DECIMAL},
754
+      length = #{length,jdbcType=DECIMAL},
755
+      width = #{width,jdbcType=DECIMAL},
756
+      trapezoid_upper_length = #{trapezoidUpperLength,jdbcType=DECIMAL},
757
+      trapezoid_lower_length = #{trapezoidLowerLength,jdbcType=DECIMAL},
758
+      trapezoid_upper_width = #{trapezoidUpperWidth,jdbcType=DECIMAL},
759
+      trapezoid_lower_width = #{trapezoidLowerWidth,jdbcType=DECIMAL},
760
+      flat_storage_height = #{flatStorageHeight,jdbcType=DECIMAL},
761
+      trapezoid_height = #{trapezoidHeight,jdbcType=DECIMAL},
762
+      silo_inner_diameter = #{siloInnerDiameter,jdbcType=DECIMAL},
763
+      silo_grain_height = #{siloGrainHeight,jdbcType=DECIMAL},
764
+      packaged_count = #{packagedCount,jdbcType=INTEGER},
765
+      average_weight = #{averageWeight,jdbcType=DECIMAL},
766
+      check_record_ids = #{checkRecordIds,jdbcType=VARCHAR}
767
+    where id = #{id,jdbcType=INTEGER}
768
+  </update>
769
+</mapper>

+ 8 - 0
src/main/java/com/chinaitop/depot/storage/mapper/WarehouseSealingRecordMapper.java

@@ -1,6 +1,9 @@
1 1
 package com.chinaitop.depot.storage.mapper;
2 2
 
3
+import com.chinaitop.depot.storage.model.StorageStorehouseBusiness;
3 4
 import com.chinaitop.depot.storage.model.WarehouseSealingRecord;
5
+import com.chinaitop.depot.storage.model.vo.WareHouseVO;
6
+import org.apache.ibatis.annotations.Param;
4 7
 import org.springframework.stereotype.Repository;
5 8
 
6 9
 import java.util.List;
@@ -20,4 +23,9 @@ public interface WarehouseSealingRecordMapper {
20 23
     List<WarehouseSealingRecord> findByWarehouseSeaList(Map<String, Object> modelMap1);
21 24
 
22 25
 
26
+    List<StorageStorehouseBusiness> findStorehouseList(Integer orgId);
27
+
28
+    List<WareHouseVO> findWareHouse(@Param("storehouseId") Integer storehouseId);
29
+
30
+    WareHouseVO findkcsw(@Param("warehouseId") Integer warehouseId);
23 31
 }

+ 48 - 0
src/main/java/com/chinaitop/depot/storage/mapper/WarehouseSealingRecordMapper.xml

@@ -141,6 +141,54 @@
141 141
     where cc.fcqrdh=#{fcqrdh,jdbcType=VARCHAR}
142 142
       AND (cc.czbz = 'i' OR cc.czbz = 'u')
143 143
   </select>
144
+    <select id="findStorehouseList" parameterType="java.lang.Integer" resultType="com.chinaitop.depot.storage.model.StorageStorehouseBusiness">
145
+      SELECT
146
+        bs.storehouse_id storehouseId,
147
+        bs.storehouse_name storehouseName
148
+      FROM
149
+        business_qc_quality_inspection bqqi
150
+          LEFT JOIN basic_storehouse bs ON bs.storehouse_id = bqqi.basic_storehouse_id
151
+      WHERE
152
+      bqqi.org_id=#{orgId} and bqqi.jylb='02'
153
+
154
+    </select>
155
+  <select id="findWareHouse" parameterType="java.lang.Integer" resultType="com.chinaitop.depot.storage.model.vo.WareHouseVO">
156
+    SELECT
157
+      bw.warehouse_name warehouseName,
158
+      bw.warehouse_id warehouseId,
159
+      bw.aisle_id ajid,
160
+      bua.ajmc
161
+    FROM
162
+      basic_warehouse bw
163
+        LEFT JOIN basic_unit_aisle bua ON bw.aisle_id = bua.id
164
+    WHERE
165
+     bw.storehouse_id=#{storehouseId}
166
+  </select>
167
+  <select id="findkcsw"  parameterType="java.lang.Integer" resultType="com.chinaitop.depot.storage.model.vo.WareHouseVO">
168
+    select
169
+      bw.dutystoreman   bgy,
170
+      kc.mxpz	grainVarietyId,
171
+      kc.hwxz	grainNatureId,
172
+      kc.kcsl lssl,
173
+      kc.dj	grainGradeId,
174
+      kc.gb	producerId,
175
+      kc.cjsj	rcrq,
176
+      pz.enumname as "grainVarietyName",
177
+      xz.enumname as "grainNatureName",
178
+      cd.enumname as "producerName",
179
+      dj.enumname as "grainGradeName",
180
+      shnd.enumname as shnd
181
+    from data_kcgl_kcsw_default kc
182
+           LEFT JOIN  basic_warehouse bw on kc.hwh = bw.warehouse_id
183
+           LEFT JOIN depot_qh.basic_enum pz on pz.enumId = kc.mxpz
184
+           LEFT JOIN depot_qh.basic_enum xz on xz.enumId = kc.hwxz
185
+           LEFT JOIN depot_qh.basic_enum dj on dj.enumId = kc.dj
186
+           LEFT JOIN depot_qh.basic_enum cd on cd.enumId = kc.gb
187
+           LEFT JOIN depot_qh.basic_enum shnd on shnd.enumId = kc.scnf
188
+    where kc.hwh=#{warehouseId}
189
+
190
+
191
+  </select>
144 192
 
145 193
 
146 194
   <insert id="insert" keyProperty="id" useGeneratedKeys="true"  parameterType="com.chinaitop.depot.storage.model.WarehouseSealingRecord">

+ 5 - 0
src/main/java/com/chinaitop/depot/storage/model/ClearanceConfirmation.java

@@ -1,5 +1,7 @@
1 1
 package com.chinaitop.depot.storage.model;
2 2
 
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+
3 5
 import java.math.BigDecimal;
4 6
 import java.util.Date;
5 7
 
@@ -8,10 +10,13 @@ public class ClearanceConfirmation {
8 10
 
9 11
     private Integer id;
10 12
     private String czbz;
13
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
11 14
     private Date zhgxsj;
12 15
     private String createname;
16
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
13 17
     private Date createdate;
14 18
     private String updatename;
19
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
15 20
     private Date updatedate;
16 21
 
17 22
     private String cqqrdh; //出清单确认单号

+ 726 - 0
src/main/java/com/chinaitop/depot/storage/model/GrainSituationCard.java

@@ -0,0 +1,726 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+
6
+public class GrainSituationCard {
7
+    private Integer id;
8
+
9
+    private String createname;
10
+
11
+    private Date createdate;
12
+
13
+    private String updatename;
14
+
15
+    private Date updatedate;
16
+
17
+    private Integer warehouseSealingRecordId;
18
+
19
+    private Integer fillOrgId;
20
+
21
+    private Integer keepOrgId;
22
+
23
+    private Integer basicStorehouseId;
24
+
25
+    private Integer basicUnitAisleId;
26
+
27
+    private Integer warehouseId;
28
+
29
+    private Integer storehouseType;
30
+
31
+    private BigDecimal designCapacity;
32
+
33
+    private Integer grainVarietyId;
34
+
35
+    private Integer grainNatureId;
36
+
37
+    private BigDecimal lssl;
38
+
39
+    private Integer grainAreaId;
40
+
41
+    private Date shnd;
42
+
43
+    private Date rcsj;
44
+
45
+    private Date formWarehouseTime;
46
+
47
+    private Integer grainGradeId;
48
+
49
+    private Byte temperatureMeasureType;
50
+
51
+    private Integer drafttype;
52
+
53
+    private String glfs;
54
+
55
+    private Integer storageOrgId;
56
+
57
+    private Integer keepingWay;
58
+
59
+    private BigDecimal volume;
60
+
61
+    private BigDecimal length;
62
+
63
+    private BigDecimal width;
64
+
65
+    private BigDecimal trapezoidUpperLength;
66
+
67
+    private BigDecimal trapezoidLowerLength;
68
+
69
+    private BigDecimal trapezoidUpperWidth;
70
+
71
+    private BigDecimal trapezoidLowerWidth;
72
+
73
+    private BigDecimal flatStorageHeight;
74
+
75
+    private BigDecimal trapezoidHeight;
76
+
77
+    private BigDecimal siloInnerDiameter;
78
+
79
+    private BigDecimal siloGrainHeight;
80
+
81
+    private Integer packagedCount;
82
+
83
+    private BigDecimal averageWeight;
84
+
85
+    private String checkRecordIds;
86
+
87
+    /**
88
+     * 主键ID
89
+     * @return id 主键ID
90
+     */
91
+    public Integer getId() {
92
+        return id;
93
+    }
94
+
95
+    /**
96
+     * 主键ID
97
+     * @param id 主键ID
98
+     */
99
+    public void setId(Integer id) {
100
+        this.id = id;
101
+    }
102
+
103
+    /**
104
+     * 
105
+     * @return createname 
106
+     */
107
+    public String getCreatename() {
108
+        return createname;
109
+    }
110
+
111
+    /**
112
+     * 
113
+     * @param createname 
114
+     */
115
+    public void setCreatename(String createname) {
116
+        this.createname = createname == null ? null : createname.trim();
117
+    }
118
+
119
+    /**
120
+     * 创建日期
121
+     * @return createdate 创建日期
122
+     */
123
+    public Date getCreatedate() {
124
+        return createdate;
125
+    }
126
+
127
+    /**
128
+     * 创建日期
129
+     * @param createdate 创建日期
130
+     */
131
+    public void setCreatedate(Date createdate) {
132
+        this.createdate = createdate;
133
+    }
134
+
135
+    /**
136
+     * 
137
+     * @return updatename 
138
+     */
139
+    public String getUpdatename() {
140
+        return updatename;
141
+    }
142
+
143
+    /**
144
+     * 
145
+     * @param updatename 
146
+     */
147
+    public void setUpdatename(String updatename) {
148
+        this.updatename = updatename == null ? null : updatename.trim();
149
+    }
150
+
151
+    /**
152
+     * 更新日期
153
+     * @return updatedate 更新日期
154
+     */
155
+    public Date getUpdatedate() {
156
+        return updatedate;
157
+    }
158
+
159
+    /**
160
+     * 更新日期
161
+     * @param updatedate 更新日期
162
+     */
163
+    public void setUpdatedate(Date updatedate) {
164
+        this.updatedate = updatedate;
165
+    }
166
+
167
+    /**
168
+     * warehouse_sealing_record的id;
169
+     * @return warehouse_sealing_record_id warehouse_sealing_record的id;
170
+     */
171
+    public Integer getWarehouseSealingRecordId() {
172
+        return warehouseSealingRecordId;
173
+    }
174
+
175
+    /**
176
+     * warehouse_sealing_record的id;
177
+     * @param warehouseSealingRecordId warehouse_sealing_record的id;
178
+     */
179
+    public void setWarehouseSealingRecordId(Integer warehouseSealingRecordId) {
180
+        this.warehouseSealingRecordId = warehouseSealingRecordId;
181
+    }
182
+
183
+    /**
184
+     * 填卡库区id;org_info的id;
185
+     * @return fill_org_id 填卡库区id;org_info的id;
186
+     */
187
+    public Integer getFillOrgId() {
188
+        return fillOrgId;
189
+    }
190
+
191
+    /**
192
+     * 填卡库区id;org_info的id;
193
+     * @param fillOrgId 填卡库区id;org_info的id;
194
+     */
195
+    public void setFillOrgId(Integer fillOrgId) {
196
+        this.fillOrgId = fillOrgId;
197
+    }
198
+
199
+    /**
200
+     * 保管库区id;org_info的id;
201
+     * @return keep_org_id 保管库区id;org_info的id;
202
+     */
203
+    public Integer getKeepOrgId() {
204
+        return keepOrgId;
205
+    }
206
+
207
+    /**
208
+     * 保管库区id;org_info的id;
209
+     * @param keepOrgId 保管库区id;org_info的id;
210
+     */
211
+    public void setKeepOrgId(Integer keepOrgId) {
212
+        this.keepOrgId = keepOrgId;
213
+    }
214
+
215
+    /**
216
+     * basic_storehouse的id;仓房id;
217
+     * @return basic_storehouse_id basic_storehouse的id;仓房id;
218
+     */
219
+    public Integer getBasicStorehouseId() {
220
+        return basicStorehouseId;
221
+    }
222
+
223
+    /**
224
+     * basic_storehouse的id;仓房id;
225
+     * @param basicStorehouseId basic_storehouse的id;仓房id;
226
+     */
227
+    public void setBasicStorehouseId(Integer basicStorehouseId) {
228
+        this.basicStorehouseId = basicStorehouseId;
229
+    }
230
+
231
+    /**
232
+     * basic_unit_aisle的id;廒间id;
233
+     * @return basic_unit_aisle_id basic_unit_aisle的id;廒间id;
234
+     */
235
+    public Integer getBasicUnitAisleId() {
236
+        return basicUnitAisleId;
237
+    }
238
+
239
+    /**
240
+     * basic_unit_aisle的id;廒间id;
241
+     * @param basicUnitAisleId basic_unit_aisle的id;廒间id;
242
+     */
243
+    public void setBasicUnitAisleId(Integer basicUnitAisleId) {
244
+        this.basicUnitAisleId = basicUnitAisleId;
245
+    }
246
+
247
+    /**
248
+     * basic_warehouse的id;货位id;
249
+     * @return warehouse_id basic_warehouse的id;货位id;
250
+     */
251
+    public Integer getWarehouseId() {
252
+        return warehouseId;
253
+    }
254
+
255
+    /**
256
+     * basic_warehouse的id;货位id;
257
+     * @param warehouseId basic_warehouse的id;货位id;
258
+     */
259
+    public void setWarehouseId(Integer warehouseId) {
260
+        this.warehouseId = warehouseId;
261
+    }
262
+
263
+    /**
264
+     * 仓房类型编号(立筒仓等)
265
+     * @return storehouse_type 仓房类型编号(立筒仓等)
266
+     */
267
+    public Integer getStorehouseType() {
268
+        return storehouseType;
269
+    }
270
+
271
+    /**
272
+     * 仓房类型编号(立筒仓等)
273
+     * @param storehouseType 仓房类型编号(立筒仓等)
274
+     */
275
+    public void setStorehouseType(Integer storehouseType) {
276
+        this.storehouseType = storehouseType;
277
+    }
278
+
279
+    /**
280
+     * 设计容量(数字,单位吨)
281
+     * @return design_capacity 设计容量(数字,单位吨)
282
+     */
283
+    public BigDecimal getDesignCapacity() {
284
+        return designCapacity;
285
+    }
286
+
287
+    /**
288
+     * 设计容量(数字,单位吨)
289
+     * @param designCapacity 设计容量(数字,单位吨)
290
+     */
291
+    public void setDesignCapacity(BigDecimal designCapacity) {
292
+        this.designCapacity = designCapacity;
293
+    }
294
+
295
+    /**
296
+     * 粮食品种;basic_enum的id;
297
+     * @return grain_variety_id 粮食品种;basic_enum的id;
298
+     */
299
+    public Integer getGrainVarietyId() {
300
+        return grainVarietyId;
301
+    }
302
+
303
+    /**
304
+     * 粮食品种;basic_enum的id;
305
+     * @param grainVarietyId 粮食品种;basic_enum的id;
306
+     */
307
+    public void setGrainVarietyId(Integer grainVarietyId) {
308
+        this.grainVarietyId = grainVarietyId;
309
+    }
310
+
311
+    /**
312
+     * 粮食性质;basic_enum的id;
313
+     * @return grain_nature_id 粮食性质;basic_enum的id;
314
+     */
315
+    public Integer getGrainNatureId() {
316
+        return grainNatureId;
317
+    }
318
+
319
+    /**
320
+     * 粮食性质;basic_enum的id;
321
+     * @param grainNatureId 粮食性质;basic_enum的id;
322
+     */
323
+    public void setGrainNatureId(Integer grainNatureId) {
324
+        this.grainNatureId = grainNatureId;
325
+    }
326
+
327
+    /**
328
+     * 粮食数量,单位:公斤
329
+     * @return lssl 粮食数量,单位:公斤
330
+     */
331
+    public BigDecimal getLssl() {
332
+        return lssl;
333
+    }
334
+
335
+    /**
336
+     * 粮食数量,单位:公斤
337
+     * @param lssl 粮食数量,单位:公斤
338
+     */
339
+    public void setLssl(BigDecimal lssl) {
340
+        this.lssl = lssl;
341
+    }
342
+
343
+    /**
344
+     * 粮食产地;basic_enum的id;
345
+     * @return grain_area_id 粮食产地;basic_enum的id;
346
+     */
347
+    public Integer getGrainAreaId() {
348
+        return grainAreaId;
349
+    }
350
+
351
+    /**
352
+     * 粮食产地;basic_enum的id;
353
+     * @param grainAreaId 粮食产地;basic_enum的id;
354
+     */
355
+    public void setGrainAreaId(Integer grainAreaId) {
356
+        this.grainAreaId = grainAreaId;
357
+    }
358
+
359
+    /**
360
+     * 收获年度,格式:YYYY,货位(油罐)状态为2、3、4时必填
361
+     * @return shnd 收获年度,格式:YYYY,货位(油罐)状态为2、3、4时必填
362
+     */
363
+    public Date getShnd() {
364
+        return shnd;
365
+    }
366
+
367
+    /**
368
+     * 收获年度,格式:YYYY,货位(油罐)状态为2、3、4时必填
369
+     * @param shnd 收获年度,格式:YYYY,货位(油罐)状态为2、3、4时必填
370
+     */
371
+    public void setShnd(Date shnd) {
372
+        this.shnd = shnd;
373
+    }
374
+
375
+    /**
376
+     * 入仓日期;第一车粮食入仓时间;
377
+     * @return rcsj 入仓日期;第一车粮食入仓时间;
378
+     */
379
+    public Date getRcsj() {
380
+        return rcsj;
381
+    }
382
+
383
+    /**
384
+     * 入仓日期;第一车粮食入仓时间;
385
+     * @param rcsj 入仓日期;第一车粮食入仓时间;
386
+     */
387
+    public void setRcsj(Date rcsj) {
388
+        this.rcsj = rcsj;
389
+    }
390
+
391
+    /**
392
+     * 形成货位时间;生成粮情卡的时间;
393
+     * @return form_warehouse_time 形成货位时间;生成粮情卡的时间;
394
+     */
395
+    public Date getFormWarehouseTime() {
396
+        return formWarehouseTime;
397
+    }
398
+
399
+    /**
400
+     * 形成货位时间;生成粮情卡的时间;
401
+     * @param formWarehouseTime 形成货位时间;生成粮情卡的时间;
402
+     */
403
+    public void setFormWarehouseTime(Date formWarehouseTime) {
404
+        this.formWarehouseTime = formWarehouseTime;
405
+    }
406
+
407
+    /**
408
+     * 粮食等级;basic_enum的id;
409
+     * @return grain_grade_id 粮食等级;basic_enum的id;
410
+     */
411
+    public Integer getGrainGradeId() {
412
+        return grainGradeId;
413
+    }
414
+
415
+    /**
416
+     * 粮食等级;basic_enum的id;
417
+     * @param grainGradeId 粮食等级;basic_enum的id;
418
+     */
419
+    public void setGrainGradeId(Integer grainGradeId) {
420
+        this.grainGradeId = grainGradeId;
421
+    }
422
+
423
+    /**
424
+     * 测温方式 1:电子测温;2:手动测温;
425
+     * @return temperature_measure_type 测温方式 1:电子测温;2:手动测温;
426
+     */
427
+    public Byte getTemperatureMeasureType() {
428
+        return temperatureMeasureType;
429
+    }
430
+
431
+    /**
432
+     * 测温方式 1:电子测温;2:手动测温;
433
+     * @param temperatureMeasureType 测温方式 1:电子测温;2:手动测温;
434
+     */
435
+    public void setTemperatureMeasureType(Byte temperatureMeasureType) {
436
+        this.temperatureMeasureType = temperatureMeasureType;
437
+    }
438
+
439
+    /**
440
+     * 通风方式
441
+     * @return drafttype 通风方式
442
+     */
443
+    public Integer getDrafttype() {
444
+        return drafttype;
445
+    }
446
+
447
+    /**
448
+     * 通风方式
449
+     * @param drafttype 通风方式
450
+     */
451
+    public void setDrafttype(Integer drafttype) {
452
+        this.drafttype = drafttype;
453
+    }
454
+
455
+    /**
456
+     * 管理方式 01 直储;02 代储;03 租仓;04 委托;
457
+     * @return glfs 管理方式 01 直储;02 代储;03 租仓;04 委托;
458
+     */
459
+    public String getGlfs() {
460
+        return glfs;
461
+    }
462
+
463
+    /**
464
+     * 管理方式 01 直储;02 代储;03 租仓;04 委托;
465
+     * @param glfs 管理方式 01 直储;02 代储;03 租仓;04 委托;
466
+     */
467
+    public void setGlfs(String glfs) {
468
+        this.glfs = glfs == null ? null : glfs.trim();
469
+    }
470
+
471
+    /**
472
+     * 存储地点库区id;org_info的id;
473
+     * @return storage_org_id 存储地点库区id;org_info的id;
474
+     */
475
+    public Integer getStorageOrgId() {
476
+        return storageOrgId;
477
+    }
478
+
479
+    /**
480
+     * 存储地点库区id;org_info的id;
481
+     * @param storageOrgId 存储地点库区id;org_info的id;
482
+     */
483
+    public void setStorageOrgId(Integer storageOrgId) {
484
+        this.storageOrgId = storageOrgId;
485
+    }
486
+
487
+    /**
488
+     * 保管方式
489
+     * @return keeping_way 保管方式
490
+     */
491
+    public Integer getKeepingWay() {
492
+        return keepingWay;
493
+    }
494
+
495
+    /**
496
+     * 保管方式
497
+     * @param keepingWay 保管方式
498
+     */
499
+    public void setKeepingWay(Integer keepingWay) {
500
+        this.keepingWay = keepingWay;
501
+    }
502
+
503
+    /**
504
+     * 散存粮体积(立方米)
505
+     * @return volume 散存粮体积(立方米)
506
+     */
507
+    public BigDecimal getVolume() {
508
+        return volume;
509
+    }
510
+
511
+    /**
512
+     * 散存粮体积(立方米)
513
+     * @param volume 散存粮体积(立方米)
514
+     */
515
+    public void setVolume(BigDecimal volume) {
516
+        this.volume = volume;
517
+    }
518
+
519
+    /**
520
+     * 长(米)
521
+     * @return length 长(米)
522
+     */
523
+    public BigDecimal getLength() {
524
+        return length;
525
+    }
526
+
527
+    /**
528
+     * 长(米)
529
+     * @param length 长(米)
530
+     */
531
+    public void setLength(BigDecimal length) {
532
+        this.length = length;
533
+    }
534
+
535
+    /**
536
+     * 宽(米)
537
+     * @return width 宽(米)
538
+     */
539
+    public BigDecimal getWidth() {
540
+        return width;
541
+    }
542
+
543
+    /**
544
+     * 宽(米)
545
+     * @param width 宽(米)
546
+     */
547
+    public void setWidth(BigDecimal width) {
548
+        this.width = width;
549
+    }
550
+
551
+    /**
552
+     * 梯形粮堆-上底长
553
+     * @return trapezoid_upper_length 梯形粮堆-上底长
554
+     */
555
+    public BigDecimal getTrapezoidUpperLength() {
556
+        return trapezoidUpperLength;
557
+    }
558
+
559
+    /**
560
+     * 梯形粮堆-上底长
561
+     * @param trapezoidUpperLength 梯形粮堆-上底长
562
+     */
563
+    public void setTrapezoidUpperLength(BigDecimal trapezoidUpperLength) {
564
+        this.trapezoidUpperLength = trapezoidUpperLength;
565
+    }
566
+
567
+    /**
568
+     * 梯形粮堆-下底长
569
+     * @return trapezoid_lower_length 梯形粮堆-下底长
570
+     */
571
+    public BigDecimal getTrapezoidLowerLength() {
572
+        return trapezoidLowerLength;
573
+    }
574
+
575
+    /**
576
+     * 梯形粮堆-下底长
577
+     * @param trapezoidLowerLength 梯形粮堆-下底长
578
+     */
579
+    public void setTrapezoidLowerLength(BigDecimal trapezoidLowerLength) {
580
+        this.trapezoidLowerLength = trapezoidLowerLength;
581
+    }
582
+
583
+    /**
584
+     * 梯形粮堆-上底宽
585
+     * @return trapezoid_upper_width 梯形粮堆-上底宽
586
+     */
587
+    public BigDecimal getTrapezoidUpperWidth() {
588
+        return trapezoidUpperWidth;
589
+    }
590
+
591
+    /**
592
+     * 梯形粮堆-上底宽
593
+     * @param trapezoidUpperWidth 梯形粮堆-上底宽
594
+     */
595
+    public void setTrapezoidUpperWidth(BigDecimal trapezoidUpperWidth) {
596
+        this.trapezoidUpperWidth = trapezoidUpperWidth;
597
+    }
598
+
599
+    /**
600
+     * 梯形粮堆-下底宽
601
+     * @return trapezoid_lower_width 梯形粮堆-下底宽
602
+     */
603
+    public BigDecimal getTrapezoidLowerWidth() {
604
+        return trapezoidLowerWidth;
605
+    }
606
+
607
+    /**
608
+     * 梯形粮堆-下底宽
609
+     * @param trapezoidLowerWidth 梯形粮堆-下底宽
610
+     */
611
+    public void setTrapezoidLowerWidth(BigDecimal trapezoidLowerWidth) {
612
+        this.trapezoidLowerWidth = trapezoidLowerWidth;
613
+    }
614
+
615
+    /**
616
+     * 平房仓粮堆(高)
617
+     * @return flat_storage_height 平房仓粮堆(高)
618
+     */
619
+    public BigDecimal getFlatStorageHeight() {
620
+        return flatStorageHeight;
621
+    }
622
+
623
+    /**
624
+     * 平房仓粮堆(高)
625
+     * @param flatStorageHeight 平房仓粮堆(高)
626
+     */
627
+    public void setFlatStorageHeight(BigDecimal flatStorageHeight) {
628
+        this.flatStorageHeight = flatStorageHeight;
629
+    }
630
+
631
+    /**
632
+     * 梯形高
633
+     * @return trapezoid_height 梯形高
634
+     */
635
+    public BigDecimal getTrapezoidHeight() {
636
+        return trapezoidHeight;
637
+    }
638
+
639
+    /**
640
+     * 梯形高
641
+     * @param trapezoidHeight 梯形高
642
+     */
643
+    public void setTrapezoidHeight(BigDecimal trapezoidHeight) {
644
+        this.trapezoidHeight = trapezoidHeight;
645
+    }
646
+
647
+    /**
648
+     * 筒仓内直径
649
+     * @return silo_inner_diameter 筒仓内直径
650
+     */
651
+    public BigDecimal getSiloInnerDiameter() {
652
+        return siloInnerDiameter;
653
+    }
654
+
655
+    /**
656
+     * 筒仓内直径
657
+     * @param siloInnerDiameter 筒仓内直径
658
+     */
659
+    public void setSiloInnerDiameter(BigDecimal siloInnerDiameter) {
660
+        this.siloInnerDiameter = siloInnerDiameter;
661
+    }
662
+
663
+    /**
664
+     * 筒仓内粮堆高
665
+     * @return silo_grain_height 筒仓内粮堆高
666
+     */
667
+    public BigDecimal getSiloGrainHeight() {
668
+        return siloGrainHeight;
669
+    }
670
+
671
+    /**
672
+     * 筒仓内粮堆高
673
+     * @param siloGrainHeight 筒仓内粮堆高
674
+     */
675
+    public void setSiloGrainHeight(BigDecimal siloGrainHeight) {
676
+        this.siloGrainHeight = siloGrainHeight;
677
+    }
678
+
679
+    /**
680
+     * 包装散存包数
681
+     * @return packaged_count 包装散存包数
682
+     */
683
+    public Integer getPackagedCount() {
684
+        return packagedCount;
685
+    }
686
+
687
+    /**
688
+     * 包装散存包数
689
+     * @param packagedCount 包装散存包数
690
+     */
691
+    public void setPackagedCount(Integer packagedCount) {
692
+        this.packagedCount = packagedCount;
693
+    }
694
+
695
+    /**
696
+     * 平均包重
697
+     * @return average_weight 平均包重
698
+     */
699
+    public BigDecimal getAverageWeight() {
700
+        return averageWeight;
701
+    }
702
+
703
+    /**
704
+     * 平均包重
705
+     * @param averageWeight 平均包重
706
+     */
707
+    public void setAverageWeight(BigDecimal averageWeight) {
708
+        this.averageWeight = averageWeight;
709
+    }
710
+
711
+    /**
712
+     * 检查记录id;storage_qualitycheck的id;数组","分隔;
713
+     * @return check_record_ids 检查记录id;storage_qualitycheck的id;数组","分隔;
714
+     */
715
+    public String getCheckRecordIds() {
716
+        return checkRecordIds;
717
+    }
718
+
719
+    /**
720
+     * 检查记录id;storage_qualitycheck的id;数组","分隔;
721
+     * @param checkRecordIds 检查记录id;storage_qualitycheck的id;数组","分隔;
722
+     */
723
+    public void setCheckRecordIds(String checkRecordIds) {
724
+        this.checkRecordIds = checkRecordIds == null ? null : checkRecordIds.trim();
725
+    }
726
+}

Разница между файлами не показана из-за своего большого размера
+ 2687 - 0
src/main/java/com/chinaitop/depot/storage/model/GrainSituationCardExample.java


+ 5 - 0
src/main/java/com/chinaitop/depot/storage/model/WarehouseSealingRecord.java

@@ -1,5 +1,7 @@
1 1
 package com.chinaitop.depot.storage.model;
2 2
 
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+
3 5
 import java.math.BigDecimal;
4 6
 import java.util.Date;
5 7
 
@@ -8,10 +10,13 @@ public class WarehouseSealingRecord {
8 10
 
9 11
     private Integer id;
10 12
     private String czbz;
13
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
11 14
     private Date zhgxsj;
12 15
     private String createname;
16
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
13 17
     private Date createdate;
14 18
     private String updatename;
19
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
15 20
     private Date updatedate;
16 21
 
17 22
     private String fcqrdh; //封仓单确认单号

+ 43 - 0
src/main/java/com/chinaitop/depot/storage/model/vo/WareHouseVO.java

@@ -0,0 +1,43 @@
1
+package com.chinaitop.depot.storage.model.vo;
2
+
3
+public class WareHouseVO {
4
+
5
+    private Integer warehouseId;
6
+
7
+    private Integer ajid;
8
+    private String ajmc; //廒间名称
9
+
10
+    private String warehouseName;//货位名称
11
+
12
+    public Integer getWarehouseId() {
13
+        return warehouseId;
14
+    }
15
+
16
+    public void setWarehouseId(Integer warehouseId) {
17
+        this.warehouseId = warehouseId;
18
+    }
19
+
20
+    public Integer getAjId() {
21
+        return ajid;
22
+    }
23
+
24
+    public void setAjId(Integer ajId) {
25
+        this.ajid = ajId;
26
+    }
27
+
28
+    public String getAjmc() {
29
+        return ajmc;
30
+    }
31
+
32
+    public void setAjmc(String ajmc) {
33
+        this.ajmc = ajmc;
34
+    }
35
+
36
+    public String getWarehouseName() {
37
+        return warehouseName;
38
+    }
39
+
40
+    public void setWarehouseName(String warehouseName) {
41
+        this.warehouseName = warehouseName;
42
+    }
43
+}

+ 44 - 0
src/main/java/com/chinaitop/depot/storage/model/vo/kcswVO.java

@@ -0,0 +1,44 @@
1
+package com.chinaitop.depot.storage.model.vo;
2
+
3
+import io.swagger.annotations.ApiModelProperty;
4
+
5
+import java.util.Date;
6
+
7
+public class kcswVO {
8
+
9
+    private String bgy;
10
+
11
+     private Double lssl;
12
+
13
+     private Date  rcrq;
14
+
15
+    @ApiModelProperty(value = "粮食品种;basic_enum的id;")
16
+    private Integer grainVarietyId;
17
+
18
+    @ApiModelProperty(value = "粮食性质;basic_enum的id;")
19
+    private Integer grainNatureId;
20
+
21
+    @ApiModelProperty(value = "粮食等级;basic_enum的id;")
22
+    private Integer grainGradeId;
23
+
24
+    @ApiModelProperty(value = "粮食产地;basic_enum的id;")
25
+    private Integer producerId;
26
+
27
+    @ApiModelProperty(value = "basic_storehouse的id;仓房名称")
28
+    private String basicStorehouseName;
29
+
30
+    @ApiModelProperty(value = "basic_warehouse的id;货位名称")
31
+    private String warehouseName;
32
+
33
+    @ApiModelProperty(value = "粮食品种;basic_enum的id;粮食品种名称")
34
+    private String grainVarietyName;
35
+
36
+    @ApiModelProperty(value = "粮食性质;basic_enum的id;粮食性质名称")
37
+    private String grainNatureName;
38
+
39
+    @ApiModelProperty(value = "粮食等级;basic_enum的id;粮食等级名称")
40
+    private String grainGradeName;
41
+
42
+    @ApiModelProperty(value = "粮食产地;basic_enum的id;粮食产地名称")
43
+    private String producerName;
44
+}

+ 7 - 0
src/main/java/com/chinaitop/depot/storage/service/WarehouseSealingRecordService.java

@@ -1,7 +1,9 @@
1 1
 package com.chinaitop.depot.storage.service;
2 2
 
3 3
 
4
+import com.chinaitop.depot.storage.model.StorageStorehouseBusiness;
4 5
 import com.chinaitop.depot.storage.model.WarehouseSealingRecord;
6
+import com.chinaitop.depot.storage.model.vo.WareHouseVO;
5 7
 
6 8
 import javax.servlet.http.HttpServletRequest;
7 9
 import java.util.List;
@@ -35,4 +37,9 @@ public interface WarehouseSealingRecordService {
35 37
     public void updateBasicStorehouse(WarehouseSealingRecord WarehouseSealingRecord);
36 38
 
37 39
 
40
+    List<StorageStorehouseBusiness> findStorehouse(Integer orgId);
41
+
42
+    List<WareHouseVO> findWareHouse(Integer storehouseId);
43
+
44
+    WareHouseVO findkcsw(Integer warehouseId);
38 45
 }

+ 31 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/WarehouseSealingRecordServiceImpl.java

@@ -2,7 +2,9 @@ package com.chinaitop.depot.storage.service.impl;
2 2
 
3 3
 import com.alibaba.fastjson.JSONObject;
4 4
 import com.chinaitop.depot.storage.mapper.WarehouseSealingRecordMapper;
5
+import com.chinaitop.depot.storage.model.StorageStorehouseBusiness;
5 6
 import com.chinaitop.depot.storage.model.WarehouseSealingRecord;
7
+import com.chinaitop.depot.storage.model.vo.WareHouseVO;
6 8
 import com.chinaitop.depot.storage.service.WarehouseSealingRecordService;
7 9
 import com.fasterxml.jackson.databind.ObjectMapper;
8 10
 import org.apache.commons.lang.ObjectUtils;
@@ -96,4 +98,33 @@ public class WarehouseSealingRecordServiceImpl implements WarehouseSealingRecord
96 98
     public void updateBasicStorehouse(WarehouseSealingRecord WarehouseSealingRecord){
97 99
         WarehouseSealingRecordMapper.updateByPrimaryKey(WarehouseSealingRecord);
98 100
     }
101
+
102
+    /**
103
+     * 查询本库区做过出仓检验的的仓房
104
+     * @param orgId
105
+     * @return
106
+     */
107
+    @Override
108
+    public List<StorageStorehouseBusiness> findStorehouse(Integer orgId) {
109
+        List<StorageStorehouseBusiness> storageStorehouseBusinessList= WarehouseSealingRecordMapper.findStorehouseList(orgId);
110
+        return storageStorehouseBusinessList;
111
+    }
112
+
113
+    /**
114
+     *
115
+     * @param storehouseId
116
+     * @return
117
+     */
118
+    @Override
119
+    public List<WareHouseVO> findWareHouse(Integer storehouseId) {
120
+        List<WareHouseVO> wareHouseVOList = WarehouseSealingRecordMapper.findWareHouse(storehouseId);
121
+        return wareHouseVOList;
122
+    }
123
+
124
+    @Override
125
+    public WareHouseVO findkcsw(Integer warehouseId) {
126
+        WareHouseVO wareHouseVO =WarehouseSealingRecordMapper.findkcsw(warehouseId);
127
+
128
+        return wareHouseVO;
129
+    }
99 130
 }

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/utils/GeneratorSqlmap.java

@@ -16,7 +16,7 @@ public class GeneratorSqlmap {
16 16
 		List<String> warnings = new ArrayList<String>();
17 17
 		boolean overwrite = true;
18 18
 		//指定 逆向工程配置文件(写自己电脑的路径)
19
-		File configFile = new File("D:\\git_ziguangyun_gogs\\tianjin\\depot-qualitycheck-tianjin\\src\\main\\resources\\generatorConfig.xml");
19
+		File configFile = new File("D:\\Zero\\qinghai\\depot-basic-qinghai\\src\\main\\resources\\generatorConfig.xml");
20 20
 		ConfigurationParser cp = new ConfigurationParser(warnings);
21 21
 		Configuration config = cp.parseConfiguration(configFile);
22 22
 		DefaultShellCallback callback = new DefaultShellCallback(overwrite);

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -8,4 +8,4 @@ spring:
8 8
   profiles:
9 9
     active: dev
10 10
 mybatis:
11
-  config-location: classpath:mybatis/mybatis-config.xml
11
+  config-location: classpath:mybatis/mybatis-config.xml

+ 11 - 12
src/main/resources/generatorConfig.xml

@@ -6,17 +6,17 @@
6 6
 <generatorConfiguration>
7 7
 	<context id="testTables" targetRuntime="MyBatis3">
8 8
 		<!-- 生成注释时,必须加type="MyCommentGenerator" -->
9
-		<!-- <commentGenerator type="com.chinaitop.depot.storage.utils.MyCommentGenerator">
10
-			是否去除自动生成的注释 true:是 : false:否
9
+		<commentGenerator type="com.chinaitop.depot.utils.MyCommentGenerator">
10
+			<!-- 是否去除自动生成的注释 true:是 : false:否 -->
11 11
 			<property name="suppressAllComments" value="false" />
12
-		</commentGenerator> -->
12
+		</commentGenerator>
13 13
 		
14 14
 		<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
15 15
 		<jdbcConnection 
16
-			driverClass="com.gbasedbt.jdbc.IfxDriver"
17
-			connectionURL="jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;"
18
-			userId="gbasedbt"
19
-			password="GBase123">
16
+			driverClass="com.mysql.jdbc.Driver"
17
+			connectionURL="jdbc:mysql://172.16.0.36:3306/province_all;useSSL=false"
18
+			userId="root"
19
+			password="123456">
20 20
 		</jdbcConnection>
21 21
 		
22 22
 		<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和 
@@ -26,7 +26,7 @@
26 26
 		</javaTypeResolver>
27 27
 
28 28
 		<!-- targetProject:生成PO类的位置 -->
29
-		<javaModelGenerator targetPackage="com.chinaitop.depot.storages.model"
29
+		<javaModelGenerator targetPackage="com.chinaitop.depot.agent.bgz.model"
30 30
 			targetProject=".\src\main\java">
31 31
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
32 32
 			<property name="enableSubPackages" value="false" />
@@ -35,7 +35,7 @@
35 35
 		</javaModelGenerator>
36 36
 		
37 37
         <!-- targetProject:mapper映射文件生成的位置 -->
38
-		<sqlMapGenerator targetPackage="com.chinaitop.depot.storages.mapper"
38
+		<sqlMapGenerator targetPackage="com.chinaitop.depot.agent.bgz.mapper" 
39 39
 			targetProject=".\src\main\java">
40 40
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
41 41
 			<property name="enableSubPackages" value="false" />
@@ -43,15 +43,14 @@
43 43
 		
44 44
 		<!-- targetPackage:mapper接口生成的位置 -->
45 45
 		<javaClientGenerator type="XMLMAPPER"
46
-			targetPackage="com.chinaitop.depot.storages.mapper"
46
+			targetPackage="com.chinaitop.depot.agent.bgz.mapper" 
47 47
 			targetProject=".\src\main\java">
48 48
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
49 49
 			<property name="enableSubPackages" value="false" />
50 50
 		</javaClientGenerator>
51 51
 		
52 52
 		<!-- 指定要反向生成的数据库表 -->
53
-<!-- 		<table schema="" tableName="storage_qualitystandard_main"></table> -->
54
-		<table schema="" tableName="t_ventilation_operation"></table>
53
+		<table schema="" tableName="business_agent_bgmxz"></table>
55 54
 
56 55
 	</context>
57 56
 </generatorConfiguration>