260617_01_ENH: 배정 테스트를 위해 개발 중도 커밋
This commit is contained in:
@@ -8,3 +8,7 @@ spring:
|
||||
|
||||
kon:
|
||||
survey-type: TEST
|
||||
|
||||
kri:
|
||||
file:
|
||||
pdf-converter-command: /usr/bin/soffice
|
||||
|
||||
@@ -26,3 +26,7 @@ logging:
|
||||
|
||||
kon:
|
||||
survey-type: TEST
|
||||
|
||||
kri:
|
||||
file:
|
||||
pdf-converter-command: "C:/Program Files/LibreOffice/program/soffice.exe"
|
||||
|
||||
@@ -8,3 +8,7 @@ spring:
|
||||
|
||||
kon:
|
||||
survey-type: LIST
|
||||
|
||||
kri:
|
||||
file:
|
||||
pdf-converter-command: /usr/bin/soffice
|
||||
|
||||
@@ -54,6 +54,7 @@ kri:
|
||||
- /api/v1/admin-cache/**
|
||||
- /api/v1/assign/confirm/*
|
||||
- /api/v1/performance/list/compact
|
||||
- /api/v1/review/end/**
|
||||
|
||||
swagger:
|
||||
enabled: true
|
||||
@@ -67,6 +68,7 @@ kri:
|
||||
file:
|
||||
visit-base-dir: ./upload-file/visit
|
||||
review-base-dir: ./upload-file/review
|
||||
pdf-converter-command: soffice
|
||||
|
||||
web:
|
||||
enabled: true # 공통 Web 구성 사용 여부 (기본 true)
|
||||
|
||||
@@ -5,22 +5,38 @@
|
||||
|
||||
<mapper namespace="com.kri.gwcf.review.back.persistence.mapper.kon.KonMapper">
|
||||
|
||||
<sql id="BaseDataSelect">
|
||||
SELECT DISTINCT
|
||||
JSON_VALUE(DJ.[VALUE], '$.SC') AS IDKEY,
|
||||
DV.[value] AS performance_id
|
||||
FROM [DATA] DA WITH(NOLOCK)
|
||||
CROSS APPLY OPENJSON([DATJSON]) DJ
|
||||
CROSS APPLY OPENJSON(DJ.[value]) DV
|
||||
WHERE PKEY = '2605013_B'
|
||||
AND [Status] = 10
|
||||
AND JSON_VALUE(DJ.[VALUE], '$.SC') IS NOT NULL
|
||||
AND JSON_VALUE(DJ.[VALUE], '$.SC') != ''
|
||||
AND DV.[KEY] LIKE 'Q1%'
|
||||
AND [SURVEY_TYPE] = #{surveyType}
|
||||
</sql>
|
||||
|
||||
<select id="findPerformanceApplyCount" resultType="PerformanceApplyCountDto">
|
||||
WITH Base AS (
|
||||
<include refid="BaseDataSelect"/>
|
||||
)
|
||||
SELECT performance_id, COUNT(1) AS apply_cnt
|
||||
FROM (
|
||||
SELECT DISTINCT
|
||||
JSON_VALUE(DJ.[VALUE], '$.SC') AS IDKEY,
|
||||
DV.[value] AS performance_id
|
||||
FROM [DATA] DA WITH(NOLOCK)
|
||||
CROSS APPLY OPENJSON([DATJSON]) DJ
|
||||
CROSS APPLY OPENJSON(DJ.[value]) DV
|
||||
WHERE PKEY = '2605013_B'
|
||||
AND [Status] = 10
|
||||
AND JSON_VALUE(DJ.[VALUE], '$.SC') IS NOT NULL
|
||||
AND DV.[KEY] LIKE 'Q1%'
|
||||
AND [SURVEY_TYPE] = #{surveyType}
|
||||
) A
|
||||
FROM Base
|
||||
GROUP BY performance_id
|
||||
</select>
|
||||
|
||||
<select id="findPerformanceApplyUser" resultType="PerformanceApplyUserDto">
|
||||
WITH Base AS (
|
||||
<include refid="BaseDataSelect"/>
|
||||
)
|
||||
SELECT performance_id, IDKEY AS user_id
|
||||
FROM Base
|
||||
WHERE performance_id = #{performanceId}
|
||||
GROUP BY performance_id, IDKEY
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user