diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/servicetag/mapper/xml/ServiceTagMapper.xml b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/servicetag/mapper/xml/ServiceTagMapper.xml index 11586d2..00c1001 100644 --- a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/servicetag/mapper/xml/ServiceTagMapper.xml +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/servicetag/mapper/xml/ServiceTagMapper.xml @@ -4,57 +4,56 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + @@ -96,7 +95,16 @@ csd.mp4_file, csd.preview_file, csd.immediate_file, - cdt.tag_name as tags_name, + cdt.id AS tag_id, + cdt.tag_name as cdt_tag_name, + cdt.sort AS tag_sort, + cdt.iz_enabled AS tag_iz_enabled, + cdt.del_flag AS tag_del_flag, + cdt.create_by AS tag_create_by, + cdt.create_time AS tag_create_time, + cdt.update_by AS tag_update_by, + cdt.update_time AS tag_update_time, + cdt.sys_org_code AS tag_sys_org_code, csc.category_name AS csc_category_name, cst.type_name AS cst_type_name FROM @@ -106,14 +114,12 @@ #{item.id} - ) dp + + ) dp LEFT JOIN nu_servtag_directive sd ON dp.id = sd.tag_id LEFT JOIN nu_config_service_directive csd ON sd.directive_id = csd.id - LEFT JOIN ( - select GROUP_CONCAT(c.tag_name) tag_name,b.directive_id from nu_directive_tag b - LEFT JOIN nu_config_directive_tag c on b.tag_id = c.id - GROUP BY b.directive_id - ) cdt on csd.id = cdt.directive_id + LEFT JOIN nu_directive_tag dt ON csd.id = dt.directive_id + LEFT JOIN nu_config_directive_tag cdt ON dt.tag_id = cdt.id LEFT JOIN nu_config_service_category csc ON csd.category_id = csc.id LEFT JOIN nu_config_service_type cst ON csd.type_id = cst.id order by dp.create_time desc @@ -135,7 +141,9 @@ - delete from nu_servtag_directive where tag_id = #{tag.id} + delete + from nu_servtag_directive + where tag_id = #{tag.id} @@ -146,25 +154,30 @@ - - - - -