260521_01_ENH: 일부 지역만 열고 숙박여부 추가

This commit is contained in:
2026-05-21 10:58:06 +09:00
parent 1f0aa8a5af
commit ed52d4cdfd
7 changed files with 72 additions and 31 deletions

View File

@@ -25,6 +25,7 @@ Dim r_area : r_area = request("r_area")
Dim r_district : r_district = request("r_district")
Dim r_car : r_car = request("r_car")
Dim r_ex : r_ex = request("r_ex")
Dim r_stay : r_stay = request("r_stay")
Dim r_covid : r_covid = request("r_covid")
Dim r_agree1 : r_agree1 = request("r_agree1")
@@ -72,6 +73,9 @@ Select case gubun
if r_ex <> "" Then
SQL = SQL&" r_ex = '"&r_ex&"',"&VbCrlf
End If
if r_stay <> "" Then
SQL = SQL&" r_stay = '"&r_stay&"',"&VbCrlf
End If
SQL = SQL&" r_bank = '"&r_bank&"',"&VbCrlf
SQL = SQL&" r_account = dbo.base64_encode('"&r_account&"'),"&VbCrlf
SQL = SQL&" r_jumin = dbo.base64_encode('"&r_jumin&"'),"&VbCrlf

View File

@@ -77,7 +77,7 @@ case "edu"
SQL = ""
SQL = SQL & " SELECT RE.eduCd, EduArea, EduDate, EduSpace, EduEtc1, Qu, ISNULL(RC.comp_cnt, 0) AS comp_cnt, "
SQL = SQL & " CASE WHEN Qu - ISNULL(RC.comp_cnt, 0) < 0 THEN 0 ELSE Qu - ISNULL(RC.comp_cnt , 0) END AS req_cnt "
SQL = SQL & " FROM exitpoll.dbo.R_Edu RE "ㅠ
SQL = SQL & " FROM exitpoll.dbo.R_Edu RE "
SQL = SQL & " LEFT JOIN ( "
SQL = SQL & " SELECT r_edu, count(*) AS comp_cnt "
SQL = SQL & " FROM exitpoll.dbo.R_Info "