fanxw 5 년 전
부모
커밋
2a4072d6cb

+ 10 - 0
pom.xml

@@ -142,6 +142,16 @@
142 142
             <artifactId>httpclient</artifactId>
143 143
             <version>4.5.6</version>
144 144
         </dependency>
145
+        <!--添加webservice-->
146
+		<dependency>
147
+		   <groupId>org.apache.cxf</groupId>
148
+		   <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
149
+		   <version>3.2.4</version>
150
+        </dependency>
151
+        <dependency>
152
+            <groupId>org.springframework.boot</groupId>
153
+            <artifactId>spring-boot-starter-web-services</artifactId>
154
+        </dependency>
145 155
 	</dependencies>
146 156
 
147 157
 	<dependencyManagement>

+ 24 - 0
src/main/java/com/chinaitop/depot/basic/controller/BasicWarehouseController.java

@@ -306,4 +306,28 @@ public class BasicWarehouseController {
306 306
 			}
307 307
 		}
308 308
 	}
309
+
310
+	@RequestMapping(value="/updateWarehouseCrkStatus", method=RequestMethod.POST)
311
+	@ApiOperation(value="修改货位的出入库状态值", notes = "修改货位的出入库状态值")
312
+	@ApiImplicitParams({
313
+		@ApiImplicitParam(name = "wareId", value = "货位ID", paramType = "form"),
314
+		@ApiImplicitParam(name = "crk_status", value = "出入库状态(1空仓,2入库中,3封仓,4出库中,9其它)", paramType = "form")
315
+	})
316
+	public void updateWarehouseCrkStatus(Integer wareId, String crk_status) {
317
+
318
+		try {
319
+			if (null != wareId && null != crk_status && !"".equals(crk_status)) {
320
+				BasicWarehouse warehouse = new BasicWarehouse();
321
+				warehouse.setWarehouseId(wareId);
322
+				warehouse.setCrkStatus(crk_status);
323
+				
324
+				//修改数据
325
+				basicWarehouseService.update(warehouse);
326
+			} else {
327
+				System.out.println("更新出入库状态值crk_status出错,参数:货位ID="+wareId+",出入库状态值="+crk_status);
328
+			}
329
+		} catch (NumberFormatException e) {
330
+			e.printStackTrace();
331
+		}
332
+	}
309 333
 }

+ 4 - 0
src/main/java/com/chinaitop/depot/basic/mapper/BasicWarehouseMapper.java

@@ -3,6 +3,8 @@ package com.chinaitop.depot.basic.mapper;
3 3
 import com.chinaitop.depot.basic.model.BasicWarehouse;
4 4
 import com.chinaitop.depot.basic.model.BasicWarehouseExample;
5 5
 import java.util.List;
6
+import java.util.Map;
7
+
6 8
 import org.apache.ibatis.annotations.Param;
7 9
 
