Commit eaed11b0 authored by liuxinben's avatar liuxinben

修改QuerySequence

parent a354c22f
...@@ -306,7 +306,7 @@ public class ExportXMLApi { ...@@ -306,7 +306,7 @@ public class ExportXMLApi {
} }
}); });
try { 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"); OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8");
OutputFormat of = new OutputFormat(); OutputFormat of = new OutputFormat();
of.setEncoding("UTF-8"); of.setEncoding("UTF-8");
...@@ -321,7 +321,7 @@ public class ExportXMLApi { ...@@ -321,7 +321,7 @@ public class ExportXMLApi {
e.printStackTrace(); e.printStackTrace();
} }
System.out.println("XML文件生成成功..." + new Date()); 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; ...@@ -13,6 +13,6 @@ import java.util.Map;
*/ */
@Mapper @Mapper
public interface QuerySequenceMapper { public interface QuerySequenceMapper {
@Select("select #{sequenceName} from dual") @Select("select ${sequenceName} sequenceName from dual")
public int selectSequenceNextValue(@Param("sequenceName") String sequenceName); public List<Map<String,Object>> selectSequenceNextValue(@Param("sequenceName") String sequenceName);
} }
...@@ -24,9 +24,10 @@ public class QuerySequenceSercive { ...@@ -24,9 +24,10 @@ public class QuerySequenceSercive {
// //
// } // }
// return mapList.get(0).get("NUM2").toString(); // return mapList.get(0).get("NUM2").toString();
int i = querySequenceMapper.selectSequenceNextValue(sequenceName + ".nextval"); List<Map<String, Object>> maps = querySequenceMapper.selectSequenceNextValue(sequenceName + ".nextval");
System.out.println(i); Object sequencename = maps.get(0).get("SEQUENCENAME");
return null; 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