Commit 833d55f7 authored by dahai's avatar dahai

push

parent 90d7ec9c
...@@ -48,7 +48,7 @@ public class ExportXMLApi { ...@@ -48,7 +48,7 @@ public class ExportXMLApi {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
filesEntity.setCreatTime(simpleDateFormat.format(new Date())); filesEntity.setCreatTime(simpleDateFormat.format(new Date()));
try { try {
ExportXml.createToMakePackageXML(preproPersonEntities,filesEntity,"\\zhang\\"); ExportXml.createToMakePackageXML(preproPersonEntities,filesEntity,"\\zhang");
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
...@@ -28,7 +28,7 @@ public interface PreproPersonMapper { ...@@ -28,7 +28,7 @@ public interface PreproPersonMapper {
"left join files on PREPRO_PERSON.FILE_ID = files.ID\n" + "left join files on PREPRO_PERSON.FILE_ID = files.ID\n" +
"left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID " + "left join NEW_FILES on PREPRO_PERSON.FILE_ID = NEW_FILES.ID " +
"where 1=1 " + "where 1=1 " +
"<when test='uploadNo!=null'> and PREPRO_PERSON.JMSFZSLH = #{uploadNo} </when>" + " <when test='uploadNo!=null'> and PREPRO_PERSON.JMSFZSLH = #{uploadNo} </when>" +
" <when test='IDCard!=null'> and GMSFHM = #{IDCard} </when> " + " <when test='IDCard!=null'> and GMSFHM = #{IDCard} </when> " +
" <when test='oldFile!=null'> and files.SOURCE_FILE_NAME =#{oldFile} </when> " + " <when test='oldFile!=null'> and files.SOURCE_FILE_NAME =#{oldFile} </when> " +
" <when test='newFile!=null'> and NEW_FILES.NEW_FILE_NAME = #{newFile} </when> " + " <when test='newFile!=null'> and NEW_FILES.NEW_FILE_NAME = #{newFile} </when> " +
......
...@@ -20,6 +20,7 @@ public class ExportXml { ...@@ -20,6 +20,7 @@ public class ExportXml {
* @throws IOException 可能出现文件写入不成功 * @throws IOException 可能出现文件写入不成功
*/ */
public static void createToMakePackageXML(List<PreproPersonEntity> preproPersonEntities , FilesEntity filesEntity, String url) throws IOException { public static void createToMakePackageXML(List<PreproPersonEntity> preproPersonEntities , FilesEntity filesEntity, String url) throws IOException {
//todo
Document document = DocumentHelper.createDocument(); Document document = DocumentHelper.createDocument();
Element PACKAGE = DocumentHelper.createElement("PACKAGE"); Element PACKAGE = DocumentHelper.createElement("PACKAGE");
document.setRootElement(PACKAGE); document.setRootElement(PACKAGE);
...@@ -83,6 +84,7 @@ public class ExportXml { ...@@ -83,6 +84,7 @@ public class ExportXml {
SJR_YZBM.setText(replaceNullString(preproPersonEntity.getSjrYzbm())); SJR_YZBM.setText(replaceNullString(preproPersonEntity.getSjrYzbm()));
Element SJR_TXDZ = RECORD.addElement("SJR_TXDZ"); Element SJR_TXDZ = RECORD.addElement("SJR_TXDZ");
SJR_TXDZ.setText(replaceNullString(preproPersonEntity.getSjrTxdz())); SJR_TXDZ.setText(replaceNullString(preproPersonEntity.getSjrTxdz()));
NO++;
} }
YXStringUtils.saveDom2File(document, url + "\\" + "ZAGL_ZZJH_" + ".xml"); YXStringUtils.saveDom2File(document, url + "\\" + "ZAGL_ZZJH_" + ".xml");
} }
......
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