추론종료 테이블 Insert 수정
This commit is contained in:
@@ -2,6 +2,7 @@ package com.kamco.cd.kamcoback.postgres.repository.Inference;
|
|||||||
|
|
||||||
import static com.kamco.cd.kamcoback.postgres.entity.QMapSheetLearnEntity.mapSheetLearnEntity;
|
import static com.kamco.cd.kamcoback.postgres.entity.QMapSheetLearnEntity.mapSheetLearnEntity;
|
||||||
|
|
||||||
|
import com.kamco.cd.kamcoback.label.dto.LabelAllocateDto.LabelMngState;
|
||||||
import com.kamco.cd.kamcoback.postgres.entity.MapSheetAnalDataInferenceGeomEntity;
|
import com.kamco.cd.kamcoback.postgres.entity.MapSheetAnalDataInferenceGeomEntity;
|
||||||
import com.kamco.cd.kamcoback.postgres.entity.MapSheetLearnEntity;
|
import com.kamco.cd.kamcoback.postgres.entity.MapSheetLearnEntity;
|
||||||
import com.kamco.cd.kamcoback.postgres.entity.QMapSheetAnalDataInferenceEntity;
|
import com.kamco.cd.kamcoback.postgres.entity.QMapSheetAnalDataInferenceEntity;
|
||||||
@@ -66,7 +67,7 @@ public class InferenceResultRepositoryImpl implements InferenceResultRepositoryC
|
|||||||
r.m2_model_batch_id,
|
r.m2_model_batch_id,
|
||||||
r.m3_model_batch_id,
|
r.m3_model_batch_id,
|
||||||
r.id,
|
r.id,
|
||||||
LabelMngState.PENDING.getId()
|
:pendingStateId
|
||||||
FROM tb_map_sheet_learn r
|
FROM tb_map_sheet_learn r
|
||||||
WHERE r.id = :id
|
WHERE r.id = :id
|
||||||
ON CONFLICT (stage, compare_yyyy, target_yyyy)
|
ON CONFLICT (stage, compare_yyyy, target_yyyy)
|
||||||
@@ -78,7 +79,11 @@ public class InferenceResultRepositoryImpl implements InferenceResultRepositoryC
|
|||||||
RETURNING anal_uid
|
RETURNING anal_uid
|
||||||
""";
|
""";
|
||||||
|
|
||||||
Object result = em.createNativeQuery(sql).setParameter("id", id).getSingleResult();
|
Object result =
|
||||||
|
em.createNativeQuery(sql)
|
||||||
|
.setParameter("id", id)
|
||||||
|
.setParameter("pendingStateId", LabelMngState.PENDING.getId())
|
||||||
|
.getSingleResult();
|
||||||
|
|
||||||
return ((Number) result).longValue();
|
return ((Number) result).longValue();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user