261027_03_ENH: 파생 변수 데이터 개별 생성시 Status=10 조건을 뺌

This commit is contained in:
2026-10-27 14:43:48 +09:00
parent 4d4406ed2b
commit 0e78680571
3 changed files with 3 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ public class DerivedManagementService {
project,
() -> {
requireProject(project);
// Legacy creates an empty DERIVED_DATA row even if there is no eligible completed
// Legacy creates an empty DERIVED_DATA row even if there is no eligible
// response.
derivedRepository.ensureRespondent(project, idkey);
var definitions = derivedRepository.definitions(project);

View File

@@ -102,7 +102,7 @@
<![CDATA[
SELECT A.IDKEY, A.DATJSON, B.DATJSON AS derived_json FROM DATA A WITH(NOLOCK)
LEFT JOIN (SELECT DISTINCT IDKEY, PKEY, DATJSON FROM DERIVED_DATA) B ON A.PKEY = B.PKEY AND A.IDKEY = B.IDKEY
WHERE A.PKEY = #{pkey} AND A.IDKEY = #{idkey} AND A.Status = 10 AND A.SURVEY_TYPE <> 'TEST'
WHERE A.PKEY = #{pkey} AND A.IDKEY = #{idkey} AND A.SURVEY_TYPE <> 'TEST'
]]>
</select>
</mapper>