fix:无法删除物料类型
This commit is contained in:
parent
76706d67a6
commit
089daef814
|
|
@ -23,7 +23,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectItemTypeVo">
|
<sql id="selectItemTypeVo">
|
||||||
select item_type_id, parent_id, ancestors, type_name, order_num, status, del_flag, create_by, create_time, update_by, update_time from wms_item_type
|
select item_type_id,
|
||||||
|
parent_id,
|
||||||
|
ancestors,
|
||||||
|
type_name,
|
||||||
|
order_num,
|
||||||
|
status,
|
||||||
|
del_flag,
|
||||||
|
create_by,
|
||||||
|
create_time,
|
||||||
|
update_by,
|
||||||
|
update_time
|
||||||
|
from wms_item_type
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectByEntity" parameterType="ItemType" resultMap="ItemTypeResult">
|
<select id="selectByEntity" parameterType="ItemType" resultMap="ItemTypeResult">
|
||||||
|
|
@ -40,7 +51,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<update id="updateDelFlagByIds">
|
<update id="updateDelFlagByIds">
|
||||||
update wms_item_type set del_flag=1
|
update wms_item_type set del_flag=1
|
||||||
<where>
|
<where>
|
||||||
id in <foreach collection="ids" open="(" item="it" close=")" separator=",">#{it}</foreach>
|
item_type_id in
|
||||||
|
<foreach collection="ids" open="(" item="it" close=")" separator=",">#{it}</foreach>
|
||||||
</where>
|
</where>
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue