员工信息-服务指令-已选指令回显

This commit is contained in:
1378012178@qq.com 2026-03-18 16:21:07 +08:00
parent 3b1c1c965a
commit 943ceb565a
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 b.tag_name when 'zl' then zl.directive_name else null end AS tag_name, 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 b.description when 'zl' then zl.service_content else null end AS description, 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 b.id when 'zl' then zl.id else null end AS employeesTagsId 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 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 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} where a.employees_id = #{employeesId}
</select> </select>