Browse Source

遗漏代码

master
zhangyuan 3 years ago
parent
commit
867a2ae6f3
  1. 5
      epdc-cloud-admin/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java

5
epdc-cloud-admin/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java

@ -287,9 +287,11 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
communityManageHandle(result, dto, entity);
} else if (OrganizationTypeConstant.ORG_TYPE_GRID_PARTY.equals(dto.getTypeKey())) {
SysDeptInfoDTO sysDeptInfoDTO = sysDeptInfoService.getDeptInfoByDeptID(entity.getPid().toString());
if (sysDeptInfoDTO != null && sysDeptInfoDTO.getManageId() != null) {
GridAddFormDTO gridAddFormDTO = new GridAddFormDTO();
gridAddFormDTO.setGridNum(entity.getName());
gridAddFormDTO.setCircleId(entity.getPid().intValue());
gridAddFormDTO.setCircleId(sysDeptInfoDTO.getManageId());
gridAddFormDTO.setCreateTime(entity.getCreateDate().toString());
gridAddFormDTO.setParentId(NumConstant.ZERO);
gridAddFormDTO.setLevel(NumConstant.ONE);
@ -298,6 +300,7 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
Result<GlobalResultDTO> result = communityManageFeignClient.addGrid(gridAddFormDTO);
communityManageHandle(result, dto, entity);
}
}
} else if (type == NumConstant.ONE) {
SysDeptInfoDTO sysDeptInfoDTO = sysDeptInfoService.getDeptInfoByDeptID(dto.getId().toString());
if (sysDeptInfoDTO != null && sysDeptInfoDTO.getManageId() != null) {

Loading…
Cancel
Save