|
|
@@ -20,11 +20,13 @@
|
|
|
a.is_product,
|
|
|
b.name as materialName,
|
|
|
c.name as wareHouseName,
|
|
|
- c.tld_id as tldId
|
|
|
- from
|
|
|
- tld_storage_location a
|
|
|
+ c.tld_id as tldId,
|
|
|
+ a.modify_time as modifyTime,
|
|
|
+ f.user_name as modifyUser
|
|
|
+ from tld_storage_location a
|
|
|
left join tld_material_type b on a.storage_location_type = b.tld_id
|
|
|
left join tld_warehouse c on a.warehouse_where = c.tld_id
|
|
|
+ left join tld_user f on a.modify_user = f.id
|
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|
|
|
<if test="storageLocationCode != null and storageLocationCode != ''">
|
|
|
and a.storage_location_code like CONCAT(CONCAT('%', #{storageLocationCode}), '%')
|
|
|
@@ -49,8 +51,8 @@
|
|
|
</select>
|
|
|
<!-- 新增库位信息 -->
|
|
|
<insert id="addStorage">
|
|
|
- insert into tld_storage_location(storage_location_code,storage_location_name,warehouse_where,storage_location_type,is_not_disable,storage_location_capacity,create_time,is_product)
|
|
|
- values(#{storageLocationCode},#{storageLocationName},#{warehouseWhere},#{storageLocationType},#{isNotDisable},#{storageLocationCapacity},DATE_FORMAT(NOW(), '%Y-%m-%d'),#{isProduct})
|
|
|
+ insert into tld_storage_location(storage_location_code,storage_location_name,warehouse_where,storage_location_type,is_not_disable,storage_location_capacity,create_time,is_product,modify_user,modify_time)
|
|
|
+ values(#{storageLocationCode},#{storageLocationName},#{warehouseWhere},#{storageLocationType},#{isNotDisable},#{storageLocationCapacity},DATE_FORMAT(NOW(), '%Y-%m-%d'),#{isProduct},#{modifyUser},NOW())
|
|
|
</insert>
|
|
|
<!-- 删除库位信息 -->
|
|
|
<delete id="delStorage">
|
|
|
@@ -82,6 +84,7 @@
|
|
|
<if test="isProduct != null and isProduct != ''">
|
|
|
is_product = #{isProduct},
|
|
|
</if>
|
|
|
+ modify_user = #{modifyUser},modify_time=now(),
|
|
|
</trim>
|
|
|
</set>
|
|
|
where id = #{id}
|