${IF 班别=='白班',"AND A.WORK_TIME IN('8','9','10','11','12','13','14','15','16','17','18','19')",
"AND A.WORK_TIME IN('21','22','23','0','1','2','3','4','5','16','7','20')"}
AND A.PROCESS_ID=D.PROCESS_ID
${if(班别="白班","AND A.WORK_TIME IN('8','9','10','11','12','13','14','15','16','17','18','19')","AND A.WORK_TIME IN('21','22','23','0','1','2','3','4','5','16','7','20')")}
------------------
你的控件名也要是班别
${if()}你少了括号
看下面的提示
$班别
可以获取到控件名的值
你的IF要加括号才能用
IF用法
https://help.fanruan.com/finereport10.0/doc-view-817.html