diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/servicetag/mapper/xml/ServiceTagMapper.xml b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/servicetag/mapper/xml/ServiceTagMapper.xml index 8aad3350..ac02a383 100644 --- a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/servicetag/mapper/xml/ServiceTagMapper.xml +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/config/servicetag/mapper/xml/ServiceTagMapper.xml @@ -214,12 +214,12 @@ select a.id, a.type, a.create_time, - case a.type when 'bq' then b.tag_name when 'zl' then zl.directive_name else null end AS tag_name, - case a.type when 'bq' then b.description when 'zl' then zl.service_content else null end AS description, - case a.type when 'bq' then b.id when 'zl' then zl.id else null end AS employeesTagsId + case a.type when 'bq' then bqzl.directive_name when 'zl' then zl.directive_name else null end AS tag_name, + case a.type when 'bq' then bqzl.service_content when 'zl' then zl.service_content else null end AS description, + case a.type when 'bq' then bqzl.id when 'zl' then zl.id else null end AS employeesTagsId from nu_biz_employees_service_tags a - LEFT JOIN nu_service_tag_main b on a.tags_id = b.id LEFT JOIN nu_config_service_directive zl on a.tags_id = zl.id + LEFT JOIN nu_config_service_directive bqzl on a.tags_id = bqzl.instruction_tag_id where a.employees_id = #{employeesId}