南昌市物联网技防平台-后台
Administrator
2021-03-20 d5b43ef0da42eaf50a08ce17e5fd3351eeb26a5e
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/parcel/service/impl/ParcelServiceImpl.java
@@ -255,18 +255,20 @@
            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);