|
|
@ -408,6 +408,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS |
|
|
|
ProjectEntity projectEntity = new ProjectEntity(); |
|
|
|
projectEntity.setCustomerId(formDTO.getCustomerId()); |
|
|
|
projectEntity.setAgencyId(loginUser.getAgencyId()); |
|
|
|
projectEntity.setGridId(formDTO.getGridId()); |
|
|
|
if (ProjectConstant.WORK_EVENT.equals(formDTO.getType())) { |
|
|
|
projectEntity.setOrigin(ProjectConstant.WORK_EVENT); |
|
|
|
projectEntity.setOriginId(formDTO.getGridId()); |
|
|
@ -433,6 +434,8 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS |
|
|
|
processEntity.setOperationName(ProjectConstant.OPERATION_PROJECT_APPROVAL); |
|
|
|
processEntity.setPublicReply(formDTO.getPublicReply()); |
|
|
|
processEntity.setInternalRemark(formDTO.getInternalRemark()); |
|
|
|
processEntity.setAssistanceUnitType(formDTO.getAssistanceUnitType()); |
|
|
|
processEntity.setAssistanceUnitId(formDTO.getAssistanceUnitId()); |
|
|
|
agencyDeptGrid.getAgencyList().forEach(agency -> { |
|
|
|
if (loginUser.getAgencyId().equals(agency.getId())) { |
|
|
|
processEntity.setDepartmentName(agency.getOrganizationName()); |
|
|
@ -701,6 +704,8 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS |
|
|
|
public EventToProjectResultDTO eventToProject(EventToProjectFormDTO formDTO) { |
|
|
|
//事件已经立项,不能重复操作
|
|
|
|
ResiEventEntity resiEventEntity=resiEventService.getById(formDTO.getEventId()); |
|
|
|
//TODO 兼容新事件表
|
|
|
|
String gridId = ""; |
|
|
|
if(null==resiEventEntity||resiEventEntity.getShiftProject()){ |
|
|
|
throw new RenException(EpmetErrorCode.RESI_EVENT_SHIFT_PROJECT.getCode(),EpmetErrorCode.RESI_EVENT_SHIFT_PROJECT.getMsg()); |
|
|
|
} |
|
|
@ -745,6 +750,7 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS |
|
|
|
projectEntity.setOriginId(formDTO.getEventId()); |
|
|
|
projectEntity.setTitle(formDTO.getTitle()); |
|
|
|
projectEntity.setBackGround(formDTO.getPublicReply()); |
|
|
|
projectEntity.setGridId(gridId); |
|
|
|
projectEntity.setStatus(ProjectConstant.PENDING); |
|
|
|
projectEntity.setOrgIdPath(loginUser.getOrgIdPath()); |
|
|
|
projectEntity.setLocateAddress(null == formDTO.getLocateAddress() ? "" : formDTO.getLocateAddress()); |
|
|
@ -761,6 +767,8 @@ public class ProjectTraceServiceImpl<ProjectTagService> implements ProjectTraceS |
|
|
|
processEntity.setOperationName(ProjectConstant.OPERATION_PROJECT_APPROVAL); |
|
|
|
processEntity.setPublicReply(formDTO.getPublicReply()); |
|
|
|
processEntity.setInternalRemark(formDTO.getInternalRemark()); |
|
|
|
processEntity.setAssistanceUnitId(formDTO.getAssistanceUnitId()); |
|
|
|
processEntity.setAssistanceUnitType(formDTO.getAssistanceUnitType()); |
|
|
|
agencyDeptGrid.getAgencyList().forEach(agency -> { |
|
|
|
if (loginUser.getAgencyId().equals(agency.getId())) { |
|
|
|
processEntity.setDepartmentName(agency.getOrganizationName()); |
|
|
|