나는 두 개의 도메인 클래스를 가지고있다.그레이들의 필터 목록
class BillingServiceGroup
{
Integer billingServiceGroupCode
String billingServiceGrpDesc
String status // ACTIVE or INACTIVE
}
class ServiceGroup
{
String serviceGroupName
String description
BillingServiceGroup billingServiceGroup
}
내가 serviceGroup
페이지를 볼 때. 그것은 모두 billingServiceGroup
의 목록을 보여 주지만, 내 요구 사항은 status == ACTIVE
의 행만 목록에 표시 될 수 있다는 것입니다.
그래서 상태 값에 따라 목록을 필터링해야합니다. 아무도이 논리를 구현하는 몇 가지 코드를 제공 할 수 있습니까?
하지? 그것은 당신을 위해 일을 쉽게 만들 것입니다. –
상태가 enum 유형으로 변경되었습니다. 열거 상태 { \t \t 활성 상태 (true), \t \t 비활성 상태 (false) \t \t 개인 부울 부울 \t \t 공공 상태 (부울 부울) { \t \t \t this.bool = 부울 \t \t} \t} –