|
|
@ -35,11 +35,13 @@ import com.epmet.commons.tools.utils.ScanContentUtils; |
|
|
|
import com.epmet.constant.EventConstant; |
|
|
|
import com.epmet.constant.ResiEventAction; |
|
|
|
import com.epmet.dao.*; |
|
|
|
import com.epmet.dto.EventProjectInfoDTO; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.result.*; |
|
|
|
import com.epmet.entity.*; |
|
|
|
import com.epmet.feign.EpmetUserOpenFeignClient; |
|
|
|
import com.epmet.feign.GovOrgOpenFeignClient; |
|
|
|
import com.epmet.feign.GovProjectOpenFeignClient; |
|
|
|
import com.epmet.service.ResiEventService; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
@ -82,6 +84,8 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven |
|
|
|
private ResiEventMentionDao resiEventMentionDao; |
|
|
|
@Autowired |
|
|
|
private ResiEventOperationLogDao resiEventOperationLogDao; |
|
|
|
@Autowired |
|
|
|
private ProjectDao projectDao; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 群众直报(待处理、处理中、已办结)列表 |
|
|
@ -144,8 +148,43 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public EventDetailResultDTO eventDetail(EventDetailFormDTO formDTO) { |
|
|
|
return null; |
|
|
|
EventDetailResultDTO dto = baseDao.selectEventDetail(formDTO.getEventId()); |
|
|
|
if (null == dto){ |
|
|
|
return new EventDetailResultDTO(); |
|
|
|
} |
|
|
|
// 已转项目
|
|
|
|
if (dto.getIsProject()){ |
|
|
|
// 查询项目信息
|
|
|
|
EventProjectInfoDTO eventProjectInfo = projectDao.selectEventProjectInfo(dto.getProjectId()); |
|
|
|
// 查询操作人的名字
|
|
|
|
Result<String> staffName = govOrgOpenFeignClient.staffName(eventProjectInfo.getUserId()); |
|
|
|
if (!staffName.success()){ |
|
|
|
throw new RenException("查询工作人员名字失败"); |
|
|
|
} |
|
|
|
eventProjectInfo.setOperationName(staffName.getData()); |
|
|
|
dto.setProjectInfo(eventProjectInfo); |
|
|
|
} |
|
|
|
// 查询报事人名字
|
|
|
|
List<String> userIdList = new ArrayList<>(); |
|
|
|
userIdList.add(dto.getEventUserId()); |
|
|
|
Result<List<UserBaseInfoResultDTO>> userResult=epmetUserOpenFeignClient.queryUserBaseInfo(userIdList); |
|
|
|
if(!userResult.success()|| CollectionUtils.isEmpty(userResult.getData())){ |
|
|
|
throw new RenException("查询当前用户信息异常"); |
|
|
|
} |
|
|
|
userResult.getData().forEach(u -> { |
|
|
|
if (u.getUserId().equals(dto.getEventUserId())){ |
|
|
|
dto.setEventPeopleName(u.getShowName()); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 查询所属网格
|
|
|
|
Result<String> gridNameResult = govOrgOpenFeignClient.gridName(dto.getGridId()); |
|
|
|
if (!gridNameResult.success()){ |
|
|
|
throw new RenException("查询所属网格失败"); |
|
|
|
} |
|
|
|
dto.setGridName(gridNameResult.getData()); |
|
|
|
return dto; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 我要报事-提交(尹) |
|
|
|
* |
|
|
|