error:
“nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘pod’ not found. Available parameters are [pods, startTime, endTime, envId, param3, param4, param1, param2]”
code๏ผ
@Select("SELECT im.\*, po.id AS podId " +
"FROM instance_monitor im " +
"JOIN pod po ON im.name = po.name " +
"WHERE im.update_time BETWEEN #{startTime} AND #{endTime} " +
" AND im.env_id = #{envId} " +
" AND im.name IN " +
" \ " +
" #{pod.podName} " +
" \")
List\ getPodByName(@Param("pods")List\ pods, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime,
@Param("envId") Integer envId);