| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.panzhihua.common.model.vos.community.ComActDpcVO; |
| | | import com.panzhihua.common.model.vos.user.SysTemplateConfigVO; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.service_community.dao.ComActDAO; |
| | | import com.panzhihua.service_community.dao.ComActDpcDAO; |
| | | import com.panzhihua.service_community.model.dos.ComActDO; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | import com.panzhihua.service_community.model.dos.ComActMessageDO; |
| | | import com.panzhihua.service_community.service.ComActMessageService; |
| | | |
| | | import static java.util.Objects.isNull; |
| | | |
| | | @Service |
| | | public class ComActMessageServiceImpl extends ServiceImpl<ComActMessageDAO, ComActMessageDO> |
| | | implements ComActMessageService { |
| | |
| | | private ComActDAO comActDAO; |
| | | @Resource |
| | | private UserService userService; |
| | | @Resource |
| | | private ComActDpcDAO comActDpcDAO; |
| | | |
| | | @Override |
| | | public R addMessage(ComActMessageVO comActMessageVO) { |
| | |
| | | return R.fail(); |
| | | phone = party.getPhone(); |
| | | sendtoUserName = party.getName(); |
| | | } else if (type == 3) { |
| | | ComActDpcVO dpcVO = comActDpcDAO.detailDpc(comActMessageVO.getSendtoUserId()); |
| | | if (isNull(dpcVO)) { |
| | | return R.fail(); |
| | | } |
| | | phone = dpcVO.getPhone(); |
| | | sendtoUserName = dpcVO.getName(); |
| | | } |
| | | if (ObjectUtils.isEmpty(phone)) |
| | | return R.fail("未找到联系方式"); |