|
|
@ -498,6 +498,11 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi |
|
|
|
return verifyError; |
|
|
|
} |
|
|
|
|
|
|
|
//1.3检查话题是否在议题审核的状态
|
|
|
|
if(checkTopicIfUnderAuditing(hiddenFormDTO.getTopicId())){ |
|
|
|
throw new RenException(EpmetErrorCode.TOPIC_SHIFTED_TO_ISSUE_UNDER_AUDITING.getCode()); |
|
|
|
} |
|
|
|
|
|
|
|
//2.屏蔽话题
|
|
|
|
ResiTopicEntity topicForUpdate = new ResiTopicEntity(); |
|
|
|
topicForUpdate.setId(hiddenFormDTO.getTopicId()); |
|
|
@ -608,6 +613,11 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi |
|
|
|
return verifyError; |
|
|
|
} |
|
|
|
|
|
|
|
//1.3检查话题是否在议题审核的状态
|
|
|
|
if(checkTopicIfUnderAuditing(closeFormDTO.getTopicId())){ |
|
|
|
throw new RenException(EpmetErrorCode.TOPIC_SHIFTED_TO_ISSUE_UNDER_AUDITING.getCode()); |
|
|
|
} |
|
|
|
|
|
|
|
//2.关闭操作
|
|
|
|
topic.setClosedStatus(closeFormDTO.getClosedStatus()); |
|
|
|
baseDao.updateById(topic); |
|
|
@ -1782,6 +1792,28 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi |
|
|
|
return baseDao.selectTopicIdsByGroup(groupId); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 查看话题是否在议题审核的状态 |
|
|
|
* @param topicId |
|
|
|
* @return boolean |
|
|
|
* @author wangc |
|
|
|
* @date 2020.11.30 10:05 |
|
|
|
*/ |
|
|
|
private boolean checkTopicIfUnderAuditing(String topicId){ |
|
|
|
Map<String,Object> params = new HashMap<>(); |
|
|
|
params.put(ModuleConstant.FILED_TOPIC_ID_HUMP,topicId); |
|
|
|
Result<List<IssueApplicationDTO>> reply = issueOpenFeignClient.list(params); |
|
|
|
if(reply.success()){ |
|
|
|
if(!CollectionUtils.isEmpty(reply.getData())){ |
|
|
|
List<IssueApplicationDTO> applications = reply.getData(); |
|
|
|
|
|
|
|
return StringUtils.equals(ModuleConstant.TOPIC_SHIFTED_TO_ISSUE_STATUS_UNDER_AUDITING,applications.get(NumConstant.ZERO).getApplyStatus()) ? true : false; |
|
|
|
}else return false; |
|
|
|
} |
|
|
|
log.error("Method [checkTopicIfUnderAuditing] of service gov-issue called failed,topicId is [%s]",topicId); |
|
|
|
throw new RenException(reply.getInternalMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|