select case when AA<= BB then '收货完成' when AA is null and CC<= BB then '收货完成' when AA is null and cc is null and DD<= FF then '收货完成' when DD is null and EE<= FF then '收货完成' else null end as 收货完成from dual
casewhen AA is not null and AA<=BB then '收货完成'when AA is null and CC is not null and CC<=BB then '收货完成'when AA is null and CC is null and DD is not null and DD<=FF then '收货完成'when AA is null and CC is null and DD is null and EE<=FF then '收货完成'end as 收货完成