|
@@ -4,7 +4,7 @@
|
|
|
<mapper namespace="com.tld.mapper.StorageLocationMapper">
|
|
|
|
|
|
<sql id="field">
|
|
|
- id,storage_location_code,storage_location_name,warehouse_where,storage_location_type,is_not_disable,create_time
|
|
|
+ id,storage_location_code,storage_location_name,warehouse_where,storage_location_type,is_not_disable,storage_location_capacity,create_time
|
|
|
</sql>
|
|
|
<!-- 查询库位信息 -->
|
|
|
<select id="getStorage" resultType="com.tld.model.StorageLocation">
|
|
@@ -32,8 +32,8 @@
|
|
|
</select>
|
|
|
<!-- 新增库位信息 -->
|
|
|
<insert id="addStorage">
|
|
|
- insert into tld_storage_location(storage_location_code,storage_location_name,warehouse_where,storage_location_type,is_not_disable,create_time)
|
|
|
- values(#{storageLocationCode},#{storageLocationName},#{warehouseWhere},#{storageLocationType},#{isNotDisable},DATE_FORMAT(NOW(), '%Y-%m-%d'))
|
|
|
+ insert into tld_storage_location(storage_location_code,storage_location_name,warehouse_where,storage_location_type,is_not_disable,storage_location_capacity,create_time)
|
|
|
+ values(#{storageLocationCode},#{storageLocationName},#{warehouseWhere},#{storageLocationType},#{isNotDisable},#{storageLocationCapacity},DATE_FORMAT(NOW(), '%Y-%m-%d'))
|
|
|
</insert>
|
|
|
<!-- 删除库位信息 -->
|
|
|
<delete id="delStorage">
|
|
@@ -56,6 +56,9 @@
|
|
|
<if test="storageLocationType != null and storageLocationType != ''">
|
|
|
storage_location_type = #{storageLocationType},
|
|
|
</if>
|
|
|
+ <if test="storageLocationCapacity != null and storageLocationCapacity != ''">
|
|
|
+ storage_location_capacity = #{storageLocationCapacity},
|
|
|
+ </if>
|
|
|
<if test="isNotDisable != null and isNotDisable != ''">
|
|
|
is_not_disable = #{isNotDisable},
|
|
|
</if>
|
|
@@ -70,7 +73,8 @@
|
|
|
storage_location_name,
|
|
|
warehouse_where,
|
|
|
storage_location_type,
|
|
|
- case is_not_disable when '1' then '启用' when '2' then '禁用' END as isNotDisable,
|
|
|
+ storage_location_capacity,
|
|
|
+ case is_not_disable when '1' then '启用' when '0' then '禁用' END as isNotDisable,
|
|
|
create_time
|
|
|
from tld_storage_location
|
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|