多个车推送给多个关注的人

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Android_Mrchen/article/details/89517230
List<TbProduceCarFollowPO>  userList=new ArrayList<>();
            System.out.println(carjson);
            List<CarChangeVO> carList= JSONObject.parseArray(carjson, CarChangeVO.class);
            if (!AssertUtil.isEmpty(carList)) {
                for (int i=0;i<carList.size();i++)
                {
                    String uuid=   UUID32.getID();
                    userList.addAll(boardservice.getFollowCarUser(carList.get(i).getCARCODE()));
                    carList.get(i).setCARId(uuid);
                    boardservice.saveChangeCar(carList.get(i));
                }

                if (!AssertUtil.isEmpty(userList)) {
                    for (int i=0;i<userList.size();i++) {
                        UserInfoVO userInfoVO= contactService.getUserInfoByUserId(userList.get(i).getUserid());
                        CarChangeVO  carChange=  boardservice.getChangeCar(userList.get(i).getCarcode());
                        boardservice.sendCarMsg(carChange,userInfoVO,userInfoVO.getCorpId(),userInfoVO.getOrgId());
                    }
                }
            }

猜你喜欢

转载自blog.csdn.net/Android_Mrchen/article/details/89517230