SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_no='LJCG001H' THEN dbo.ELTPNAME(a.fw_nu) ELSE d.fm_name END),e.fw_state_nm,f.fw_rmk_nm
FROM LJSS007H a (nolock)
left join LJPA003H b (nolock) on a.dp_no=b.dp_no
left join LJPA001H c (nolock) on c.pa_no=a.pa_no1
left join LJSS002H d (nolock) on d.fm_no=a.fm_no
left join LJSS008H e (nolock) on a.fw_state=e.fw_state_no
left join LJSS009H f (nolock) on a.fw_rmk_no=f.fw_rmk_no
WHERE a.fw_state>=2 And a.pa_no ='A0202002' and a.cr_time>='2024-07-01 00:00:00' and a.cr_time<='2024-07-19 23:59:59'
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。