라벨링작업 관리 > 목록 조회 수정
This commit is contained in:
@@ -23,6 +23,8 @@ import com.querydsl.jpa.impl.JPAQueryFactory;
|
|||||||
import jakarta.persistence.EntityManager;
|
import jakarta.persistence.EntityManager;
|
||||||
import jakarta.persistence.PersistenceContext;
|
import jakarta.persistence.PersistenceContext;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
|
import java.time.ZoneId;
|
||||||
|
import java.time.ZonedDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
@@ -111,10 +113,23 @@ public class LabelWorkRepositoryImpl extends QuerydslRepositorySupport
|
|||||||
&& !searchReq.getStrtDttm().isEmpty()
|
&& !searchReq.getStrtDttm().isEmpty()
|
||||||
&& searchReq.getEndDttm() != null
|
&& searchReq.getEndDttm() != null
|
||||||
&& !searchReq.getEndDttm().isEmpty()) {
|
&& !searchReq.getEndDttm().isEmpty()) {
|
||||||
|
|
||||||
|
ZoneId zoneId = ZoneId.of("Asia/Seoul");
|
||||||
|
|
||||||
|
ZonedDateTime start =
|
||||||
|
LocalDate.parse(searchReq.getStrtDttm(), DateTimeFormatter.BASIC_ISO_DATE)
|
||||||
|
.atStartOfDay(zoneId);
|
||||||
|
|
||||||
|
ZonedDateTime end =
|
||||||
|
LocalDate.parse(searchReq.getEndDttm(), DateTimeFormatter.BASIC_ISO_DATE)
|
||||||
|
.plusDays(1)
|
||||||
|
.atStartOfDay(zoneId);
|
||||||
|
|
||||||
whereSubBuilder.and(
|
whereSubBuilder.and(
|
||||||
Expressions.stringTemplate(
|
mapSheetAnalDataInferenceGeomEntity
|
||||||
"to_char({0}, 'YYYYMMDD')", mapSheetAnalDataInferenceGeomEntity.labelStateDttm)
|
.labelStateDttm
|
||||||
.between(searchReq.getStrtDttm(), searchReq.getEndDttm()));
|
.goe(start)
|
||||||
|
.and(mapSheetAnalDataInferenceGeomEntity.labelStateDttm.lt(end)));
|
||||||
}
|
}
|
||||||
|
|
||||||
List<LabelWorkMng> foundContent =
|
List<LabelWorkMng> foundContent =
|
||||||
|
|||||||
Reference in New Issue
Block a user