|
|
@@ -1,6 +1,7 @@ |
|
|
|
package com.ffii.tsms.modules.data.entity.projections |
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value |
|
|
|
import java.time.LocalDate |
|
|
|
|
|
|
|
/** |
|
|
|
* Projection for {@link com.ffii.tsms.modules.data.entity.Staff} |
|
|
@@ -9,6 +10,12 @@ interface StaffSearchInfo { |
|
|
|
val id: Long? |
|
|
|
val staffId: String? |
|
|
|
val name: String? |
|
|
|
val departDate: LocalDate? |
|
|
|
|
|
|
|
@get:Value("#{target.departDate == null " + |
|
|
|
"|| (target.departDate?.isBefore(T(java.time.LocalDate).now()) == false " + |
|
|
|
"&& target.departDate?.isEqual(T(java.time.LocalDate).now()) == false)}") |
|
|
|
val active: Boolean? |
|
|
|
|
|
|
|
@get:Value("#{target.team?.code}") |
|
|
|
val team: String? |
|
|
@@ -24,5 +31,4 @@ interface StaffSearchInfo { |
|
|
|
|
|
|
|
@get:Value("#{target.user?.id}") |
|
|
|
val userId: Long? |
|
|
|
|
|
|
|
} |