Commit 60544650 authored by Quxl's avatar Quxl

x

parent dc8d3e69
...@@ -68,7 +68,7 @@ public class SI011ACTUALSALESSyncOutServiceTask { ...@@ -68,7 +68,7 @@ public class SI011ACTUALSALESSyncOutServiceTask {
} }
private void sendData(SI011ACTUALSALESSyncOut SI011ACTUALSALESSyncOut) { private void sendData(SI011ACTUALSALESSyncOut SI011ACTUALSALESSyncOut) {
Page page = new Page(1L, 1000L, new String[] {"DIS_CODE", "TRACE_NO"}); Page page = new Page(1L, 1000L, new String[] {"DIS_CODE", "SALES_NO"});
String sql = "SELECT * FROM t_dis_sales WHERE SEND_STATUS = 'N'"; String sql = "SELECT * FROM t_dis_sales WHERE SEND_STATUS = 'N'";
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>(); List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
List<Map<String, Object>> tmp = null; List<Map<String, Object>> tmp = null;
...@@ -78,7 +78,7 @@ public class SI011ACTUALSALESSyncOutServiceTask { ...@@ -78,7 +78,7 @@ public class SI011ACTUALSALESSyncOutServiceTask {
list.addAll(tmp); list.addAll(tmp);
page.toNextPage(); page.toNextPage();
} while(tmp != null && tmp.size() > 0); } while(tmp != null && tmp.size() > 0);
Map<String, List<Map<String, Object>>> datas = CollectionUtil.toGroupList(list, "DIS_CODE", "TRACE_NO"); Map<String, List<Map<String, Object>>> datas = CollectionUtil.toGroupList(list, "DIS_CODE", "SALES_NO");
for(List<Map<String, Object>> vList : datas.values()) { for(List<Map<String, Object>> vList : datas.values()) {
try { try {
this.sendData(SI011ACTUALSALESSyncOut, vList); this.sendData(SI011ACTUALSALESSyncOut, vList);
......
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