返回不同的实体类
1.返回类型可以是List<Object>
例如:
@Override public List<Object> getInspectWell(String startTime, String endTime, String type, Integer taskId, String types, Integer status) { if (types.equals("计划")){ List<PlanWellInfo> planWellInfos = progressStatisticsMapper.getPlanWellInfo(taskId); return Collections.singletonList(planWellInfos); } else { List<WellInfo> wellInfos = progressStatisticsMapper.getInspectWell(startTime,endTime,type,taskId,status); return Collections.singletonList(wellInfos); } }
返回中文字段名
List<Map<String, Object>> getMaintenanceStatistics(ParameterInfo parameterInfo);
<select id="getMaintenanceStatistics" resultType="java.util.Map"> </select>