mtw怎么写入arrayVector类型

使用

new BasicIntVector(
        new int[]{quote.getAskVolume1(), quote.getAskVolume2(), quote.getAskVolume3(),
                  quote.getAskVolume4(), quote.getAskVolume5()})

上述代码写入数据报错, Failed to insert data. Cannot convert Entity to DT_DOUBLE_ARRAY.

请先 登录 后评论

1 个回答

wfHuang

使用 对应类型的Object数组,上述代码可以改为




new BasicIntVector(
        new Integer[]{quote.getAskVolume1(), quote.getAskVolume2(), quote.getAskVolume3(),
                  quote.getAskVolume4(), quote.getAskVolume5()})
请先 登录 后评论