Commit 8f779f9a by yanru

Merge remote-tracking branch 'origin/master'

parents 557f56a3 49750488
......@@ -306,7 +306,7 @@ public class YpbgServiceImpl implements IYpbgService {
}
fas0Zb = NumberUtil.getPercent(fas0, qxs);
String fadw = "";
String fadw = "发生命案较多的有:";
if (faList!=null&&faList.size()>10){
for (int i =0;i<10;i++){
fadw += getMapValue(faList.get(i),"dwmc")+"、";
......@@ -316,9 +316,14 @@ public class YpbgServiceImpl implements IYpbgService {
fadw += getMapValue(map, "dwmc")+"、";
}
}
fadw = fadw.substring(0,fadw.length()-1)+"。";
if (fadw.endsWith("、")){
fadw = fadw.substring(0,fadw.length()-1)+"。";
}else {
fadw = "";
}
String resultStr = "全国"+qxs+"个区县中,零发案的有"+fas0+"个、占"+fas0Zb+",发生1起命案的"+fas1+"个,发生2起命案的"+fas2+"个,发生3起及以上命案的"+
fas3+"个。发生命案较多的有:"+fadw;
fas3+"个。"+fadw;
return resultStr;
}
......
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