参数OLD_DEPT长度为0时LENGTH(a.DEPT_CODE)=6,否则判断参数OLD_DEPT长度为6时LENGTH(a.DEPT_CODE)=6,参数OLD_DEPT长度为8时LENGTH(a.DEPT_CODE)=8,${IF( LEN(OLD_DEPT)=0," AND "+ LENGTH(a.DEPT_CODE)=6 ,IF( LEN(OLD_DEPT)=6," AND "+ LENGTH(a.DEPT_CODE)=6,"AND"+ LENGTH(a.DEPT_CODE)=8 ) ) }