fix:无法删除物料类型

This commit is contained in:
zhangcheng 2023-05-23 21:30:27 +08:00
parent 76706d67a6
commit 089daef814
1 changed files with 24 additions and 12 deletions

View File

@ -23,7 +23,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<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>
<select id="selectByEntity" parameterType="ItemType" resultMap="ItemTypeResult">
@ -40,7 +51,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateDelFlagByIds">
update wms_item_type set del_flag=1
<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>
</update>
</mapper>