${if(len(PRO_TYPE) = 0, '',"AND op1.PRO_TYPE in ('" +SUBSTITUTE(PRO_TYPE,",","','") + "')")}
${if(len(PRO_TYPE) = 0, ""," AND op1.PRO_TYPE in ('" +PRO_TYPE + "')")}
PRO_TYPE设置返回字符串,分隔符','
你这个写法没有问题啊