Browse Source

Merge remote-tracking branch 'origin/feature/item_appeal' into feature/item_appeal

feature/dangjian
Jackwang 3 years ago
parent
commit
a909a6e636
  1. 10
      esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/result/ItemDetailForPCEndResultDTO.java
  2. 30
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java
  3. 4
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

10
esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/result/ItemDetailForPCEndResultDTO.java

@ -138,4 +138,14 @@ public class ItemDetailForPCEndResultDTO implements Serializable {
* 上级部门名称
*/
private String parentDeptName;
/**
* 办理人姓名
*/
private String handlePeopleName;
/**
* 办理人办公电话
*/
private String handlePeopleMobile;
}

30
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java

@ -891,7 +891,7 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem
handleProcessEntity.setItemId(dto.getId());
handleProcessEntity.setHandleAdvice(dto.getHandleAdvice());
handleProcessEntity.setOutHandleAdvice(dto.getOutHandleAdvice());
//当前操作人部门tyeKey
// 当前操作人部门tyeKey
String sendTypeKey = "";
log.info("处理项目-进入判断");
// 吹哨
@ -925,11 +925,25 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem
itemHandleProcessService.insert(handleProcessEntity);
// 新增流转协助部门
itemDeptService.saveItemDepts(dto.getHandlerDeptId(), dto, handleProcessEntity.getId());
List<ItemCirculationDeptResultDTO> circulationDeptResultDTOS = dto.getDeptResultDTOS();
// 根据操作人部门,获取上一级部门ID
Result<SysDeptDTO> sysDeptInfo = adminFeignClient.getSysDeptInfo(dto.getHandlerDeptId());
SysDeptDTO sysDeptDTO = sysDeptInfo.getData();
sendTypeKey = sysDeptDTO.getTypeKey();
// 手动拼接流转协助部门
ItemCirculationDeptResultDTO itemCirculationDeptResultDTO = new ItemCirculationDeptResultDTO();
itemCirculationDeptResultDTO.setDeptId(sysDeptDTO.getPid());
itemCirculationDeptResultDTO.setDeptName(sysDeptDTO.getParentName());
itemCirculationDeptResultDTO.setSelected(false);
itemCirculationDeptResultDTO.setTypeKey(sysDeptDTO.getTypeKey());
List<ItemCirculationDeptResultDTO> deptList = new ArrayList<ItemCirculationDeptResultDTO>();
deptList.add(itemCirculationDeptResultDTO);
dto.setDeptResultDTOS(deptList);
List<Long> newDeptIds = new ArrayList<>();
for (ItemCirculationDeptResultDTO circulationDto : circulationDeptResultDTOS) {
newDeptIds.add(circulationDto.getDeptId());
}
newDeptIds.add(sysDeptDTO.getPid());
TreeSet<Long> longTreeSet = new TreeSet<>();
longTreeSet.addAll(oldDeptIds);
longTreeSet.addAll(newDeptIds);
@ -1042,6 +1056,12 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem
itemEntity.setId(dto.getId());
itemEntity.setLastHandleTime(new Date());
// 结案申请时,需要更新【办理人姓名】【办理人办公电话】
if(ItemHandleCategoryEnum.HANDLE_CLOSING_CASE_APPLY.getValue() == dto.getHandleCategory()){
itemEntity.setHandlePeopleName(dto.getHandlePeopleName());
itemEntity.setHandlePeopleMobile(dto.getHandlePeopleMobile());
}
// 初始化分类
if (StringUtils.isNotBlank(dto.getCategoryId())) {
EventsCategoryDTO categoryInfo = this.initCategoryInfo(dto.getCategoryId());

4
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

@ -582,6 +582,8 @@
<result property="distributeTime" column="DISTRIBUTE_TIME"/>
<result property="mobile" column="MOBILE"/>
<result property="gridId" column="GRID_ID"/>
<result property="handlePeopleName" column="HANDLE_PEOPLE_NAME"/>
<result property="handlePeopleMobile" column="HANDLE_PEOPLE_MOBILE"/>
<result property="userFace" column="USER_FACE"/>
<result property="itemContent" column="ITEM_CONTENT"/>
<result property="issueAddress" column="ISSUE_ADDRESS"/>
@ -610,6 +612,8 @@
item.ISSUE_LONGITUDE,
item.USER_FACE,
item.GRID_ID,
item.HANDLE_PEOPLE_NAME,
item.HANDLE_PEOPLE_MOBILE,
eve.APPROVE_NUM,
eve.OPPOSE_NUM,
eve.COMMENT_NUM,

Loading…
Cancel
Save