Commit 903bf675 by mayunfei

侦查指令单位分割问题

parent 2e18e6e8
......@@ -569,6 +569,7 @@ public class ZczlService implements IZczlService {
}else{
//遍历list,拼接单位的字符串
for(int i=0;i<list.size();i++){
if(i<500){
if(i==0){
inString = "('"+list.get(i)+"'";
......@@ -578,9 +579,11 @@ public class ZczlService implements IZczlService {
inString = inString+",'"+list.get(i)+"')";
}
}else{
if(i==500){
if(i == list.size() -1 && i % 500 == 0){
inString = inString + "or UNITCODE in ('"+list.get(i)+"'";
}else if(i!=list.size()-1){
}else if(i % 500 == 0){
inString = inString + "or UNITCODE in ('"+list.get(i)+"'";
}else if((i+1) % 500 != 0 && i!=list.size()-1){
inString = inString+",'"+list.get(i)+"'";
}else{
inString = inString+",'"+list.get(i)+"')";
......
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