xuxiuxi
2017-04-27 4c80106fc15aed5f393200f00371c70a2ed22838
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/SurveillanceMng.java
@@ -1,6 +1,5 @@
package cn.com.basic.face.service;
import android.graphics.Bitmap;
import android.util.Base64;
import org.xutils.http.RequestParams;
@@ -72,7 +71,7 @@
                    prevList.addAll(0, newList);
                    fillBlank(prevList, doubleList);
                    registerTopAndCheckInBottom(prevList, doubleList);
                    SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
                }
@@ -81,11 +80,11 @@
        });
    }
    private void fillBlank(List<SurveillanceQueryItem> list, List<SurveillanceQueryItem> doubleList) {
    private void registerTopAndCheckInBottom(List<SurveillanceQueryItem> list, List<SurveillanceQueryItem> doubleList) {
        doubleList.clear();
        List<SurveillanceQueryItem> registerList = new ArrayList<SurveillanceQueryItem>();
        List<SurveillanceQueryItem> checkInList = new ArrayList<SurveillanceQueryItem>();
        removeDuplicate(list);
        removeDuplicateCheckIn(list);
        int maxRegister = 20;
        int i1 = 0, j = 0;
        int maxCheckIn = 20;
@@ -129,7 +128,7 @@
    }
    private void removeDuplicate(List<SurveillanceQueryItem> list) {
    private void removeDuplicateCheckIn(List<SurveillanceQueryItem> list) {
        List itemsToRemove = new ArrayList();
        Set<String> registerIds = new HashSet<>();
        for (SurveillanceQueryItem item : list) {