Commit a1e3a267 authored by Quxl's avatar Quxl

x

parent 66f294fd
...@@ -103,7 +103,11 @@ public class GoodsCollectTask extends AbstractSolrApi{ ...@@ -103,7 +103,11 @@ public class GoodsCollectTask extends AbstractSolrApi{
for(Map<String, Object> orgMap : orgList) { for(Map<String, Object> orgMap : orgList) {
String sOrgNO = (String)orgMap.get("sOrgNO"); String sOrgNO = (String)orgMap.get("sOrgNO");
this.deleteByQuery("sOrgNO:" + sOrgNO); this.deleteByQuery("sOrgNO:" + sOrgNO);
this.update(jdbcTemplate.limitAll(createIndexQuerySql, new Page(1L, 1000L, "sOrgNO", "sAgentContractNO", "sGoodsNO"), sOrgNO)); List<Map<String, Object>> list = jdbcTemplate.limitAll(createIndexQuerySql, new Page(1L, 1000L, "sOrgNO", "sAgentContractNO", "sGoodsNO"), sOrgNO);
for(Map<String, Object> map : list) {
map.remove("RowNumber");
}
this.update(list);
} }
} }
......
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