Commit eaed11b0 authored by liuxinben's avatar liuxinben

修改QuerySequence

parent a354c22f
......@@ -306,7 +306,7 @@ public class ExportXMLApi {
}
});
try {
FileOutputStream fos = new FileOutputStream("D:\\XML\\" + "ZAGL_ZZJH_" + filesEntity.getDwdm() + getCurrentDate2String("yyyyMMdd") + cardType + files_seq + ".xml");
FileOutputStream fos = new FileOutputStream("D:\\XML\\" + "ZAGL_YDZZ_" + filesEntity.getDwdm() + getCurrentDate2String("yyyyMMdd") + cardType + files_seq + ".xml");
OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8");
OutputFormat of = new OutputFormat();
of.setEncoding("UTF-8");
......@@ -321,7 +321,7 @@ public class ExportXMLApi {
e.printStackTrace();
}
System.out.println("XML文件生成成功..." + new Date());
return "D:\\XML\\" + "ZAGL_ZZJH_" + filesEntity.getDwdm() + getCurrentDate2String("yyyyMMdd") + cardType + files_seq + ".xml";
return "D:\\XML\\" + "ZAGL_YDZZ_" + filesEntity.getDwdm() + getCurrentDate2String("yyyyMMdd") + cardType + files_seq + ".xml";
}
/**
......
......@@ -13,6 +13,6 @@ import java.util.Map;
*/
@Mapper
public interface QuerySequenceMapper {
@Select("select #{sequenceName} from dual")
public int selectSequenceNextValue(@Param("sequenceName") String sequenceName);
@Select("select ${sequenceName} sequenceName from dual")
public List<Map<String,Object>> selectSequenceNextValue(@Param("sequenceName") String sequenceName);
}
......@@ -24,9 +24,10 @@ public class QuerySequenceSercive {
//
// }
// return mapList.get(0).get("NUM2").toString();
int i = querySequenceMapper.selectSequenceNextValue(sequenceName + ".nextval");
System.out.println(i);
return null;
List<Map<String, Object>> maps = querySequenceMapper.selectSequenceNextValue(sequenceName + ".nextval");
Object sequencename = maps.get(0).get("SEQUENCENAME");
System.out.println(maps.get(0).get("SEQUENCENAME"));
return sequencename+"";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment