|
|
@@ -957,6 +957,7 @@ public class MeterWorkDataCountServiceImpl implements IMeterWorkDataCountService
|
|
|
for(MeterBaseSpotInfo spotModel: spotModels) {
|
|
|
long countFirst = 0L;
|
|
|
long countIdentifyYes = 0L;
|
|
|
+ double countIdentifyRate = 0.0;
|
|
|
long countIdentifyNo = 0L;
|
|
|
long countOtherIdentify = 0L;
|
|
|
if(rfidIdentifyList.size() >= 1) {
|
|
|
@@ -969,6 +970,8 @@ public class MeterWorkDataCountServiceImpl implements IMeterWorkDataCountService
|
|
|
&& item.getBaseSpotName().equals(spotModel.getBaseSpotName())
|
|
|
&& item.getCarNoType().equals("Rfid识别")
|
|
|
&& StringUtils.isNotEmpty(item.getRfidIdentifyRfidCarNo())).count();
|
|
|
+ //Rfid识别率
|
|
|
+ countIdentifyRate = Math.round((countIdentifyYes)/(countFirst*1.0)*100*100)/100.0;
|
|
|
//Rfid未识别总数
|
|
|
countIdentifyNo = rfidIdentifyList.stream().filter(item -> item.getBaseSpotNo().equals(spotModel.getBaseSpotNo())
|
|
|
&& item.getBaseSpotName().equals(spotModel.getBaseSpotName())
|
|
|
@@ -984,6 +987,7 @@ public class MeterWorkDataCountServiceImpl implements IMeterWorkDataCountService
|
|
|
map.put("baseSpotName", spotModel.getBaseSpotName());
|
|
|
map.put("countFirst", countFirst);
|
|
|
map.put("countIdentifyYes", countIdentifyYes);
|
|
|
+ map.put("countIdentifyRate", countIdentifyRate);
|
|
|
map.put("countIdentifyNo", countIdentifyNo);
|
|
|
map.put("countOtherIdentify", countOtherIdentify);
|
|
|
mapList.add(map);
|