Commit 06e4759a by liulei

APP文件上传

parent 3660055b
...@@ -206,12 +206,9 @@ public class ServiceHPMT002 extends ServiceBase { ...@@ -206,12 +206,9 @@ public class ServiceHPMT002 extends ServiceBase {
List<HPZL001A> docIdlist = this.dao.query("HPZL001A.queryDev", Map); List<HPZL001A> docIdlist = this.dao.query("HPZL001A.queryDev", Map);
List<String> imgList = new ArrayList<>(); List<String> imgList = new ArrayList<>();
for (int i = 0; i < docIdlist.size(); i++) { for (int i = 0; i < docIdlist.size(); i++) {
Map dirId = new HashMap();
HPZL001A hpzl001A = docIdlist.get(i); HPZL001A hpzl001A = docIdlist.get(i);
String docId = hpzl001A.getDocId(); String docId = hpzl001A.getDocId();
dirId.put("docId", docId); imgList.add(docId);
List<Map> query = this.dao.query("HPMT002.queryFile", dirId);
imgList.add((String) query.get(0).get("URL"));
} }
//处理的文件 //处理的文件
Map Map2 = new HashMap(); Map Map2 = new HashMap();
...@@ -220,12 +217,9 @@ public class ServiceHPMT002 extends ServiceBase { ...@@ -220,12 +217,9 @@ public class ServiceHPMT002 extends ServiceBase {
List<HPZL001A> docIdlist2 = this.dao.query("HPZL001A.queryDev", Map2); List<HPZL001A> docIdlist2 = this.dao.query("HPZL001A.queryDev", Map2);
List<String> imgList2 = new ArrayList<>(); List<String> imgList2 = new ArrayList<>();
for (int i = 0; i < docIdlist2.size(); i++) { for (int i = 0; i < docIdlist2.size(); i++) {
Map dirId = new HashMap();
HPZL001A hpzl001A = docIdlist2.get(i); HPZL001A hpzl001A = docIdlist2.get(i);
String docId = hpzl001A.getDocId(); String docId = hpzl001A.getDocId();
dirId.put("docId", docId); imgList2.add(docId);
List<Map> query = this.dao.query("HPMT002.queryFile", dirId);
imgList2.add((String) query.get(0).get("URL"));
} }
Map sqlMap = new HashMap(); Map sqlMap = new HashMap();
sqlMap.put("companyCode", companyCode); sqlMap.put("companyCode", companyCode);
......
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