一.先上sql语句 select t.Id,(CASE WHEN t.MaintainPeriodDescription = ‘每年维护2次’ THEN ‘一年二次’ ELSE ‘无’ END ) from [dbo].[Inst_InstrumentInfo]t 核心得东西是 case when 条件 then 符合条件怎么样 else 不符合条件怎么样 end 结束 二.序列化 ( case when 条件 then 符合条件结果 else 不符合条件结果 end )