|  |  |  | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | List<String> users = new ArrayList<>(); | 
|---|
|  |  |  | users.add(username); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<Integer> userIds = new ArrayList<>(); | 
|---|
|  |  |  | List<Member > userList = memberMapper.selectList(new QueryWrapper<Member>().lambda() | 
|---|
|  |  |  | .in(Member::getPhone,users) | 
|---|
|  |  |  | 
|---|
|  |  |  | userIds.add(tu.getId()); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | throw  new BusinessException(ResponseStatus.SERVER_ERROR.getCode(), "对不起,无效账号~"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(userIds.size()>0){ | 
|---|
|  |  |  | //清空海康全部的代办数据 | 
|---|
|  |  |  | noticesJoinMapper.delete(new UpdateWrapper<Notices>().lambda() | 
|---|
|  |  |  | .eq(Notices::getType, Constants.noticesObjectType.hknotice) | 
|---|
|  |  |  | .in(Notices::getUserId, userIds)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Date date = new Date(); | 
|---|
|  |  |  | List<GetTodoListResponse> allHkList = new ArrayList<>(); | 
|---|
|  |  |  | 
|---|
|  |  |  | noticesJoinMapper.insert(list);//批量插入记录 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(userIds.size()>0){ | 
|---|
|  |  |  | //清空海康全部的代办数据 | 
|---|
|  |  |  | noticesJoinMapper.delete(new UpdateWrapper<Notices>().lambda() | 
|---|
|  |  |  | .eq(Notices::getType, Constants.noticesObjectType.hknotice) | 
|---|
|  |  |  | .in(Notices::getUserId, userIds)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | e.printStackTrace(); | 
|---|
|  |  |  | }finally { | 
|---|