|  |  | 
 |  |  | import com.doumee.core.exception.BusinessException; | 
 |  |  | import com.doumee.core.haikang.model.HKConstants; | 
 |  |  | import com.doumee.core.haikang.model.param.BaseResponse; | 
 |  |  | import com.doumee.core.haikang.model.param.request.AcsDeviceListRequest; | 
 |  |  | import com.doumee.core.haikang.model.param.request.DoorsListRequest; | 
 |  |  | import com.doumee.core.haikang.model.param.respose.*; | 
 |  |  | import com.doumee.core.haikang.model.param.respose.DoorsInfoResponse; | 
 |  |  | 
 |  |  |             List<Device> deleteList = new ArrayList<>(); | 
 |  |  |             List<Device> addList = new ArrayList<>(); | 
 |  |  |             List<Device> editList = new ArrayList<>(); | 
 |  |  |             List<DoorsInfoResponse> allHkList = new ArrayList<>(); | 
 |  |  |             Date date = new Date(); | 
 |  |  |             //查询全部门禁设备数据 | 
 |  |  |             List<Device> allList = deviceMapper.selectList(null); | 
 |  |  |             List<DoorsInfoResponse> allHkList = new ArrayList<>(); | 
 |  |  |             boolean hasNext = true; | 
 |  |  |             int curTotal = 0; | 
 |  |  |             int curPage = 1; | 
 |  |  | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             if(addList.size()>0){ | 
 |  |  |                 deviceMapper.insertBatchSomeColumn(addList); | 
 |  |  |                 deviceMapper.insert(addList); | 
 |  |  |             } | 
 |  |  |             if(editList.size()>0){ | 
 |  |  |                 for(Device d : editList){ |