라벨링 작업 관리목록 조회
This commit is contained in:
@@ -76,14 +76,17 @@ public class LabelWorkRepositoryImpl extends QuerydslRepositorySupport
|
||||
|
||||
whereSubBuilder.and(mapSheetAnalDataInferenceGeomEntity.dataUid.eq(mapSheetAnalDataInferenceEntity.id));
|
||||
|
||||
if (searchReq.getStrtDttm() != null && ! searchReq.getStrtDttm().isEmpty()) {
|
||||
|
||||
whereSubBuilder.and(mapSheetAnalDataInferenceGeomEntity.labelStateDttm.isNotNull());
|
||||
if (searchReq.getStrtDttm() != null && ! searchReq.getStrtDttm().isEmpty()
|
||||
&& searchReq.getEndDttm() != null && ! searchReq.getEndDttm().isEmpty()) {
|
||||
|
||||
//whereSubBuilder.and(mapSheetAnalDataInferenceGeomEntity.labelStateDttm.isNotNull());
|
||||
whereSubBuilder.and(
|
||||
Expressions.stringTemplate("to_char({0}, 'YYYY-MM-DD')", mapSheetAnalDataInferenceEntity.labelStateDttm)
|
||||
.gt("2024-01-01")
|
||||
Expressions.stringTemplate("to_char({0}, 'YYYYMMDD')", mapSheetAnalDataInferenceGeomEntity.labelStateDttm)
|
||||
.between(searchReq.getStrtDttm(), searchReq.getEndDttm())
|
||||
);
|
||||
|
||||
//whereBuilder.and(mapSheetAnalDataInferenceGeomEntity.labelStateDttm.min().isNotNull());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +122,7 @@ public class LabelWorkRepositoryImpl extends QuerydslRepositorySupport
|
||||
mapSheetAnalDataInferenceGeomEntity.labelStateDttm.min()
|
||||
))
|
||||
.from(mapSheetAnalDataInferenceEntity)
|
||||
.leftJoin(mapSheetAnalDataInferenceGeomEntity)
|
||||
.innerJoin(mapSheetAnalDataInferenceGeomEntity)
|
||||
.on(whereSubBuilder)
|
||||
.where(whereBuilder)
|
||||
.groupBy(
|
||||
|
||||
Reference in New Issue
Block a user