| | |
| | | Map<String, Object> objectMap = (Map<String, Object>) object;//取出list里面的值转为map |
| | | //对比时间和objCode,危险品,刀具,枪支等 |
| | | if (time.equals(objectMap.get("dateStr").toString()) ){ |
| | | //枪支 |
| | | if (objectMap.get("objCode").toString().equals("gan")) { |
| | | count += Integer.parseInt(objectMap.get("objCount").toString()); |
| | | } |
| | | //刀具 |
| | | if (objectMap.get("objCode").toString().equals("knife")) { |
| | | count += Integer.parseInt(objectMap.get("objCount").toString()); |
| | | } |
| | | //爆炸物 |
| | | if (objectMap.get("objCode").toString().equals("boomExplosive")) { |
| | | count += Integer.parseInt(objectMap.get("objCount").toString()); |
| | | } |
| | | // //枪支 |
| | | // if (objectMap.get("objCode").toString().equals("gan")) { |
| | | // count += Integer.parseInt(objectMap.get("objCount").toString()); |
| | | // } |
| | | // //刀具 |
| | | // if (objectMap.get("objCode").toString().equals("knife")) { |
| | | // count += Integer.parseInt(objectMap.get("objCount").toString()); |
| | | // } |
| | | // //爆炸物 |
| | | // if (objectMap.get("objCode").toString().equals("boomExplosive")) { |
| | | // count += Integer.parseInt(objectMap.get("objCount").toString()); |
| | | // } |
| | | //3-20 修改不筛选危险品,由第三方筛选好 |
| | | count += Integer.parseInt(objectMap.get("objCount").toString()); |
| | | } |
| | | } |
| | | list.add(count); |