员工信息-服务指令-已选指令回显
This commit is contained in:
parent
3b1c1c965a
commit
943ceb565a
|
|
@ -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}
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue