员工信息-服务指令-已选择接口sql调整

This commit is contained in:
1378012178@qq.com 2026-03-19 09:05:38 +08:00
parent c24db81f7e
commit 535d65725d
1 changed files with 4 additions and 4 deletions

View File

@ -214,12 +214,12 @@
select a.id, select a.id,
a.type, a.type,
a.create_time, a.create_time,
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 bq.instruction_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 bq.instruction_name 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 case a.type when 'bq' then bq.id when 'zl' then zl.id else null end AS employeesTagsId
from nu_biz_employees_service_tags a from nu_biz_employees_service_tags a
LEFT JOIN nu_config_service_directive zl on a.tags_id = zl.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 LEFT JOIN nu_config_service_instruction_tag bq on a.tags_id = bq.id
where a.employees_id = #{employeesId} where a.employees_id = #{employeesId}
</select> </select>