fix:物料产品管理中的SIP和SOP图片展示顺序和图片和导入功能问题解决
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user