员工信息-服务指令-已选择接口sql调整
This commit is contained in:
parent
c24db81f7e
commit
535d65725d
|
|
@ -214,12 +214,12 @@
|
|||
select a.id,
|
||||
a.type,
|
||||
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 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
|
||||
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 bq.instruction_name when 'zl' then zl.service_content else null end AS description,
|
||||
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
|
||||
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}
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue