fix:物料产品管理中的SIP和SOP图片展示顺序和图片和导入功能问题解决

This commit is contained in:
zhangxuanming
2024-12-23 15:07:42 +08:00
parent 1fc0123e17
commit f675187f81
8 changed files with 108 additions and 33 deletions

View File

@@ -84,15 +84,21 @@
where item_type_name=#{itemTypeName} and parent_type_id = #{parentTypeId} limit 1
</select>
<!-- <select id="selectItemTypeByName" parameterType="String" resultMap="ItemTypeResult">-->
<!-- select *-->
<!-- from (-->
<!-- select CONCAT((select group_concat(item_type_name separator '/')-->
<!-- from md_item_type b-->
<!-- where FIND_IN_SET(CAST(item_type_id as CHAR),a.ancestors)>0),'/',a.item_type_name) as fullType,a.*-->
<!-- from md_item_type a-->
<!-- ) t-->
<!-- where fullType = #{itemTypeName} or t.item_type_name = #{itemTypeName}-->
<!-- </select>-->
<select id="selectItemTypeByName" parameterType="String" resultMap="ItemTypeResult">
select *
from (
select CONCAT((select group_concat(item_type_name separator '/')
from md_item_type b
where FIND_IN_SET(CAST(item_type_id as CHAR),a.ancestors)>0),'/',a.item_type_name) as fullType,a.*
from md_item_type a
) t
where fullType = #{itemTypeName} or t.item_type_name = #{itemTypeName}
from md_item_type
where item_type_name = #{itemTypeName}
</select>
<select id="checkItemTypeCodeUnique" resultMap="ItemTypeResult">