| | |
| | | records.forEach(comActMessageVO1 -> { |
| | | Long id = comActMessageVO1.getId(); |
| | | List<ComActMessageBackVO> list = comActMessageDAO.selectMsgBackList(id); |
| | | if(list!=null&& list.size()>0) { |
| | | list.forEach(vo -> { |
| | | Long type = comActMessageVO1.getType(); |
| | | if (type == 1) { |
| | | ComPbServiceTeamVO team = comActMessageDAO.selectComPbServiceTeamById(comActMessageVO1.getSendtoUserId()); |
| | | if (!ObjectUtils.isEmpty(team)) { |
| | | vo.setUserJob(team.getJob()); |
| | | } |
| | | } else if (type == 2) { |
| | | PartyCommitteeVO party = comActMessageDAO.selectPartyCommitteeById(comActMessageVO1.getSendtoUserId()); |
| | | if (!ObjectUtils.isEmpty(party)) { |
| | | vo.setUserJob(party.getPosition()); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | comActMessageVO1.setBackList(list); |
| | | }); |
| | | iPage.setRecords(records); |
| | |
| | | records.forEach(comActMessageVO1 -> { |
| | | Long id = comActMessageVO1.getId(); |
| | | List<ComActMessageBackVO> list = comActMessageDAO.selectMsgBackList(id); |
| | | |
| | | comActMessageVO1.setBackList(list); |
| | | }); |
| | | iPage.setRecords(records); |