String ID converted to String name

Source: Internet
Author: User

Select U.cnname+ ', ' from F_splitstr (' 1828,1055333,1,1035681,752,494,22549,219,23860,478,23453,677,718,782,2358 ', ' ,‘)
Join T_bd_user U on U.ID=F1
For XML PATH (")

Select Rolename,executorname,
Case is temp. Cnname= ' Then '
When temp. Cnname<> ' Then
Left (temp. Cnname,len (temp. Cnname)-1) End as Cnname,executedate,actionname,status,remark from (select R.name rolename,u.cnname executorname,
(select U.cnname+ ', ' from F_splitstr (Receiverid, ', ')
Join T_bd_user U on U.ID=F1
For XML PATH (")) as Cnname,
A.executedate,
Case ActionId ' presentation '
When the "approval" End ActionName,
Case Approvelogstatusid If 1 then ' delivered '
When 2 Then ' released ' End Status,
Remark
From
T_fi_wf_approvelog A
Join T_is_facilitylpptemplate LPP on LPP. Workflowinstanceid=a.instanceid
Join T_bd_role R on R.id=a.roleid
Join T_bd_user U on U.id=a.executorid
Join T_sys_enum_templatestatus T on T.id=a.approvelogstatusid
where lpp.id=61) Temp

String ID converted to String name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.