[KC-103] spot less 적용

This commit is contained in:
2026-01-14 16:01:20 +09:00
parent 09565c1d5a
commit 79bf2df84b
6 changed files with 32 additions and 20 deletions

View File

@@ -92,6 +92,7 @@ public class InferenceResultCoreService {
MapSheetLearnEntity mapSheetLearnEntity = new MapSheetLearnEntity();
mapSheetLearnEntity.setTitle(req.getTitle());
mapSheetLearnEntity.setRunningModelType("M1");
mapSheetLearnEntity.setM1ModelUuid(req.getModel1Uuid());
mapSheetLearnEntity.setM2ModelUuid(req.getModel2Uuid());
mapSheetLearnEntity.setM3ModelUuid(req.getModel3Uuid());
@@ -116,7 +117,7 @@ public class InferenceResultCoreService {
MapSheetLearn5kEntity entity = new MapSheetLearn5kEntity();
entity.setLearn(savedLearn);
entity.setMapSheetNum(Long.parseLong(mngDto.getMapSheetNum()));
entity.setBeforeYear(Integer.valueOf(mngDto.getBeforeYear()));
entity.setBeforeYear(mngDto.getBeforeYear());
entity.setIsSuccess(mngDto.getIsSuccess() != null && mngDto.getIsSuccess());
entity.setCreatedUid(userUtil.getId());

View File

@@ -50,8 +50,8 @@ public class MapSheetLearn5kEntity {
private Long createdUid;
@Column(name = "befroe_year")
private Integer beforeYear;
private Integer beforeYear = 0;
@Column(name = "is_success")
private Boolean isSuccess;
private Boolean isSuccess = false;
}

View File

@@ -528,7 +528,7 @@ public class MapSheetMngRepositoryImpl extends QuerydslRepositorySupport
mapSheetMngHstEntity.mngYyyy,
mapSheetMngHstEntity.mapSheetNum,
mapSheetMngHstEntity.mapSheetName,
nullExpression(String.class),
nullExpression(Integer.class),
nullExpression(Boolean.class)))
.from(mapSheetMngHstEntity)
.where(whereBuilder)