Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj authored Oct 31, 2023
1 parent 1f11790 commit 5590b53
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data class AllocationDemandStaffResponse(

data class Requirement(
val mainCategory: String,
val subCategory: String,
val subCategory: String?,
val length: String,
val id: Long
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ data class CvSentence(

data class CvRequirement(
val mainCategory: String,
val subCategory: String,
val subCategory: String?,
val length: String
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CaseViewRequirement(

@ManyToOne
@JoinColumn(name = "rqmnt_type_sub_category_id")
val subCategory: ReferenceData,
val subCategory: ReferenceData?,

val length: Long?,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class AllocationDemandService(

private fun CaseViewRequirement.toRequirement() = Requirement(
mainCategory.description,
subCategory.description,
subCategory?.description,
length?.let { "$length ${mainCategory.units?.description ?: ""}" } ?: "",
id
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class CaseViewService(

private fun CaseViewRequirement.toCvRequirement() = CvRequirement(
mainCategory.description,
subCategory.description,
subCategory?.description,
length?.let { "$length ${mainCategory.units?.description ?: ""}" } ?: ""
)

Expand Down

0 comments on commit 5590b53

Please sign in to comment.