261027_03_ENH: 파생 변수 데이터 개별 생성시 Status=10 조건을 뺌
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user