update 货位信息查询、新增、编辑增加storageUseType(货位属性)字段
This commit is contained in:
parent
5e080ab0d7
commit
60a7c85895
@ -11,4 +11,6 @@ public class StorageAddDto {
|
|||||||
private String storageName;
|
private String storageName;
|
||||||
// 描述
|
// 描述
|
||||||
private String description;
|
private String description;
|
||||||
|
//货位属性
|
||||||
|
private String storageUseType;
|
||||||
}
|
}
|
||||||
|
@ -11,4 +11,6 @@ public class StorageEditDto {
|
|||||||
private String storageName;
|
private String storageName;
|
||||||
// 描述
|
// 描述
|
||||||
private String description;
|
private String description;
|
||||||
|
//货位属性
|
||||||
|
private String storageUseType;
|
||||||
}
|
}
|
||||||
|
@ -10,4 +10,7 @@ public class StoragePageDto {
|
|||||||
|
|
||||||
// 货位描述
|
// 货位描述
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
|
//货位属性
|
||||||
|
private String storageUseType;
|
||||||
}
|
}
|
||||||
|
@ -11,4 +11,6 @@ public class StorageSpec {
|
|||||||
private String storageName;
|
private String storageName;
|
||||||
// 描述
|
// 描述
|
||||||
private String description;
|
private String description;
|
||||||
|
//货位属性
|
||||||
|
private String storageUseType;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="page" resultType="com.cim.idm.model.po.storage.StorageSpec">
|
<select id="page" resultType="com.cim.idm.model.po.storage.StorageSpec">
|
||||||
select SITENAME, STORAGENAME, DESCRIPTION
|
select SITENAME, STORAGENAME, DESCRIPTION, STORAGEUSETYPE
|
||||||
from STORAGESPEC
|
from STORAGESPEC
|
||||||
<where>
|
<where>
|
||||||
<if test="dto.storageName != null and dto.storageName != ''">
|
<if test="dto.storageName != null and dto.storageName != ''">
|
||||||
@ -17,6 +17,9 @@
|
|||||||
<if test="dto.description != null and dto.description != ''">
|
<if test="dto.description != null and dto.description != ''">
|
||||||
AND DESCRIPTION LIKE '%'||#{dto.description}||'%'
|
AND DESCRIPTION LIKE '%'||#{dto.description}||'%'
|
||||||
</if>
|
</if>
|
||||||
|
<if test="dto.storageUseType != null and dto.storageUseType != ''">
|
||||||
|
AND STORAGEUSETYPE = #{dto.storageUseType}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@ -28,12 +31,12 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="add">
|
<insert id="add">
|
||||||
insert into STORAGESPEC(SITENAME, STORAGENAME, DESCRIPTION)
|
insert into STORAGESPEC(SITENAME, STORAGENAME, DESCRIPTION, STORAGEUSETYPE)
|
||||||
values (#{storageSpec.siteName}, #{storageSpec.storageName}, #{storageSpec.description})
|
values (#{storageSpec.siteName}, #{storageSpec.storageName}, #{storageSpec.description}, #{storageSpec.storageUseType})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="editStorage">
|
<update id="editStorage">
|
||||||
update STORAGESPEC set DESCRIPTION = #{edit.description}
|
update STORAGESPEC set DESCRIPTION = #{edit.description} ,STORAGEUSETYPE = #{edit.storageUseType}
|
||||||
where SITENAME = #{edit.siteName}
|
where SITENAME = #{edit.siteName}
|
||||||
and STORAGENAME = #{edit.storageName}
|
and STORAGENAME = #{edit.storageName}
|
||||||
</update>
|
</update>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user