|
|
|
@ -34,6 +34,7 @@ import com.elink.esua.epdc.constant.ImageConstant; |
|
|
|
import com.elink.esua.epdc.constants.MenuCodeConstant; |
|
|
|
import com.elink.esua.epdc.dto.MenuNoticeDTO; |
|
|
|
import com.elink.esua.epdc.dto.SysDeptDTO; |
|
|
|
import com.elink.esua.epdc.dto.category.CategoryDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.events.*; |
|
|
|
import com.elink.esua.epdc.dto.events.form.EpdcEventSubmitFormDTO; |
|
|
|
@ -44,6 +45,8 @@ import com.elink.esua.epdc.dto.issue.form.IssuePendingResponseFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.issue.result.IssuePendingResponseResultDTO; |
|
|
|
import com.elink.esua.epdc.modules.async.DeptRespondTask; |
|
|
|
import com.elink.esua.epdc.modules.async.NewsTask; |
|
|
|
import com.elink.esua.epdc.modules.category.entity.CategoryEntity; |
|
|
|
import com.elink.esua.epdc.modules.category.service.CategoryService; |
|
|
|
import com.elink.esua.epdc.modules.events.dao.EpdcEventsDao; |
|
|
|
import com.elink.esua.epdc.modules.events.entity.EpdcEventsEntity; |
|
|
|
import com.elink.esua.epdc.modules.events.service.EpdcEventsService; |
|
|
|
@ -98,6 +101,9 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
|
@Autowired |
|
|
|
private GroupFeignClient groupFeignClient; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private CategoryService categoryService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<EpdcEventsDTO> listOfPendingReviewEvents(Map<String, Object> params) { |
|
|
|
IPage<EpdcEventsDTO> page = getPage(params); |
|
|
|
@ -334,12 +340,12 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
|
issueEntity.setMobile(entity.getMobile()); |
|
|
|
issueEntity.setIssueContent(entity.getEventContent()); |
|
|
|
issueEntity.setDistributeTime(entity.getCreatedTime()); |
|
|
|
issueEntity.setArea(entity.getArea()); |
|
|
|
issueEntity.setAreaId(entity.getAreaId()); |
|
|
|
issueEntity.setStreet(entity.getStreet()); |
|
|
|
issueEntity.setStreetId(entity.getStreetId()); |
|
|
|
issueEntity.setCommunity(entity.getCommunity()); |
|
|
|
issueEntity.setCommunityId(entity.getCommunityId()); |
|
|
|
// issueEntity.setArea(entity.getArea());
|
|
|
|
// issueEntity.setAreaId(entity.getAreaId());
|
|
|
|
// issueEntity.setStreet(entity.getStreet());
|
|
|
|
// issueEntity.setStreetId(entity.getStreetId());
|
|
|
|
// issueEntity.setCommunity(entity.getCommunity());
|
|
|
|
// issueEntity.setCommunityId(entity.getCommunityId());
|
|
|
|
issueEntity.setParentDeptIds(entity.getParentDeptIds()); |
|
|
|
issueEntity.setParentDeptNames(entity.getParentDeptNames()); |
|
|
|
issueEntity.setAllDeptIds(entity.getAllDeptIds()); |
|
|
|
@ -348,6 +354,25 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
|
issueEntity.setGridId(entity.getGridId()); |
|
|
|
issueEntity.setIssueAddress(entity.getIssueAddress()); |
|
|
|
issueEntity.setCategoryCode(entity.getCategoryCode()); |
|
|
|
//初始化分类
|
|
|
|
List<CategoryEntity> cateList = categoryService.getPidListById(Long.parseLong(entity.getCategoryCode())); |
|
|
|
if(cateList != null && cateList.size() > 0) { |
|
|
|
issueEntity.setFirstcategoryCode(cateList.get(0).getCategoryCode()); |
|
|
|
String name = ""; |
|
|
|
for (int i = 0; i < cateList.size(); i++){ |
|
|
|
if (i == cateList.size() -1){ |
|
|
|
name = name + cateList.get(i).getCategoryName(); |
|
|
|
}else { |
|
|
|
name = name + cateList.get(i).getCategoryName() + "-"; |
|
|
|
} |
|
|
|
} |
|
|
|
issueEntity.setCategoryFullName(name); |
|
|
|
|
|
|
|
} else { |
|
|
|
issueEntity.setFirstcategoryCode(entity.getCategoryCode()); |
|
|
|
CategoryDTO dto =categoryService.get(Long.parseLong(entity.getCategoryCode())); |
|
|
|
issueEntity.setCategoryFullName(dto.getCategoryName()); |
|
|
|
} |
|
|
|
issueEntity.setIssueLatitude(entity.getIssueLatitude()); |
|
|
|
issueEntity.setIssueLongitude(entity.getIssueLongitude()); |
|
|
|
issueEntity.setGroupId(entity.getGroupId()); |
|
|
|
|