8 10
 public interface BasicWarehouseMapper {
@@ -27,4 +29,6 @@ public interface BasicWarehouseMapper {
27 29
     int updateByPrimaryKeySelective(BasicWarehouse record);
28 30
 
29 31
     int updateByPrimaryKey(BasicWarehouse record);
32
+
33
+	void updateWareStatus(Map<String, Object> param);
30 34
 }

+ 233 - 209
src/main/java/com/chinaitop/depot/basic/mapper/BasicWarehouseMapper.xml

@@ -1,51 +1,52 @@
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.basic.mapper.BasicWarehouseMapper" >
4
-  <resultMap id="BaseResultMap" type="com.chinaitop.depot.basic.model.BasicWarehouse" >
5
-    <id column="warehouse_id" property="warehouseId" jdbcType="INTEGER" />
6
-    <result column="depot_id" property="depotId" jdbcType="INTEGER" />
7
-    <result column="depot_name" property="depotName" jdbcType="VARCHAR" />
8
-    <result column="storehouse_id" property="storehouseId" jdbcType="INTEGER" />
9
-    <result column="warehouse_code" property="warehouseCode" jdbcType="VARCHAR" />
10
-    <result column="warehouse_name" property="warehouseName" jdbcType="VARCHAR" />
11
-    <result column="warehouse_use_time" property="warehouseUseTime" jdbcType="TIMESTAMP" />
12
-    <result column="warehouse_status" property="warehouseStatus" jdbcType="INTEGER" />
13
-    <result column="store_way" property="storeWay" jdbcType="INTEGER" />
14
-    <result column="length" property="length" jdbcType="DECIMAL" />
15
-    <result column="width" property="width" jdbcType="DECIMAL" />
16
-    <result column="heigth" property="heigth" jdbcType="DECIMAL" />
17
-    <result column="contact_number" property="contactNumber" jdbcType="VARCHAR" />
18
-    <result column="warehouse_capacity" property="warehouseCapacity" jdbcType="DECIMAL" />
19
-    <result column="dutyStoreman" property="dutystoreman" jdbcType="VARCHAR" />
20
-    <result column="remark" property="remark" jdbcType="VARCHAR" />
21
-    <result column="ware_img" property="wareImg" jdbcType="VARCHAR" />
22
-    <result column="createName" property="createname" jdbcType="VARCHAR" />
23
-    <result column="updateName" property="updatename" jdbcType="VARCHAR" />
24
-    <result column="createDate" property="createdate" jdbcType="TIMESTAMP" />
25
-    <result column="updateDate" property="updatedate" jdbcType="TIMESTAMP" />
26
-    <result column="del_flag" property="delFlag" jdbcType="INTEGER" />
27
-    <result column="org_id" property="orgId" jdbcType="INTEGER" />
28
-    <result column="library_type" property="libraryType" jdbcType="VARCHAR" />
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.basic.mapper.BasicWarehouseMapper">
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.basic.model.BasicWarehouse">
5
+    <id column="warehouse_id" jdbcType="INTEGER" property="warehouseId" />
6
+    <result column="depot_id" jdbcType="INTEGER" property="depotId" />
7
+    <result column="depot_name" jdbcType="VARCHAR" property="depotName" />
8
+    <result column="storehouse_id" jdbcType="INTEGER" property="storehouseId" />
9
+    <result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
10
+    <result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
11
+    <result column="warehouse_use_time" jdbcType="TIMESTAMP" property="warehouseUseTime" />
12
+    <result column="warehouse_status" jdbcType="INTEGER" property="warehouseStatus" />
13
+    <result column="store_way" jdbcType="INTEGER" property="storeWay" />
14
+    <result column="length" jdbcType="DECIMAL" property="length" />
15
+    <result column="width" jdbcType="DECIMAL" property="width" />
16
+    <result column="heigth" jdbcType="DECIMAL" property="heigth" />
17
+    <result column="contact_number" jdbcType="VARCHAR" property="contactNumber" />
18
+    <result column="warehouse_capacity" jdbcType="DECIMAL" property="warehouseCapacity" />
19
+    <result column="dutyStoreman" jdbcType="VARCHAR" property="dutystoreman" />
20
+    <result column="remark" jdbcType="VARCHAR" property="remark" />
21
+    <result column="ware_img" jdbcType="VARCHAR" property="wareImg" />
22
+    <result column="createName" jdbcType="VARCHAR" property="createname" />
23
+    <result column="updateName" jdbcType="VARCHAR" property="updatename" />
24
+    <result column="createDate" jdbcType="TIMESTAMP" property="createdate" />
25
+    <result column="updateDate" jdbcType="TIMESTAMP" property="updatedate" />
26
+    <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
27
+    <result column="org_id" jdbcType="INTEGER" property="orgId" />
28
+    <result column="library_type" jdbcType="VARCHAR" property="libraryType" />
29
+    <result column="crk_status" jdbcType="VARCHAR" property="crkStatus" />
29 30
   </resultMap>
30
-  <sql id="Example_Where_Clause" >
31
-    <where >
32
-      <foreach collection="oredCriteria" item="criteria" separator="or" >
33
-        <if test="criteria.valid" >
34
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
35
-            <foreach collection="criteria.criteria" item="criterion" >
36
-              <choose >
37
-                <when test="criterion.noValue" >
31
+  <sql id="Example_Where_Clause">
32
+    <where>
33
+      <foreach collection="oredCriteria" item="criteria" separator="or">
34
+        <if test="criteria.valid">
35
+          <trim prefix="(" prefixOverrides="and" suffix=")">
36
+            <foreach collection="criteria.criteria" item="criterion">
37
+              <choose>
38
+                <when test="criterion.noValue">
38 39
                   and ${criterion.condition}
39 40
                 </when>
40
-                <when test="criterion.singleValue" >
41
+                <when test="criterion.singleValue">
41 42
                   and ${criterion.condition} #{criterion.value}
42 43
                 </when>
43
-                <when test="criterion.betweenValue" >
44
+                <when test="criterion.betweenValue">
44 45
                   and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
45 46
                 </when>
46
-                <when test="criterion.listValue" >
47
+                <when test="criterion.listValue">
47 48
                   and ${criterion.condition}
48
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
49
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
49 50
                     #{listItem}
50 51
                   </foreach>
51 52
                 </when>
@@ -56,25 +57,25 @@
56 57
       </foreach>
57 58
     </where>
58 59
   </sql>
59
-  <sql id="Update_By_Example_Where_Clause" >
60
-    <where >
61
-      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
62
-        <if test="criteria.valid" >
63
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
64
-            <foreach collection="criteria.criteria" item="criterion" >
65
-              <choose >
66
-                <when test="criterion.noValue" >
60
+  <sql id="Update_By_Example_Where_Clause">
61
+    <where>
62
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
63
+        <if test="criteria.valid">
64
+          <trim prefix="(" prefixOverrides="and" suffix=")">
65
+            <foreach collection="criteria.criteria" item="criterion">
66
+              <choose>
67
+                <when test="criterion.noValue">
67 68
                   and ${criterion.condition}
68 69
                 </when>
69
-                <when test="criterion.singleValue" >
70
+                <when test="criterion.singleValue">
70 71
                   and ${criterion.condition} #{criterion.value}
71 72
                 </when>
72
-                <when test="criterion.betweenValue" >
73
+                <when test="criterion.betweenValue">
73 74
                   and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
74 75
                 </when>
75
-                <when test="criterion.listValue" >
76
+                <when test="criterion.listValue">
76 77
                   and ${criterion.condition}
77
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
78
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
78 79
                     #{listItem}
79 80
                   </foreach>
80 81
                 </when>
@@ -85,402 +86,418 @@
85 86
       </foreach>
86 87
     </where>
87 88
   </sql>
88
-  <sql id="Base_Column_List" >
89
+  <sql id="Base_Column_List">
89 90
     warehouse_id, depot_id, depot_name, storehouse_id, warehouse_code, warehouse_name, 
90
-    warehouse_use_time, warehouse_status, store_way, length, width, heigth, contact_number,  
91
-    warehouse_capacity, dutyStoreman,remark, ware_img, createName, updateName, createDate, updateDate, 
92
-    del_flag, org_id, library_type
91
+    warehouse_use_time, warehouse_status, store_way, length, width, heigth, contact_number, 
92
+    warehouse_capacity, dutyStoreman, remark, ware_img, createName, updateName, createDate, 
93
+    updateDate, del_flag, org_id, library_type, crk_status
93 94
   </sql>
94
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.basic.model.BasicWarehouseExample" >
95
+  <select id="selectByExample" parameterType="com.chinaitop.depot.basic.model.BasicWarehouseExample" resultMap="BaseResultMap">
95 96
     select
96
-    <if test="distinct" >
97
+    <if test="distinct">
97 98
       distinct
98 99
     </if>
99 100
     <include refid="Base_Column_List" />
100 101
     from basic_warehouse
101
-    <if test="_parameter != null" >
102
+    <if test="_parameter != null">
102 103
       <include refid="Example_Where_Clause" />
103 104
     </if>
104
-    <if test="orderByClause != null" >
105
+    <if test="orderByClause != null">
105 106
       order by ${orderByClause}
106 107
     </if>
107 108
   </select>
108
-  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
109
-    select
109
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
110
+    select 
110 111
     <include refid="Base_Column_List" />
111 112
     from basic_warehouse
112 113
     where warehouse_id = #{warehouseId,jdbcType=INTEGER}
113 114
   </select>
114
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
115
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
115 116
     delete from basic_warehouse
116 117
     where warehouse_id = #{warehouseId,jdbcType=INTEGER}
117 118
   </delete>
118
-  <delete id="deleteByExample" parameterType="com.chinaitop.depot.basic.model.BasicWarehouseExample" >
119
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.basic.model.BasicWarehouseExample">
119 120
     delete from basic_warehouse
120
-    <if test="_parameter != null" >
121
+    <if test="_parameter != null">
121 122
       <include refid="Example_Where_Clause" />
122 123
     </if>
123 124
   </delete>
124
-  <insert id="insert" parameterType="com.chinaitop.depot.basic.model.BasicWarehouse" >
125
+  <insert id="insert" parameterType="com.chinaitop.depot.basic.model.BasicWarehouse">
125 126
     insert into basic_warehouse (warehouse_id, depot_id, depot_name, 
126 127
       storehouse_id, warehouse_code, warehouse_name, 
127
-      warehouse_use_time, warehouse_status, store_way, length, width, heigth, contact_number,
128
-      warehouse_capacity, dutyStoreman, remark, 
129
-      ware_img, createName, updateName, 
130
-      createDate, updateDate, del_flag, 
131
-      org_id, library_type)
128
+      warehouse_use_time, warehouse_status, store_way, 
129
+      length, width, heigth, 
130
+      contact_number, warehouse_capacity, dutyStoreman, 
131
+      remark, ware_img, createName, 
132
+      updateName, createDate, updateDate, 
133
+      del_flag, org_id, library_type, 
134
+      crk_status)
132 135
     values (#{warehouseId,jdbcType=INTEGER}, #{depotId,jdbcType=INTEGER}, #{depotName,jdbcType=VARCHAR}, 
133 136
       #{storehouseId,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, 
134 137
       #{warehouseUseTime,jdbcType=TIMESTAMP}, #{warehouseStatus,jdbcType=INTEGER}, #{storeWay,jdbcType=INTEGER}, 
135
-      #{length,jdbcType=DECIMAL},#{width,jdbcType=DECIMAL},#{heigth,jdbcType=DECIMAL},#{contactNumber,jdbcType=VARCHAR}, 
136
-      #{warehouseCapacity,jdbcType=DECIMAL}, #{dutystoreman,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, 
137
-      #{wareImg,jdbcType=VARCHAR}, #{createname,jdbcType=VARCHAR}, #{updatename,jdbcType=VARCHAR}, 
138
-      #{createdate,jdbcType=TIMESTAMP}, #{updatedate,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}, 
139
-      #{orgId,jdbcType=INTEGER}, #{libraryType,jdbcType=VARCHAR})
138
+      #{length,jdbcType=DECIMAL}, #{width,jdbcType=DECIMAL}, #{heigth,jdbcType=DECIMAL}, 
139
+      #{contactNumber,jdbcType=VARCHAR}, #{warehouseCapacity,jdbcType=DECIMAL}, #{dutystoreman,jdbcType=VARCHAR}, 
140
+      #{remark,jdbcType=VARCHAR}, #{wareImg,jdbcType=VARCHAR}, #{createname,jdbcType=VARCHAR}, 
141
+      #{updatename,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{updatedate,jdbcType=TIMESTAMP}, 
142
+      #{delFlag,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{libraryType,jdbcType=VARCHAR}, 
143
+      #{crkStatus,jdbcType=VARCHAR})
140 144
   </insert>
141
-  <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicWarehouse" >
145
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.basic.model.BasicWarehouse">
142 146
     insert into basic_warehouse
143
-    <trim prefix="(" suffix=")" suffixOverrides="," >
144
-      <if test="warehouseId != null" >
147
+    <trim prefix="(" suffix=")" suffixOverrides=",">
148
+      <if test="warehouseId != null">
145 149
         warehouse_id,
146 150
       </if>
147
-      <if test="depotId != null" >
151
+      <if test="depotId != null">
148 152
         depot_id,
149 153
       </if>
150
-      <if test="depotName != null" >
154
+      <if test="depotName != null">
151 155
         depot_name,
152 156
       </if>
153
-      <if test="storehouseId != null" >
157
+      <if test="storehouseId != null">
154 158
         storehouse_id,
155 159
       </if>
156
-      <if test="warehouseCode != null" >
160
+      <if test="warehouseCode != null">
157 161
         warehouse_code,
158 162
       </if>
159
-      <if test="warehouseName != null" >
163
+      <if test="warehouseName != null">
160 164
         warehouse_name,
161 165
       </if>
162
-      <if test="warehouseUseTime != null" >
166
+      <if test="warehouseUseTime != null">
163 167
         warehouse_use_time,
164 168
       </if>
165
-      <if test="warehouseStatus != null" >
169
+      <if test="warehouseStatus != null">
166 170
         warehouse_status,
167 171
       </if>
168
-      <if test="storeWay != null" >
172
+      <if test="storeWay != null">
169 173
         store_way,
170 174
       </if>
171
-      <if test="length != null" >
175
+      <if test="length != null">
172 176
         length,
173 177
       </if>
174
-      <if test="width != null" >
178
+      <if test="width != null">
175 179
         width,
176 180
       </if>
177
-      <if test="heigth != null" >
181
+      <if test="heigth != null">
178 182
         heigth,
179 183
       </if>
180
-      <if test="contactNumber != null" >
184
+      <if test="contactNumber != null">
181 185
         contact_number,
182 186
       </if>
183
-      <if test="warehouseCapacity != null" >
187
+      <if test="warehouseCapacity != null">
184 188
         warehouse_capacity,
185 189
       </if>
186
-      <if test="dutystoreman != null" >
190
+      <if test="dutystoreman != null">
187 191
         dutyStoreman,
188 192
       </if>
189
-      <if test="remark != null" >
193
+      <if test="remark != null">
190 194
         remark,
191 195
       </if>
192
-      <if test="wareImg != null" >
196
+      <if test="wareImg != null">
193 197
         ware_img,
194 198
       </if>
195
-      <if test="createname != null" >
199
+      <if test="createname != null">
196 200
         createName,
197 201
       </if>
198
-      <if test="updatename != null" >
202
+      <if test="updatename != null">
199 203
         updateName,
200 204
       </if>
201
-      <if test="createdate != null" >
205
+      <if test="createdate != null">
202 206
         createDate,
203 207
       </if>
204
-      <if test="updatedate != null" >
208
+      <if test="updatedate != null">
205 209
         updateDate,
206 210
       </if>
207
-      <if test="delFlag != null" >
211
+      <if test="delFlag != null">
208 212
         del_flag,
209 213
       </if>
210
-      <if test="orgId != null" >
214
+      <if test="orgId != null">
211 215
         org_id,
212 216
       </if>
213
-      <if test="libraryType != null" >
217
+      <if test="libraryType != null">
214 218
         library_type,
215 219
       </if>
220
+      <if test="crkStatus != null">
221
+        crk_status,
222
+      </if>
216 223
     </trim>
217
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
218
-      <if test="warehouseId != null" >
224
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
225
+      <if test="warehouseId != null">
219 226
         #{warehouseId,jdbcType=INTEGER},
220 227
       </if>
221
-      <if test="depotId != null" >
228
+      <if test="depotId != null">
222 229
         #{depotId,jdbcType=INTEGER},
223 230
       </if>
224
-      <if test="depotName != null" >
231
+      <if test="depotName != null">
225 232
         #{depotName,jdbcType=VARCHAR},
226 233
       </if>
227
-      <if test="storehouseId != null" >
234
+      <if test="storehouseId != null">
228 235
         #{storehouseId,jdbcType=INTEGER},
229 236
       </if>
230
-      <if test="warehouseCode != null" >
237
+      <if test="warehouseCode != null">
231 238
         #{warehouseCode,jdbcType=VARCHAR},
232 239
       </if>
233
-      <if test="warehouseName != null" >
240
+      <if test="warehouseName != null">
234 241
         #{warehouseName,jdbcType=VARCHAR},
235 242
       </if>
236
-      <if test="warehouseUseTime != null" >
243
+      <if test="warehouseUseTime != null">
237 244
         #{warehouseUseTime,jdbcType=TIMESTAMP},
238 245
       </if>
239
-      <if test="warehouseStatus != null" >
246
+      <if test="warehouseStatus != null">
240 247
         #{warehouseStatus,jdbcType=INTEGER},
241 248
       </if>
242
-      <if test="storeWay != null" >
249
+      <if test="storeWay != null">
243 250
         #{storeWay,jdbcType=INTEGER},
244 251
       </if>
245
-      <if test="length != null" >
252
+      <if test="length != null">
246 253
         #{length,jdbcType=DECIMAL},
247 254
       </if>
248
-      <if test="width != null" >
255
+      <if test="width != null">
249 256
         #{width,jdbcType=DECIMAL},
250 257
       </if>
251
-      <if test="heigth != null" >
258
+      <if test="heigth != null">
252 259
         #{heigth,jdbcType=DECIMAL},
253 260
       </if>
254
-      <if test="contactNumber != null" >
261
+      <if test="contactNumber != null">
255 262
         #{contactNumber,jdbcType=VARCHAR},
256 263
       </if>
257
-      <if test="warehouseCapacity != null" >
264
+      <if test="warehouseCapacity != null">
258 265
         #{warehouseCapacity,jdbcType=DECIMAL},
259 266
       </if>
260
-      <if test="dutystoreman != null" >
267
+      <if test="dutystoreman != null">
261 268
         #{dutystoreman,jdbcType=VARCHAR},
262 269
       </if>
263
-      <if test="remark != null" >
270
+      <if test="remark != null">
264 271
         #{remark,jdbcType=VARCHAR},
265 272
       </if>
266
-      <if test="wareImg != null" >
273
+      <if test="wareImg != null">
267 274
         #{wareImg,jdbcType=VARCHAR},
268 275
       </if>
269
-      <if test="createname != null" >
276
+      <if test="createname != null">
270 277
         #{createname,jdbcType=VARCHAR},
271 278
       </if>
272
-      <if test="updatename != null" >
279
+      <if test="updatename != null">
273 280
         #{updatename,jdbcType=VARCHAR},
274 281
       </if>
275
-      <if test="createdate != null" >
282
+      <if test="createdate != null">
276 283
         #{createdate,jdbcType=TIMESTAMP},
277 284
       </if>
278
-      <if test="updatedate != null" >
285
+      <if test="updatedate != null">
279 286
         #{updatedate,jdbcType=TIMESTAMP},
280 287
       </if>
281
-      <if test="delFlag != null" >
288
+      <if test="delFlag != null">
282 289
         #{delFlag,jdbcType=INTEGER},
283 290
       </if>
284
-      <if test="orgId != null" >
291
+      <if test="orgId != null">
285 292
         #{orgId,jdbcType=INTEGER},
286 293
       </if>
287
-      <if test="libraryType != null" >
294
+      <if test="libraryType != null">
288 295
         #{libraryType,jdbcType=VARCHAR},
289 296
       </if>
297
+      <if test="crkStatus != null">
298
+        #{crkStatus,jdbcType=VARCHAR},
299
+      </if>
290 300
     </trim>
291 301
   </insert>
292
-  <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicWarehouseExample" resultType="java.lang.Integer" >
302
+  <select id="countByExample" parameterType="com.chinaitop.depot.basic.model.BasicWarehouseExample" resultType="java.lang.Integer">
293 303
     select count(*) from basic_warehouse
294
-    <if test="_parameter != null" >
304
+    <if test="_parameter != null">
295 305
       <include refid="Example_Where_Clause" />
296 306
     </if>
297 307
   </select>
298
-  <update id="updateByExampleSelective" parameterType="map" >
308
+  <update id="updateByExampleSelective" parameterType="map">
299 309
     update basic_warehouse
300
-    <set >
301
-      <if test="record.warehouseId != null" >
310
+    <set>
311
+      <if test="record.warehouseId != null">
302 312
         warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
303 313
       </if>
304
-      <if test="record.depotId != null" >
314
+      <if test="record.depotId != null">
305 315
         depot_id = #{record.depotId,jdbcType=INTEGER},
306 316
       </if>
307
-      <if test="record.depotName != null" >
317
+      <if test="record.depotName != null">
308 318
         depot_name = #{record.depotName,jdbcType=VARCHAR},
309 319
       </if>
310
-      <if test="record.storehouseId != null" >
320
+      <if test="record.storehouseId != null">
311 321
         storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
312 322
       </if>
313
-      <if test="record.warehouseCode != null" >
323
+      <if test="record.warehouseCode != null">
314 324
         warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
315 325
       </if>
316
-      <if test="record.warehouseName != null" >
326
+      <if test="record.warehouseName != null">
317 327
         warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
318 328
       </if>
319
-      <if test="record.warehouseUseTime != null" >
329
+      <if test="record.warehouseUseTime != null">
320 330
         warehouse_use_time = #{record.warehouseUseTime,jdbcType=TIMESTAMP},
321 331
       </if>
322
-      <if test="record.warehouseStatus != null" >
332
+      <if test="record.warehouseStatus != null">
323 333
         warehouse_status = #{record.warehouseStatus,jdbcType=INTEGER},
324 334
       </if>
325
-      <if test="record.storeWay != null" >
335
+      <if test="record.storeWay != null">
326 336
         store_way = #{record.storeWay,jdbcType=INTEGER},
327 337
       </if>
328
-      <if test="record.length != null" >
338
+      <if test="record.length != null">
329 339
         length = #{record.length,jdbcType=DECIMAL},
330 340
       </if>
331
-      <if test="record.width != null" >
341
+      <if test="record.width != null">
332 342
         width = #{record.width,jdbcType=DECIMAL},
333 343
       </if>
334
-      <if test="record.heigth != null" >
344
+      <if test="record.heigth != null">
335 345
         heigth = #{record.heigth,jdbcType=DECIMAL},
336 346
       </if>
337
-      <if test="record.contactNumber != null" >
347
+      <if test="record.contactNumber != null">
338 348
         contact_number = #{record.contactNumber,jdbcType=VARCHAR},
339 349
       </if>
340
-      <if test="record.warehouseCapacity != null" >
350
+      <if test="record.warehouseCapacity != null">
341 351
         warehouse_capacity = #{record.warehouseCapacity,jdbcType=DECIMAL},
342 352
       </if>
343
-      <if test="record.dutystoreman != null" >
353
+      <if test="record.dutystoreman != null">
344 354
         dutyStoreman = #{record.dutystoreman,jdbcType=VARCHAR},
345 355
       </if>
346
-      <if test="record.remark != null" >
356
+      <if test="record.remark != null">
347 357
         remark = #{record.remark,jdbcType=VARCHAR},
348 358
       </if>
349
-      <if test="record.wareImg != null" >
359
+      <if test="record.wareImg != null">
350 360
         ware_img = #{record.wareImg,jdbcType=VARCHAR},
351 361
       </if>
352
-      <if test="record.createname != null" >
362
+      <if test="record.createname != null">
353 363
         createName = #{record.createname,jdbcType=VARCHAR},
354 364
       </if>
355
-      <if test="record.updatename != null" >
365
+      <if test="record.updatename != null">
356 366
         updateName = #{record.updatename,jdbcType=VARCHAR},
357 367
       </if>
358
-      <if test="record.createdate != null" >
368
+      <if test="record.createdate != null">
359 369
         createDate = #{record.createdate,jdbcType=TIMESTAMP},
360 370
       </if>
361
-      <if test="record.updatedate != null" >
371
+      <if test="record.updatedate != null">
362 372
         updateDate = #{record.updatedate,jdbcType=TIMESTAMP},
363 373
       </if>
364
-      <if test="record.delFlag != null" >
374
+      <if test="record.delFlag != null">
365 375
         del_flag = #{record.delFlag,jdbcType=INTEGER},
366 376
       </if>
367
-      <if test="record.orgId != null" >
377
+      <if test="record.orgId != null">
368 378
         org_id = #{record.orgId,jdbcType=INTEGER},
369 379
       </if>
370
-      <if test="record.libraryType != null" >
380
+      <if test="record.libraryType != null">
371 381
         library_type = #{record.libraryType,jdbcType=VARCHAR},
372 382
       </if>
383
+      <if test="record.crkStatus != null">
384
+        crk_status = #{record.crkStatus,jdbcType=VARCHAR},
385
+      </if>
373 386
     </set>
374
-    <if test="_parameter != null" >
387
+    <if test="_parameter != null">
375 388
       <include refid="Update_By_Example_Where_Clause" />
376 389
     </if>
377 390
   </update>
378
-  <update id="updateByExample" parameterType="map" >
391
+  <update id="updateByExample" parameterType="map">
379 392
     update basic_warehouse
380 393
     set warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
381
-    depot_id = #{record.depotId,jdbcType=INTEGER},
382
-    depot_name = #{record.depotName,jdbcType=VARCHAR},
383
-    storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
384
-    warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
385
-    warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
386
-    warehouse_use_time = #{record.warehouseUseTime,jdbcType=TIMESTAMP},
387
-    warehouse_status = #{record.warehouseStatus,jdbcType=INTEGER},
388
-    store_way = #{record.storeWay,jdbcType=INTEGER},
389
-    length = #{record.length,jdbcType=DECIMAL},
390
-    width = #{record.width,jdbcType=DECIMAL},
391
-    heigth = #{record.heigth,jdbcType=DECIMAL},
392
-    contact_number = #{record.contactNumber,jdbcType=VARCHAR},
393
-    warehouse_capacity = #{record.warehouseCapacity,jdbcType=DECIMAL},
394
-    dutyStoreman = #{record.dutystoreman,jdbcType=VARCHAR},
395
-    remark = #{record.remark,jdbcType=VARCHAR},
396
-    ware_img = #{record.wareImg,jdbcType=VARCHAR},
397
-    createName = #{record.createname,jdbcType=VARCHAR},
398
-    updateName = #{record.updatename,jdbcType=VARCHAR},
399
-    createDate = #{record.createdate,jdbcType=TIMESTAMP},
400
-    updateDate = #{record.updatedate,jdbcType=TIMESTAMP},
401
-    del_flag = #{record.delFlag,jdbcType=INTEGER},
402
-    org_id = #{record.orgId,jdbcType=INTEGER},
403
-    library_type = #{record.libraryType,jdbcType=VARCHAR}
404
-    <if test="_parameter != null" >
394
+      depot_id = #{record.depotId,jdbcType=INTEGER},
395
+      depot_name = #{record.depotName,jdbcType=VARCHAR},
396
+      storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
397
+      warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
398
+      warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
399
+      warehouse_use_time = #{record.warehouseUseTime,jdbcType=TIMESTAMP},
400
+      warehouse_status = #{record.warehouseStatus,jdbcType=INTEGER},
401
+      store_way = #{record.storeWay,jdbcType=INTEGER},
402
+      length = #{record.length,jdbcType=DECIMAL},
403
+      width = #{record.width,jdbcType=DECIMAL},
404
+      heigth = #{record.heigth,jdbcType=DECIMAL},
405
+      contact_number = #{record.contactNumber,jdbcType=VARCHAR},
406
+      warehouse_capacity = #{record.warehouseCapacity,jdbcType=DECIMAL},
407
+      dutyStoreman = #{record.dutystoreman,jdbcType=VARCHAR},
408
+      remark = #{record.remark,jdbcType=VARCHAR},
409
+      ware_img = #{record.wareImg,jdbcType=VARCHAR},
410
+      createName = #{record.createname,jdbcType=VARCHAR},
411
+      updateName = #{record.updatename,jdbcType=VARCHAR},
412
+      createDate = #{record.createdate,jdbcType=TIMESTAMP},
413
+      updateDate = #{record.updatedate,jdbcType=TIMESTAMP},
414
+      del_flag = #{record.delFlag,jdbcType=INTEGER},
415
+      org_id = #{record.orgId,jdbcType=INTEGER},
416
+      library_type = #{record.libraryType,jdbcType=VARCHAR},
417
+      crk_status = #{record.crkStatus,jdbcType=VARCHAR}
418
+    <if test="_parameter != null">
405 419
       <include refid="Update_By_Example_Where_Clause" />
406 420
     </if>
407 421
   </update>
408
-  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.basic.model.BasicWarehouse" >
422
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.basic.model.BasicWarehouse">
409 423
     update basic_warehouse
410
-    <set >
411
-      <if test="depotId != null" >
424
+    <set>
425
+      <if test="depotId != null">
412 426
         depot_id = #{depotId,jdbcType=INTEGER},
413 427
       </if>
414
-      <if test="depotName != null" >
428
+      <if test="depotName != null">
415 429
         depot_name = #{depotName,jdbcType=VARCHAR},
416 430
       </if>
417
-      <if test="storehouseId != null" >
431
+      <if test="storehouseId != null">
418 432
         storehouse_id = #{storehouseId,jdbcType=INTEGER},
419 433
       </if>
420
-      <if test="warehouseCode != null" >
434
+      <if test="warehouseCode != null">
421 435
         warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
422 436
       </if>
423
-      <if test="warehouseName != null" >
437
+      <if test="warehouseName != null">
424 438
         warehouse_name = #{warehouseName,jdbcType=VARCHAR},
425 439
       </if>
426
-      <if test="warehouseUseTime != null" >
440
+      <if test="warehouseUseTime != null">
427 441
         warehouse_use_time = #{warehouseUseTime,jdbcType=TIMESTAMP},
428 442
       </if>
429
-      <if test="warehouseStatus != null" >
443
+      <if test="warehouseStatus != null">
430 444
         warehouse_status = #{warehouseStatus,jdbcType=INTEGER},
431 445
       </if>
432
-      <if test="storeWay != null" >
446
+      <if test="storeWay != null">
433 447
         store_way = #{storeWay,jdbcType=INTEGER},
434 448
       </if>
435
-      <if test="length != null" >
449
+      <if test="length != null">
436 450
         length = #{length,jdbcType=DECIMAL},
437 451
       </if>
438
-      <if test="width != null" >
452
+      <if test="width != null">
439 453
         width = #{width,jdbcType=DECIMAL},
440 454
       </if>
441
-      <if test="heigth != null" >
455
+      <if test="heigth != null">
442 456
         heigth = #{heigth,jdbcType=DECIMAL},
443 457
       </if>
444
-      <if test="contactNumber != null" >
458
+      <if test="contactNumber != null">
445 459
         contact_number = #{contactNumber,jdbcType=VARCHAR},
446 460
       </if>
447
-      <if test="warehouseCapacity != null" >
461
+      <if test="warehouseCapacity != null">
448 462
         warehouse_capacity = #{warehouseCapacity,jdbcType=DECIMAL},
449 463
       </if>
450
-      <if test="dutystoreman != null" >
464
+      <if test="dutystoreman != null">
451 465
         dutyStoreman = #{dutystoreman,jdbcType=VARCHAR},
452 466
       </if>
453
-      <if test="remark != null" >
467
+      <if test="remark != null">
454 468
         remark = #{remark,jdbcType=VARCHAR},
455 469
       </if>
456
-      <if test="wareImg != null" >
470
+      <if test="wareImg != null">
457 471
         ware_img = #{wareImg,jdbcType=VARCHAR},
458 472
       </if>
459
-      <if test="createname != null" >
473
+      <if test="createname != null">
460 474
         createName = #{createname,jdbcType=VARCHAR},
461 475
       </if>
462
-      <if test="updatename != null" >
476
+      <if test="updatename != null">
463 477
         updateName = #{updatename,jdbcType=VARCHAR},
464 478
       </if>
465
-      <if test="createdate != null" >
479
+      <if test="createdate != null">
466 480
         createDate = #{createdate,jdbcType=TIMESTAMP},
467 481
       </if>
468
-      <if test="updatedate != null" >
482
+      <if test="updatedate != null">
469 483
         updateDate = #{updatedate,jdbcType=TIMESTAMP},
470 484
       </if>
471
-      <if test="delFlag != null" >
485
+      <if test="delFlag != null">
472 486
         del_flag = #{delFlag,jdbcType=INTEGER},
473 487
       </if>
474
-      <if test="orgId != null" >
488
+      <if test="orgId != null">
475 489
         org_id = #{orgId,jdbcType=INTEGER},
476 490
       </if>
477
-      <if test="libraryType != null" >
491
+      <if test="libraryType != null">
478 492
         library_type = #{libraryType,jdbcType=VARCHAR},
479 493
       </if>
494
+      <if test="crkStatus != null">
495
+        crk_status = #{crkStatus,jdbcType=VARCHAR},
496
+      </if>
480 497
     </set>
481 498
     where warehouse_id = #{warehouseId,jdbcType=INTEGER}
482 499
   </update>
483
-  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.basic.model.BasicWarehouse" >
500
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.basic.model.BasicWarehouse">
484 501
     update basic_warehouse
485 502
     set depot_id = #{depotId,jdbcType=INTEGER},
486 503
       depot_name = #{depotName,jdbcType=VARCHAR},
@@ -504,7 +521,14 @@
504 521
       updateDate = #{updatedate,jdbcType=TIMESTAMP},
505 522
       del_flag = #{delFlag,jdbcType=INTEGER},
506 523
       org_id = #{orgId,jdbcType=INTEGER},
507
-      library_type = #{libraryType,jdbcType=VARCHAR}
524
+      library_type = #{libraryType,jdbcType=VARCHAR},
525
+      crk_status = #{crkStatus,jdbcType=VARCHAR}
508 526
     where warehouse_id = #{warehouseId,jdbcType=INTEGER}
509
-  </update>
527
+  </update>
528
+  
529
+  <!-- 修改货位表的出入库状态 -->
530
+  <select id="updateWareStatus" parameterType="java.util.Map">
531
+    update basic_warehouse set crk_status=#{status} where 1=1 and warehouse_id=#{wareId} and org_id=#{orgId}
532
+  </select>
533
+
510 534
 </mapper>

+ 473 - 245
src/main/java/com/chinaitop/depot/basic/model/BasicWarehouse.java

@@ -1,246 +1,474 @@
1
-package com.chinaitop.depot.basic.model;
2
-
3
-import java.math.BigDecimal;
4
-import java.util.Date;
5
-
6
-public class BasicWarehouse {
7
-    private Integer warehouseId;
8
-
9
-    private Integer depotId;
10
-
11
-    private String depotName;
12
-
13
-    private Integer storehouseId;
14
-
15
-    private String warehouseCode;
16
-
17
-    private String warehouseName;
18
-
19
-    private Date warehouseUseTime;
20
-
21
-    private Integer warehouseStatus;
22
-
23
-    private Integer storeWay;
24
-
25
-    private BigDecimal length;
26
-    
27
-    private BigDecimal width;
28
-    
29
-    private BigDecimal heigth;
30
-
31
-    private String contactNumber;
32
-    
33
-    private BigDecimal warehouseCapacity;
34
-
35
-    private String dutystoreman;
36
-
37
-    private String remark;
38
-
39
-    private String wareImg;
40
-
41
-    private String createname;
42
-
43
-    private String updatename;
44
-
45
-    private Date createdate;
46
-
47
-    private Date updatedate;
48
-
49
-    private Integer delFlag;
50
-
51
-    private Integer orgId;
52
-
53
-    private String libraryType;
54
-
55
-    public Integer getWarehouseId() {
56
-        return warehouseId;
57
-    }
58
-
59
-    public void setWarehouseId(Integer warehouseId) {
60
-        this.warehouseId = warehouseId;
61
-    }
62
-
63
-    public Integer getDepotId() {
64
-        return depotId;
65
-    }
66
-
67
-    public void setDepotId(Integer depotId) {
68
-        this.depotId = depotId;
69
-    }
70
-
71
-    public String getDepotName() {
72
-        return depotName;
73
-    }
74
-
75
-    public void setDepotName(String depotName) {
76
-        this.depotName = depotName == null ? null : depotName.trim();
77
-    }
78
-
79
-    public Integer getStorehouseId() {
80
-        return storehouseId;
81
-    }
82
-
83
-    public void setStorehouseId(Integer storehouseId) {
84
-        this.storehouseId = storehouseId;
85
-    }
86
-
87
-    public String getWarehouseCode() {
88
-        return warehouseCode;
89
-    }
90
-
91
-    public void setWarehouseCode(String warehouseCode) {
92
-        this.warehouseCode = warehouseCode == null ? null : warehouseCode.trim();
93
-    }
94
-
95
-    public String getWarehouseName() {
96
-        return warehouseName;
97
-    }
98
-
99
-    public void setWarehouseName(String warehouseName) {
100
-        this.warehouseName = warehouseName == null ? null : warehouseName.trim();
101
-    }
102
-
103
-    public Date getWarehouseUseTime() {
104
-        return warehouseUseTime;
105
-    }
106
-
107
-    public void setWarehouseUseTime(Date warehouseUseTime) {
108
-        this.warehouseUseTime = warehouseUseTime;
109
-    }
110
-
111
-    public Integer getWarehouseStatus() {
112
-        return warehouseStatus;
113
-    }
114
-
115
-    public void setWarehouseStatus(Integer warehouseStatus) {
116
-        this.warehouseStatus = warehouseStatus;
117
-    }
118
-
119
-    public Integer getStoreWay() {
120
-        return storeWay;
121
-    }
122
-
123
-    public void setStoreWay(Integer storeWay) {
124
-        this.storeWay = storeWay;
125
-    }
126
-
127
-    public BigDecimal getLength() {
128
-		return length;
129
-	}
130
-
131
-	public void setLength(BigDecimal length) {
132
-		this.length = length;
133
-	}
134
-
135
-	public BigDecimal getWidth() {
136
-		return width;
137
-	}
138
-
139
-	public void setWidth(BigDecimal width) {
140
-		this.width = width;
141
-	}
142
-
143
-	public BigDecimal getHeigth() {
144
-		return heigth;
145
-	}
146
-
147
-	public void setHeigth(BigDecimal heigth) {
148
-		this.heigth = heigth;
149
-	}
150
-
151
-	public String getContactNumber() {
152
-		return contactNumber;
153
-	}
154
-
155
-	public void setContactNumber(String contactNumber) {
156
-		this.contactNumber = contactNumber == null ? null : contactNumber.trim();
157
-	}
158
-
159
-	public BigDecimal getWarehouseCapacity() {
160
-        return warehouseCapacity;
161
-    }
162
-
163
-    public void setWarehouseCapacity(BigDecimal warehouseCapacity) {
164
-        this.warehouseCapacity = warehouseCapacity;
165
-    }
166
-
167
-    public String getDutystoreman() {
168
-        return dutystoreman;
169
-    }
170
-
171
-    public void setDutystoreman(String dutystoreman) {
172
-        this.dutystoreman = dutystoreman == null ? null : dutystoreman.trim();
173
-    }
174
-
175
-    public String getRemark() {
176
-        return remark;
177
-    }
178
-
179
-    public void setRemark(String remark) {
180
-        this.remark = remark == null ? null : remark.trim();
181
-    }
182
-
183
-    public String getWareImg() {
184
-        return wareImg;
185
-    }
186
-
187
-    public void setWareImg(String wareImg) {
188
-        this.wareImg = wareImg == null ? null : wareImg.trim();
189
-    }
190
-
191
-    public String getCreatename() {
192
-        return createname;
193
-    }
194
-
195
-    public void setCreatename(String createname) {
196
-        this.createname = createname == null ? null : createname.trim();
197
-    }
198
-
199
-    public String getUpdatename() {
200
-        return updatename;
201
-    }
202
-
203
-    public void setUpdatename(String updatename) {
204
-        this.updatename = updatename == null ? null : updatename.trim();
205
-    }
206
-
207
-    public Date getCreatedate() {
208
-        return createdate;
209
-    }
210
-
211
-    public void setCreatedate(Date createdate) {
212
-        this.createdate = createdate;
213
-    }
214
-
215
-    public Date getUpdatedate() {
216
-        return updatedate;
217
-    }
218
-
219
-    public void setUpdatedate(Date updatedate) {
220
-        this.updatedate = updatedate;
221
-    }
222
-
223
-    public Integer getDelFlag() {
224
-        return delFlag;
225
-    }
226
-
227
-    public void setDelFlag(Integer delFlag) {
228
-        this.delFlag = delFlag;
229
-    }
230
-
231
-    public Integer getOrgId() {
232
-        return orgId;
233
-    }
234
-
235
-    public void setOrgId(Integer orgId) {
236
-        this.orgId = orgId;
237
-    }
238
-
239
-    public String getLibraryType() {
240
-        return libraryType;
241
-    }
242
-
243
-    public void setLibraryType(String libraryType) {
244
-        this.libraryType = libraryType == null ? null : libraryType.trim();
245
-    }
1
+package com.chinaitop.depot.basic.model;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+
6
+public class BasicWarehouse {
7
+    private Integer warehouseId;
8
+
9
+    private Integer depotId;
10
+
11
+    private String depotName;
12
+
13
+    private Integer storehouseId;
14
+
15
+    private String warehouseCode;
16
+
17
+    private String warehouseName;
18
+
19
+    private Date warehouseUseTime;
20
+
21
+    private Integer warehouseStatus;
22
+
23
+    private Integer storeWay;
24
+
25
+    private BigDecimal length;
26
+
27
+    private BigDecimal width;
28
+
29
+    private BigDecimal heigth;
30
+
31
+    private String contactNumber;
32
+
33
+    private BigDecimal warehouseCapacity;
34
+
35
+    private String dutystoreman;
36
+
37
+    private String remark;
38
+
39
+    private String wareImg;
40
+
41
+    private String createname;
42
+
43
+    private String updatename;
44
+
45
+    private Date createdate;
46
+
47
+    private Date updatedate;
48
+
49
+    private Integer delFlag;
50
+
51
+    private Integer orgId;
52
+
53
+    private String libraryType;
54
+
55
+    private Date updatetime;
56
+
57
+    private String crkStatus;
58
+
59
+    /**
60
+     * 货位ID
61
+     * @return warehouse_id 货位ID
62
+     */
63
+    public Integer getWarehouseId() {
64
+        return warehouseId;
65
+    }
66
+
67
+    /**
68
+     * 货位ID
69
+     * @param warehouseId 货位ID
70
+     */
71
+    public void setWarehouseId(Integer warehouseId) {
72
+        this.warehouseId = warehouseId;
73
+    }
74
+
75
+    /**
76
+     * 所属粮库ID
77
+     * @return depot_id 所属粮库ID
78
+     */
79
+    public Integer getDepotId() {
80
+        return depotId;
81
+    }
82
+
83
+    /**
84
+     * 所属粮库ID
85
+     * @param depotId 所属粮库ID
86
+     */
87
+    public void setDepotId(Integer depotId) {
88
+        this.depotId = depotId;
89
+    }
90
+
91
+    /**
92
+     * 所属粮库名称
93
+     * @return depot_name 所属粮库名称
94
+     */
95
+    public String getDepotName() {
96
+        return depotName;
97
+    }
98
+
99
+    /**
100
+     * 所属粮库名称
101
+     * @param depotName 所属粮库名称
102
+     */
103
+    public void setDepotName(String depotName) {
104
+        this.depotName = depotName == null ? null : depotName.trim();
105
+    }
106
+
107
+    /**
108
+     * 仓房ID
109
+     * @return storehouse_id 仓房ID
110
+     */
111
+    public Integer getStorehouseId() {
112
+        return storehouseId;
113
+    }
114
+
115
+    /**
116
+     * 仓房ID
117
+     * @param storehouseId 仓房ID
118
+     */
119
+    public void setStorehouseId(Integer storehouseId) {
120
+        this.storehouseId = storehouseId;
121
+    }
122
+
123
+    /**
124
+     * 货位编码
125
+     * @return warehouse_code 货位编码
126
+     */
127
+    public String getWarehouseCode() {
128
+        return warehouseCode;
129
+    }
130
+
131
+    /**
132
+     * 货位编码
133
+     * @param warehouseCode 货位编码
134
+     */
135
+    public void setWarehouseCode(String warehouseCode) {
136
+        this.warehouseCode = warehouseCode == null ? null : warehouseCode.trim();
137
+    }
138
+
139
+    /**
140
+     * 货位名称
141
+     * @return warehouse_name 货位名称
142
+     */
143
+    public String getWarehouseName() {
144
+        return warehouseName;
145
+    }
146
+
147
+    /**
148
+     * 货位名称
149
+     * @param warehouseName 货位名称
150
+     */
151
+    public void setWarehouseName(String warehouseName) {
152
+        this.warehouseName = warehouseName == null ? null : warehouseName.trim();
153
+    }
154
+
155
+    /**
156
+     * 货位启用日期
157
+     * @return warehouse_use_time 货位启用日期
158
+     */
159
+    public Date getWarehouseUseTime() {
160
+        return warehouseUseTime;
161
+    }
162
+
163
+    /**
164
+     * 货位启用日期
165
+     * @param warehouseUseTime 货位启用日期
166
+     */
167
+    public void setWarehouseUseTime(Date warehouseUseTime) {
168
+        this.warehouseUseTime = warehouseUseTime;
169
+    }
170
+
171
+    /**
172
+     * 货位状态
173
+     * @return warehouse_status 货位状态
174
+     */
175
+    public Integer getWarehouseStatus() {
176
+        return warehouseStatus;
177
+    }
178
+
179
+    /**
180
+     * 货位状态
181
+     * @param warehouseStatus 货位状态
182
+     */
183
+    public void setWarehouseStatus(Integer warehouseStatus) {
184
+        this.warehouseStatus = warehouseStatus;
185
+    }
186
+
187
+    /**
188
+     * 储粮方式
189
+     * @return store_way 储粮方式
190
+     */
191
+    public Integer getStoreWay() {
192
+        return storeWay;
193
+    }
194
+
195
+    /**
196
+     * 储粮方式
197
+     * @param storeWay 储粮方式
198
+     */
199
+    public void setStoreWay(Integer storeWay) {
200
+        this.storeWay = storeWay;
201
+    }
202
+
203
+    /**
204
+     * 长度(米)
205
+     * @return length 长度(米)
206
+     */
207
+    public BigDecimal getLength() {
208
+        return length;
209
+    }
210
+
211
+    /**
212
+     * 长度(米)
213
+     * @param length 长度(米)
214
+     */
215
+    public void setLength(BigDecimal length) {
216
+        this.length = length;
217
+    }
218
+
219
+    /**
220
+     * 宽度(米)
221
+     * @return width 宽度(米)
222
+     */
223
+    public BigDecimal getWidth() {
224
+        return width;
225
+    }
226
+
227
+    /**
228
+     * 宽度(米)
229
+     * @param width 宽度(米)
230
+     */
231
+    public void setWidth(BigDecimal width) {
232
+        this.width = width;
233
+    }
234
+
235
+    /**
236
+     * 高度(米)
237
+     * @return heigth 高度(米)
238
+     */
239
+    public BigDecimal getHeigth() {
240
+        return heigth;
241
+    }
242
+
243
+    /**
244
+     * 高度(米)
245
+     * @param heigth 高度(米)
246
+     */
247
+    public void setHeigth(BigDecimal heigth) {
248
+        this.heigth = heigth;
249
+    }
250
+
251
+    /**
252
+     * 联系电话
253
+     * @return contact_number 联系电话
254
+     */
255
+    public String getContactNumber() {
256
+        return contactNumber;
257
+    }
258
+
259
+    /**
260
+     * 联系电话
261
+     * @param contactNumber 联系电话
262
+     */
263
+    public void setContactNumber(String contactNumber) {
264
+        this.contactNumber = contactNumber == null ? null : contactNumber.trim();
265
+    }
266
+
267
+    /**
268
+     * 货位容量(数字,单位吨)
269
+     * @return warehouse_capacity 货位容量(数字,单位吨)
270
+     */
271
+    public BigDecimal getWarehouseCapacity() {
272
+        return warehouseCapacity;
273
+    }
274
+
275
+    /**
276
+     * 货位容量(数字,单位吨)
277
+     * @param warehouseCapacity 货位容量(数字,单位吨)
278
+     */
279
+    public void setWarehouseCapacity(BigDecimal warehouseCapacity) {
280
+        this.warehouseCapacity = warehouseCapacity;
281
+    }
282
+
283
+    /**
284
+     * 责任保管员
285
+     * @return dutyStoreman 责任保管员
286
+     */
287
+    public String getDutystoreman() {
288
+        return dutystoreman;
289
+    }
290
+
291
+    /**
292
+     * 责任保管员
293
+     * @param dutystoreman 责任保管员
294
+     */
295
+    public void setDutystoreman(String dutystoreman) {
296
+        this.dutystoreman = dutystoreman == null ? null : dutystoreman.trim();
297
+    }
298
+
299
+    /**
300
+     * 备注
301
+     * @return remark 备注
302
+     */
303
+    public String getRemark() {
304
+        return remark;
305
+    }
306
+
307
+    /**
308
+     * 备注
309
+     * @param remark 备注
310
+     */
311
+    public void setRemark(String remark) {
312
+        this.remark = remark == null ? null : remark.trim();
313
+    }
314
+
315
+    /**
316
+     * 货位图
317
+     * @return ware_img 货位图
318
+     */
319
+    public String getWareImg() {
320
+        return wareImg;
321
+    }
322
+
323
+    /**
324
+     * 货位图
325
+     * @param wareImg 货位图
326
+     */
327
+    public void setWareImg(String wareImg) {
328
+        this.wareImg = wareImg == null ? null : wareImg.trim();
329
+    }
330
+
331
+    /**
332
+     * 创建人
333
+     * @return createName 创建人
334
+     */
335
+    public String getCreatename() {
336
+        return createname;
337
+    }
338
+
339
+    /**
340
+     * 创建人
341
+     * @param createname 创建人
342
+     */
343
+    public void setCreatename(String createname) {
344
+        this.createname = createname == null ? null : createname.trim();
345
+    }
346
+
347
+    /**
348
+     * 更新人
349
+     * @return updateName 更新人
350
+     */
351
+    public String getUpdatename() {
352
+        return updatename;
353
+    }
354
+
355
+    /**
356
+     * 更新人
357
+     * @param updatename 更新人
358
+     */
359
+    public void setUpdatename(String updatename) {
360
+        this.updatename = updatename == null ? null : updatename.trim();
361
+    }
362
+
363
+    /**
364
+     * 创建日期
365
+     * @return createDate 创建日期
366
+     */
367
+    public Date getCreatedate() {
368
+        return createdate;
369
+    }
370
+
371
+    /**
372
+     * 创建日期
373
+     * @param createdate 创建日期
374
+     */
375
+    public void setCreatedate(Date createdate) {
376
+        this.createdate = createdate;
377
+    }
378
+
379
+    /**
380
+     * 更新日期
381
+     * @return updateDate 更新日期
382
+     */
383
+    public Date getUpdatedate() {
384
+        return updatedate;
385
+    }
386
+
387
+    /**
388
+     * 更新日期
389
+     * @param updatedate 更新日期
390
+     */
391
+    public void setUpdatedate(Date updatedate) {
392
+        this.updatedate = updatedate;
393
+    }
394
+
395
+    /**
396
+     * 删除状态(1.正常,2.删除)
397
+     * @return del_flag 删除状态(1.正常,2.删除)
398
+     */
399
+    public Integer getDelFlag() {
400
+        return delFlag;
401
+    }
402
+
403
+    /**
404
+     * 删除状态(1.正常,2.删除)
405
+     * @param delFlag 删除状态(1.正常,2.删除)
406
+     */
407
+    public void setDelFlag(Integer delFlag) {
408
+        this.delFlag = delFlag;
409
+    }
410
+
411
+    /**
412
+     * 
413
+     * @return org_id 
414
+     */
415
+    public Integer getOrgId() {
416
+        return orgId;
417
+    }
418
+
419
+    /**
420
+     * 
421
+     * @param orgId 
422
+     */
423
+    public void setOrgId(Integer orgId) {
424
+        this.orgId = orgId;
425
+    }
426
+
427
+    /**
428
+     * 库类型,0.主粮库,1.代储点粮库
429
+     * @return library_type 库类型,0.主粮库,1.代储点粮库
430
+     */
431
+    public String getLibraryType() {
432
+        return libraryType;
433
+    }
434
+
435
+    /**
436
+     * 库类型,0.主粮库,1.代储点粮库
437
+     * @param libraryType 库类型,0.主粮库,1.代储点粮库
438
+     */
439
+    public void setLibraryType(String libraryType) {
440
+        this.libraryType = libraryType == null ? null : libraryType.trim();
441
+    }
442
+
443
+    /**
444
+     * 
445
+     * @return updatetime 
446
+     */
447
+    public Date getUpdatetime() {
448
+        return updatetime;
449
+    }
450
+
451
+    /**
452
+     * 
453
+     * @param updatetime 
454
+     */
455
+    public void setUpdatetime(Date updatetime) {
456
+        this.updatetime = updatetime;
457
+    }
458
+
459
+    /**
460
+     * 出入库状态(1空仓,2入库中,3封仓,4出库中,9其它)
461
+     * @return crk_status 出入库状态(1空仓,2入库中,3封仓,4出库中,9其它)
462
+     */
463
+    public String getCrkStatus() {
464
+        return crkStatus;
465
+    }
466
+
467
+    /**
468
+     * 出入库状态(1空仓,2入库中,3封仓,4出库中,9其它)
469
+     * @param crkStatus 出入库状态(1空仓,2入库中,3封仓,4出库中,9其它)
470
+     */
471
+    public void setCrkStatus(String crkStatus) {
472
+        this.crkStatus = crkStatus == null ? null : crkStatus.trim();
473
+    }
246 474
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1889 - 1491
src/main/java/com/chinaitop/depot/basic/model/BasicWarehouseExample.java


+ 96 - 0
src/main/java/com/chinaitop/depot/unissoft/model/ResponseEntity.java

@@ -0,0 +1,96 @@
1
+package com.chinaitop.depot.unissoft.model;
2
+
3
+import java.io.Serializable;
4
+
5
+//返回基类
6
+public class ResponseEntity<T> implements Serializable {
7
+
8
+    private static final long serialVersionUID = -2825436079063723409L;
9
+
10
+    //成功
11
+    private static final String OK = "200";
12
+    //失败
13
+    private static final String FAILED = "600";
14
+    private static final String BUSSINESS_FAILED = "550";
15
+    private static final String UNAUTHENTICATION = "401";
16
+
17
+    private String retCode;
18
+    private String message;
19
+    private T data;
20
+
21
+    public String getRetCode() {
22
+        return retCode;
23
+    }
24
+
25
+    public void setRetCode(String retCode) {
26
+        this.retCode = retCode;
27
+    }
28
+
29
+    public String getMessage() {
30
+        return message;
31
+    }
32
+
33
+    public void setMessage(String message) {
34
+        this.message = message;
35
+    }
36
+
37
+    public T getData() {
38
+        return data;
39
+    }
40
+
41
+    public void setData(T data) {
42
+        this.data = data;
43
+    }
44
+
45
+    private static <T> ResponseEntity<T> buildResponse(String retCode, String message, T data){
46
+        ResponseEntity<T> responseEntity = new ResponseEntity<T>();
47
+        responseEntity.retCode = retCode;
48
+        responseEntity.message = message;
49
+        responseEntity.data = data;
50
+        return responseEntity;
51
+    }
52
+
53
+    public static <T> ResponseEntity<T> ok(){
54
+        return buildResponse(ResponseEntity.OK,"success",null);
55
+    }
56
+    public static <T> ResponseEntity<T> ok(T data){
57
+        return buildResponse(ResponseEntity.OK,"success",data);
58
+
59
+    }
60
+    public static <T> ResponseEntity<T> ok(String message, T data){
61
+        return buildResponse(ResponseEntity.OK,message,data);
62
+    }
63
+
64
+
65
+    public static <T> ResponseEntity<T> failed(String message){
66
+        return buildResponse(ResponseEntity.FAILED,message,null);
67
+    }
68
+
69
+    public static <T> ResponseEntity<T> businessFailed(String message){
70
+        return buildResponse(ResponseEntity.BUSSINESS_FAILED,message,null);
71
+    }
72
+
73
+    public static <T> ResponseEntity<T> unauthentication(String message){
74
+        return buildResponse(ResponseEntity.UNAUTHENTICATION,message,null);
75
+    }
76
+
77
+    private String state;
78
+    private String msg;
79
+
80
+    public String getState() {
81
+        return state;
82
+    }
83
+
84
+    public void setState(String state) {
85
+        this.state = state;
86
+    }
87
+
88
+    public String getMsg() {
89
+        return msg;
90
+    }
91
+
92
+    public void setMsg(String msg) {
93
+        this.msg = msg;
94
+    }
95
+}
96
+

+ 37 - 0
src/main/java/com/chinaitop/depot/unissoft/serviceconfig/CxfConfig.java

@@ -0,0 +1,37 @@
1
+package com.chinaitop.depot.unissoft.serviceconfig;
2
+
3
+import javax.xml.ws.Endpoint;
4
+
5
+import org.apache.cxf.Bus;
6
+import org.apache.cxf.bus.spring.SpringBus;
7
+import org.apache.cxf.jaxws.EndpointImpl;
8
+import org.springframework.context.annotation.Bean;
9
+import org.springframework.context.annotation.Configuration;
10
+
11
+import com.chinaitop.depot.unissoft.webservice.BasicWarehouseWebService;
12
+import com.chinaitop.depot.unissoft.webservice.BasicWarehouseWebServiceImpl;
13
+
14
+@Configuration
15
+public class CxfConfig {
16
+    /*@Bean
17
+    public ServletRegistrationBean dispatcherServlet() {
18
+        return new ServletRegistrationBean(new CXFServlet(),"/business/*");
19
+    }*/
20
+    @Bean(name = Bus.DEFAULT_BUS_ID)
21
+    public SpringBus springBus() {
22
+        return new SpringBus();
23
+    }
24
+
25
+    //货位管理
26
+    @Bean
27
+    public BasicWarehouseWebService basicWarehouseWebService() {
28
+        return new BasicWarehouseWebServiceImpl();
29
+    }
30
+    @Bean
31
+    public Endpoint uploadCfStatus() {
32
+        EndpointImpl endpoint = new EndpointImpl(springBus(), basicWarehouseWebService());
33
+        endpoint.publish("/basicWarehouseWebService");
34
+        return endpoint;
35
+    }
36
+
37
+}

+ 15 - 0
src/main/java/com/chinaitop/depot/unissoft/webservice/BasicWarehouseWebService.java

@@ -0,0 +1,15 @@
1
+package com.chinaitop.depot.unissoft.webservice;
2
+
3
+import javax.jws.WebParam;
4
+import javax.jws.WebService;
5
+
6
+@WebService
7
+public interface BasicWarehouseWebService {
8
+
9
+	/**
10
+	 * 修改货位的出入库状态(webservice调用)
11
+	 * @param basicWarehouse
12
+	 * @return
13
+	 */
14
+	String uploadCfStatus(@WebParam(name = "json") String json);
15
+}

+ 70 - 0
src/main/java/com/chinaitop/depot/unissoft/webservice/BasicWarehouseWebServiceImpl.java

@@ -0,0 +1,70 @@
1
+package com.chinaitop.depot.unissoft.webservice;
2
+
3
+import java.util.HashMap;
4
+import java.util.Iterator;
5
+import java.util.Map;
6
+
7
+import javax.annotation.Resource;
8
+
9
+import org.apache.commons.lang.ObjectUtils;
10
+import org.springframework.stereotype.Service;
11
+
12
+import com.alibaba.fastjson.JSONArray;
13
+import com.alibaba.fastjson.JSONObject;
14
+import com.chinaitop.depot.basic.mapper.BasicWarehouseMapper;
15
+
16
+@Service
17
+public class BasicWarehouseWebServiceImpl implements BasicWarehouseWebService {
18
+
19
+	@Resource
20
+	private BasicWarehouseMapper warehouseMapper;
21
+
22
+	@Override
23
+	@SuppressWarnings("all")
24
+	public String uploadCfStatus(String json) {
25
+		Map<String, Object> result = new HashMap<String, Object>();
26
+
27
+		try {
28
+			if (null != json) {
29
+				/* 将获取到的json串转换成json数组 */
30
+				JSONArray json_array = JSONArray.parseArray(json);
31
+				JSONObject json_object = null;
32
+
33
+				/* 遍历json数组,获取数组中值 */
34
+				for (Iterator iterator = json_array.iterator(); iterator.hasNext();) {
35
+
36
+					/* 获取json对象 */
37
+					json_object = (JSONObject) iterator.next();
38
+					if (json_object == null) {
39
+						continue;
40
+					}
41
+
42
+					//货位ID
43
+					String wareId = ObjectUtils.toString(json_object.get("hwId"), "");
44
+					//单位ID
45
+					String orgId = ObjectUtils.toString(json_object.get("org_Id"), "");
46
+					//货位状态值1空仓,2入库中,3封仓,4出库中,9其它
47
+					String status = ObjectUtils.toString(json_object.get("status"), "");
48
+
49
+					//修改数据
50
+					Map<String, Object> param = new HashMap<String, Object>();
51
+					param.put("wareId", Integer.parseInt(wareId));
52
+					param.put("orgId", Integer.parseInt(orgId));
53
+					param.put("status", status);
54
+					warehouseMapper.updateWareStatus(param);
55
+				}
56
+			}
57
+			result.put("success", "true");
58
+			result.put("msg", "上传成功");
59
+		} catch (NumberFormatException e) {
60
+			e.printStackTrace();
61
+			result.put("success", "false");
62
+			result.put("msg", "上传失败");
63
+		} finally {
64
+			JSONArray jsonArray = new JSONArray();
65
+			jsonArray.add(result);
66
+			return jsonArray.toString();
67
+		}
68
+	}
69
+
70
+}

+ 1 - 1
src/main/java/com/chinaitop/depot/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
 		//指定 逆向工程配置文件(写自己电脑的路径)F:\LsProject\depot-basic\src\main\resources
19
-		File configFile = new File("F:\\LsProject\\depot-basic\\src\\main\\resources\\generatorConfig.xml");
19
+		File configFile = new File("D:\\git_10.10.1.25\\depot-basic-yunnan\\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);

+ 4 - 4
src/main/resources/generatorConfig.xml

@@ -14,7 +14,7 @@
14 14
 		<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
15 15
 		<jdbcConnection 
16 16
 			driverClass="com.mysql.jdbc.Driver"
17
-			connectionURL="jdbc:mysql://192.168.80.25:3306/depot" 
17
+			connectionURL="jdbc:mysql://192.168.123.38:3306/depot_yunnan" 
18 18
 			userId="root"
19 19
 			password="123456">
20 20
 		</jdbcConnection>
@@ -50,9 +50,9 @@
50 50
 		</javaClientGenerator>
51 51
 		
52 52
 		<!-- 指定要反向生成的数据库表 -->
53
-		<table schema="" tableName="basic_process_main"></table>
54
-		<table schema="" tableName="basic_process_sub"></table>
55
-		<table schema="" tableName="basic_process_contrail"></table>
53
+		<table schema="" tableName="basic_warehouse"></table>
54
+<!-- 		<table schema="" tableName="basic_process_sub"></table> -->
55
+<!-- 		<table schema="" tableName="basic_process_contrail"></table> -->
56 56
 
57 57
 	</context>
58 58
 </generatorConfiguration>