-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into test-container-use-nbs-db
- Loading branch information
Showing
15 changed files
with
217 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
.../src/main/java/gov/cdc/dataingestion/odse/repository/IEdxActivityParentLogRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package gov.cdc.dataingestion.odse.repository; | ||
|
||
import gov.cdc.dataingestion.odse.repository.model.EdxActivityDetailLog; | ||
import gov.cdc.dataingestion.odse.repository.model.EdxActivityLog; | ||
import gov.cdc.dataingestion.odse.repository.model.EdxActivityLogModelView; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
@Repository | ||
public interface IEdxActivityParentLogRepository extends JpaRepository<EdxActivityLog, Long> { | ||
@Query(value = """ | ||
select top 1 * from EDX_activity_log | ||
where source_uid = :nbsSourceId | ||
""", | ||
nativeQuery = true) | ||
EdxActivityLog getParentEdxActivity(@Param("nbsSourceId") Long sourceId); | ||
} |
65 changes: 65 additions & 0 deletions
65
...ion-service/src/main/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityLog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package gov.cdc.dataingestion.odse.repository.model; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.Data; | ||
|
||
@Entity | ||
@Table(name = "EDX_activity_log") | ||
@Data | ||
public class EdxActivityLog { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "edx_activity_log_uid") | ||
private Long edxActivityLogUid; | ||
|
||
@Column(name = "source_uid") | ||
private Long sourceUid; | ||
|
||
@Column(name = "target_uid") | ||
private Long targetUid; | ||
|
||
@Column(name = "doc_type") | ||
private String docType; | ||
|
||
@Column(name = "record_status_cd") | ||
private String recordStatusCd; | ||
|
||
@Column(name = "record_status_time") | ||
private java.util.Date recordStatusTime; | ||
|
||
@Column(name = "exception_txt") | ||
private String exceptionTxt; | ||
|
||
@Column(name = "imp_exp_ind_cd", columnDefinition = "CHAR(1)") | ||
private String impExpIndCd; | ||
|
||
@Column(name = "source_type_cd") | ||
private String sourceTypeCd; | ||
|
||
@Column(name = "target_type_cd") | ||
private String targetTypeCd; | ||
|
||
@Column(name = "business_obj_localId") | ||
private String businessObjLocalId; | ||
|
||
@Column(name = "doc_nm") | ||
private String docNm; | ||
|
||
@Column(name = "source_nm") | ||
private String sourceNm; | ||
|
||
@Column(name = "algorithm_action") | ||
private String algorithmAction; | ||
|
||
@Column(name = "algorithm_name") | ||
private String algorithmName; | ||
|
||
@Column(name = "Message_id") | ||
private String messageId; | ||
|
||
@Column(name = "Entity_nm") | ||
private String entityNm; | ||
|
||
@Column(name = "Accession_nbr") | ||
private String accessionNbr; | ||
} |
16 changes: 16 additions & 0 deletions
16
...ngestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/EdxLogStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package gov.cdc.dataingestion.reportstatus.model; | ||
|
||
import gov.cdc.dataingestion.odse.repository.model.EdxActivityDetailLog; | ||
import gov.cdc.dataingestion.odse.repository.model.EdxActivityLog; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
public class EdxLogStatus { | ||
private EdxActivityLog edxActivityLog; | ||
private List<EdxActivityDetailLog> edxActivityDetailLogList = new ArrayList<>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.