| | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActMessageVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.ComPbServiceTeamVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.PartyCommitteeVO; |
| | | import com.panzhihua.service_community.dao.ComActMessageDAO; |
| | | import com.panzhihua.service_community.model.dos.ComActMessageDO; |
| | | import com.panzhihua.service_community.service.ComActMessageService; |
| | |
| | | @Override |
| | | public R addMessage(ComActMessageVO comActMessageVO) { |
| | | Long type = comActMessageVO.getType(); |
| | | String phone=""; |
| | | if(type==1) { |
| | | ComPbServiceTeamVO team = comActMessageDAO.selectComPbServiceTeamById(comActMessageVO.getSendtoUserId()); |
| | | if(ObjectUtils.isEmpty(team)) return R.fail(); |
| | | phone=team.getPhone(); |
| | | }else if(type==2) { |
| | | PartyCommitteeVO party = comActMessageDAO.selectPartyCommitteeById(comActMessageVO.getSendtoUserId()); |
| | | if(ObjectUtils.isEmpty(party)) return R.fail(); |
| | | phone=party.getPhone(); |
| | | } |
| | | if(ObjectUtils.isEmpty(phone)) return R.fail("未找到联系方式"); |
| | | // TODO Auto-generated method stub |
| | | return null; |
| | | } |