Browse Source

查询话题详情接口修改

master
yinzuomei 5 years ago
parent
commit
d05e718bce
  1. 6
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java
  2. 2
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/utils/ModuleConstant.java

6
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

@ -599,7 +599,11 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi
List<ResiTopicOperationEntity> records =
resiTopicOperationDao.selectList(queryWrapper);
if(null != records && records.size() > NumConstant.ZERO){
closeDetail.setCloseReason(records.get(0).getOperationReason());
if(StringUtils.isNotBlank(records.get(0).getOperationReason())){
closeDetail.setCloseReason(String.format("%s%s",
ModuleConstant.CLOSED_TOPIC_REASON_PREFIX,
records.get(0).getOperationReason()));
}
closeDetail.setCloseDateTime(records.get(0).getCreatedTime().getTime()/NumConstant.ONE_THOUSAND);
ResiGroupMemberInfoRedisDTO closedBy =
resiGroupMemberRedis.get(group.getId(),records.get(0).getCreatedBy());

2
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/utils/ModuleConstant.java

@ -326,4 +326,6 @@ public interface ModuleConstant extends Constant {
String FILED_TOPIC_ID = "TOPIC_ID";
String FIELD_OPERATION_TYPE = "OPERATION_TYPE";
String CLOSED_TOPIC_REASON_PREFIX="话题已关闭:";
}

Loading…
Cancel
Save