|
|
@@ -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>
|