项目中,用到一个序列作单号,框架用的是ssh,在dao层去拿的时候,运行时报错为dual is not mapped,[select *.nextval nextvalue from dual] 后来检查发现,获取方式不对,于是改成下面这样,就可以正常获取了 //获取seq的最后一个值 public String findSeq(){ try { String sql = "select PATIENT_SEQ.nextval nextvalue from dual"; Integer…
public void ReadVideoTime(String path) { long sum = 0; long num = 0; File source = new File(path[i]); Encoder encoder = new Encoder(); File[] file = source.listFiles(); for (File file2 : file) { try { MultimediaInfo m = encoder.getInfo(file2); long l…