update 货位信息查询、新增、编辑增加storageUseType(货位属性)字段

This commit is contained in:
18110972313 2025-04-29 09:13:20 +08:00
parent 5e080ab0d7
commit 60a7c85895
5 changed files with 16 additions and 4 deletions

View File

@ -11,4 +11,6 @@ public class StorageAddDto {
private String storageName;
// 描述
private String description;
//货位属性
private String storageUseType;
}

View File

@ -11,4 +11,6 @@ public class StorageEditDto {
private String storageName;
// 描述
private String description;
//货位属性
private String storageUseType;
}

View File

@ -10,4 +10,7 @@ public class StoragePageDto {
// 货位描述
private String description;
//货位属性
private String storageUseType;
}

View File

@ -11,4 +11,6 @@ public class StorageSpec {
private String storageName;
// 描述
private String description;
//货位属性
private String storageUseType;
}

View File

@ -8,7 +8,7 @@
</update>
<select id="page" resultType="com.cim.idm.model.po.storage.StorageSpec">
select SITENAME, STORAGENAME, DESCRIPTION
select SITENAME, STORAGENAME, DESCRIPTION, STORAGEUSETYPE
from STORAGESPEC
<where>
<if test="dto.storageName != null and dto.storageName != ''">
@ -17,6 +17,9 @@
<if test="dto.description != null and dto.description != ''">
AND DESCRIPTION LIKE '%'||#{dto.description}||'%'
</if>
<if test="dto.storageUseType != null and dto.storageUseType != ''">
AND STORAGEUSETYPE = #{dto.storageUseType}
</if>
</where>
</select>
@ -28,12 +31,12 @@
</select>
<insert id="add">
insert into STORAGESPEC(SITENAME, STORAGENAME, DESCRIPTION)
values (#{storageSpec.siteName}, #{storageSpec.storageName}, #{storageSpec.description})
insert into STORAGESPEC(SITENAME, STORAGENAME, DESCRIPTION, STORAGEUSETYPE)
values (#{storageSpec.siteName}, #{storageSpec.storageName}, #{storageSpec.description}, #{storageSpec.storageUseType})
</insert>
<update id="editStorage">
update STORAGESPEC set DESCRIPTION = #{edit.description}
update STORAGESPEC set DESCRIPTION = #{edit.description} ,STORAGEUSETYPE = #{edit.storageUseType}
where SITENAME = #{edit.siteName}
and STORAGENAME = #{edit.storageName}
</update>