Fixed issue with Create Center
This commit is contained in:
+9
-7
@@ -209,14 +209,16 @@ public class GroupingTypesWritePlatformServiceJpaRepositoryImpl implements Group
|
|||||||
this.groupRepository.saveAndFlush(newGroup);
|
this.groupRepository.saveAndFlush(newGroup);
|
||||||
newGroup.captureStaffHistoryDuringCenterCreation(staff, activationDate);
|
newGroup.captureStaffHistoryDuringCenterCreation(staff, activationDate);
|
||||||
|
|
||||||
if(command.parameterExists(GroupingTypesApiConstants.datatables)){
|
if (newGroup.isGroup()) {
|
||||||
this.entityDatatableChecksWritePlatformService.saveDatatables(StatusEnum.CREATE.getCode().longValue(),
|
if (command.parameterExists(GroupingTypesApiConstants.datatables)) {
|
||||||
EntityTables.GROUP.getName(), newGroup.getId(), null,
|
this.entityDatatableChecksWritePlatformService.saveDatatables(StatusEnum.CREATE.getCode().longValue(),
|
||||||
command.arrayOfParameterNamed(GroupingTypesApiConstants.datatables));
|
EntityTables.GROUP.getName(), newGroup.getId(), null,
|
||||||
}
|
command.arrayOfParameterNamed(GroupingTypesApiConstants.datatables));
|
||||||
|
}
|
||||||
|
|
||||||
this.entityDatatableChecksWritePlatformService.runTheCheck(newGroup.getId(), EntityTables.GROUP.getName(),
|
this.entityDatatableChecksWritePlatformService.runTheCheck(newGroup.getId(), EntityTables.GROUP.getName(),
|
||||||
StatusEnum.CREATE.getCode().longValue(), EntityTables.GROUP.getForeignKeyColumnNameOnDatatable());
|
StatusEnum.CREATE.getCode().longValue(), EntityTables.GROUP.getForeignKeyColumnNameOnDatatable());
|
||||||
|
}
|
||||||
|
|
||||||
return new CommandProcessingResultBuilder() //
|
return new CommandProcessingResultBuilder() //
|
||||||
.withCommandId(command.commandId()) //
|
.withCommandId(command.commandId()) //
|
||||||
|
|||||||
Reference in New Issue
Block a user