|
|
|
@ -60,6 +60,7 @@ import com.elink.esua.epdc.modules.item.entity.ItemHandleProcessEntity; |
|
|
|
import com.elink.esua.epdc.modules.item.entity.ItemInformationEntity; |
|
|
|
import com.elink.esua.epdc.modules.item.service.*; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
@ -578,6 +579,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
itemEntity.setLastHandleTime(new Date()); |
|
|
|
baseDao.updateById(itemEntity); |
|
|
|
|
|
|
|
|
|
|
|
//业务部门消息处理
|
|
|
|
ItemInformationEntity itemInfoDto = new ItemInformationEntity(); |
|
|
|
// 消息类型
|
|
|
|
@ -611,10 +613,12 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
itemInfoDto.setDeptId(entity.getGridId().toString()); |
|
|
|
itemInformationService.insert(itemInfoDto); |
|
|
|
//修改通知部门Id(街道Id)
|
|
|
|
ItemInformationEntity itemInfoStreetDto = new ItemInformationEntity(); |
|
|
|
BeanUtils.copyProperties(itemInfoDto,itemInfoStreetDto); |
|
|
|
Result<CompleteDeptDTO> result =adminFeignClient.getCompleteDept(entity.getGridId()); |
|
|
|
CompleteDeptDTO comDeptDto = result.getData(); |
|
|
|
itemInfoDto.setDeptId(comDeptDto.getStreetId().toString()); |
|
|
|
itemInformationService.insert(itemInfoDto); |
|
|
|
itemInfoStreetDto.setDeptId(comDeptDto.getStreetId().toString()); |
|
|
|
itemInformationService.insert(itemInfoStreetDto); |
|
|
|
} |
|
|
|
// 吹哨处理
|
|
|
|
}else if (ItemHandleCategoryEnum.HANDLE_CIRCULATION_ASSISTANCE.getValue() == dto.getHandleCategory()) { |
|
|
|
@ -633,8 +637,10 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
// 遍历被吹哨部门插入项目消息表
|
|
|
|
for (ItemCirculationDeptResultDTO itemDto : deptList) { |
|
|
|
// 通知部门Id(被吹哨部门)
|
|
|
|
itemInfoDto.setDeptId(itemDto.getDeptId().toString()); |
|
|
|
itemInformationService.insert(itemInfoDto); |
|
|
|
ItemInformationEntity itemInfoEachDto = new ItemInformationEntity(); |
|
|
|
BeanUtils.copyProperties(itemInfoDto,itemInfoEachDto); |
|
|
|
itemInfoEachDto.setDeptId(itemDto.getDeptId().toString()); |
|
|
|
itemInformationService.insert(itemInfoEachDto); |
|
|
|
} |
|
|
|
// 关闭和结案处理
|
|
|
|
} else { |
|
|
|
@ -643,8 +649,10 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
// 遍历被吹哨部门插入项目消息表
|
|
|
|
for (Long itemDeptId : oldDeptIds) { |
|
|
|
// 通知部门Id(被吹哨部门)
|
|
|
|
itemInfoDto.setDeptId(itemDeptId.toString()); |
|
|
|
itemInformationService.insert(itemInfoDto); |
|
|
|
ItemInformationEntity itemInfoEachDto = new ItemInformationEntity(); |
|
|
|
BeanUtils.copyProperties(itemInfoDto,itemInfoEachDto); |
|
|
|
itemInfoEachDto.setDeptId(itemDeptId.toString()); |
|
|
|
itemInformationService.insert(itemInfoEachDto); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|