| | |
| | | package cn.com.basic.face.service;
|
| | |
|
| | | import android.graphics.Bitmap;
|
| | | import android.util.Base64;
|
| | |
|
| | | import org.xutils.http.RequestParams;
|
| | |
| | |
|
| | | prevList.addAll(0, newList);
|
| | |
|
| | | fillBlank(prevList, doubleList);
|
| | | registerTopAndCheckInBottom(prevList, doubleList);
|
| | |
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
|
| | | }
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | 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;
|
| | |
| | |
|
| | | }
|
| | |
|
| | | 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) {
|