|
|
@ -1,18 +1,18 @@ |
|
|
|
package com.elink.esua.epdc.service.impl; |
|
|
|
|
|
|
|
import com.elink.esua.epdc.async.WxMaSecCheckTask; |
|
|
|
import com.elink.esua.epdc.common.token.dto.TokenDto; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.NumConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.enums.UserTagEnum; |
|
|
|
import com.elink.esua.epdc.commons.tools.enums.YesOrNoEnum; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.ParentAndAllDeptDTO; |
|
|
|
import com.elink.esua.epdc.dto.UploadToOssDTO; |
|
|
|
import com.elink.esua.epdc.dto.enums.GroupStateEnum; |
|
|
|
import com.elink.esua.epdc.dto.enums.GroupUserStateEnum; |
|
|
|
import com.elink.esua.epdc.dto.comment.TopicCommentFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.comment.TopicCommentStatementFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.comment.TopicCommentsFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.comment.result.EventCommentsResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.enums.TopicStateEnum; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcUserGroupInviteFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcUserGroupInviteResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.group.GroupSettingStateDTO; |
|
|
|
import com.elink.esua.epdc.dto.group.form.*; |
|
|
|
import com.elink.esua.epdc.dto.group.result.*; |
|
|
|
import com.elink.esua.epdc.dto.project.form.ProjectDetailFormDTO; |
|
|
@ -23,7 +23,6 @@ import com.elink.esua.epdc.dto.topic.form.*; |
|
|
|
import com.elink.esua.epdc.dto.topic.result.TopicDetailResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.topic.result.TopicListResultDTO; |
|
|
|
import com.elink.esua.epdc.feign.AdminFeignClient; |
|
|
|
import com.elink.esua.epdc.feign.OssFeignClient; |
|
|
|
import com.elink.esua.epdc.feign.PropertyFeignClient; |
|
|
|
import com.elink.esua.epdc.service.PropertyService; |
|
|
|
import com.elink.esua.epdc.utils.UserTagUtils; |
|
|
@ -48,6 +47,10 @@ public class PropertyServiceImpl implements PropertyService { |
|
|
|
private PropertyFeignClient propertyFeignClient; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxMaSecCheckTask wxMaSecCheckTask; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<GroupDetailForMobileEndResultDTO> getGroupDetail(TokenDto userDetail, String id) { |
|
|
|
if (null == userDetail) { |
|
|
@ -222,4 +225,42 @@ public class PropertyServiceImpl implements PropertyService { |
|
|
|
formDto.setGridId(userDetail.getGridId()); |
|
|
|
return propertyFeignClient.projectDetail(formDto); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result submit(TokenDto userDetail, TopicCommentFormDTO topicCommentFormDTO) { |
|
|
|
if (null == userDetail) { |
|
|
|
return new Result().error("获取用户信息失败"); |
|
|
|
} |
|
|
|
// 上传内容安全检查
|
|
|
|
wxMaSecCheckTask.checkMessage(topicCommentFormDTO.getContent()); |
|
|
|
topicCommentFormDTO.setUserId(userDetail.getUserId()); |
|
|
|
topicCommentFormDTO.setUserName(userDetail.getNickname()); |
|
|
|
topicCommentFormDTO.setUserFace(userDetail.getFaceImg()); |
|
|
|
if (UserTagUtils.containIdentity(userDetail.getUserTagInfos(), UserTagEnum.PARTY_MEMBER)) { |
|
|
|
topicCommentFormDTO.setPartyFlag(YesOrNoEnum.YES.value()); |
|
|
|
} else { |
|
|
|
topicCommentFormDTO.setPartyFlag(YesOrNoEnum.NO.value()); |
|
|
|
} |
|
|
|
return propertyFeignClient.submit(topicCommentFormDTO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result statement(TokenDto userDetail, TopicCommentStatementFormDTO topicCommentStatementFormDTO) { |
|
|
|
if (null == userDetail) { |
|
|
|
return new Result<EventCommentsResultDTO>().error("获取用户信息失败"); |
|
|
|
} |
|
|
|
topicCommentStatementFormDTO.setUseId(userDetail.getUserId()); |
|
|
|
topicCommentStatementFormDTO.setUserName(userDetail.getNickname()); |
|
|
|
return propertyFeignClient.statement(topicCommentStatementFormDTO); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result<EventCommentsResultDTO> listOfComments(TokenDto userDetail, TopicCommentsFormDTO topicCommentsFormDTO) { |
|
|
|
if (null == userDetail) { |
|
|
|
return new Result<EventCommentsResultDTO>().error("获取用户信息失败"); |
|
|
|
} |
|
|
|
topicCommentsFormDTO.setUserId(userDetail.getUserId()); |
|
|
|
return propertyFeignClient.listOfComments(topicCommentsFormDTO); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|