현장확인V2 추가
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2026-01-19 15:34:06 +09:00
parent 8e779124dd
commit 9116b27d80
14 changed files with 1295 additions and 62 deletions

View File

@@ -418,7 +418,7 @@ class DeptModel extends Model
$builder->where('a.rcpt_atclno', $data['rcpt_atclno']);
} else {
$builder->where('a.isSiteVRVerification', 'N');
$builder->where('b.req_rec_yn', 'Y');
// 접수일자
/*
@@ -490,6 +490,20 @@ class DeptModel extends Model
$builder->where('a.direct_trad_yn', 'N');
}
// 검증방식
if (!empty($data['isSiteVRVerification'])) {
$builder->where('a.isSiteVRVerification', $data['isSiteVRVerification']);
}
// 홍보확인서 여부
if (!empty($data['conf_img_yn'])) {
if ($data['conf_img_yn'] == "Y") {
$builder->where('exists (select \'x\' from result_imgs imgs where imgs.rsrv_sq = b.rsrv_sq and imgs.img_type = \'I1\' and imgs.use_yn=\'Y\')', NULL, FALSE);
} else if ($data['conf_img_yn'] == "N") {
$builder->where('not exists (select \'x\' from result_imgs imgs where imgs.rsrv_sq = b.rsrv_sq and imgs.img_type = \'I1\' and imgs.use_yn=\'Y\')', NULL, FALSE);
}
}
// 상태
if (!empty($data['stat'])) {
$builder->whereIn('substring(a.rcpt_stat, 1, 2)', $data['stat']);
@@ -648,7 +662,7 @@ class DeptModel extends Model
$builder->where('a.rcpt_atclno', $data['rcpt_atclno']);
} else {
$builder->where('a.isSiteVRVerification', 'N');
$builder->where('b.req_rec_yn', 'Y');
// 접수일자
/*
@@ -720,6 +734,20 @@ class DeptModel extends Model
$builder->where('a.direct_trad_yn', 'N');
}
// 검증방식
if (!empty($data['isSiteVRVerification'])) {
$builder->where('a.isSiteVRVerification', $data['isSiteVRVerification']);
}
// 홍보확인서 여부
if (!empty($data['conf_img_yn'])) {
if ($data['conf_img_yn'] == "Y") {
$builder->where('exists (select \'x\' from result_imgs imgs where imgs.rsrv_sq = b.rsrv_sq and imgs.img_type = \'I1\' and imgs.use_yn=\'Y\')', NULL, FALSE);
} else if ($data['conf_img_yn'] == "N") {
$builder->where('not exists (select \'x\' from result_imgs imgs where imgs.rsrv_sq = b.rsrv_sq and imgs.img_type = \'I1\' and imgs.use_yn=\'Y\')', NULL, FALSE);
}
}
// 상태
if (!empty($data['stat'])) {
$builder->whereIn('substring(a.rcpt_stat, 1, 2)', $data['stat']);
@@ -930,7 +958,7 @@ class DeptModel extends Model
$builder->where('a.rcpt_atclno', $data['rcpt_atclno']);
} else {
$builder->where('a.isSiteVRVerification', 'N');
$builder->where('b.req_rec_yn', 'Y');
// 접수일자
/*
@@ -1002,6 +1030,20 @@ class DeptModel extends Model
$builder->where('a.direct_trad_yn', 'N');
}
// 검증방식
if (!empty($data['isSiteVRVerification'])) {
$builder->where('a.isSiteVRVerification', $data['isSiteVRVerification']);
}
// 홍보확인서 여부
if (!empty($data['conf_img_yn'])) {
if ($data['conf_img_yn'] == "Y") {
$builder->where('exists (select \'x\' from result_imgs imgs where imgs.rsrv_sq = b.rsrv_sq and imgs.img_type = \'I1\' and imgs.use_yn=\'Y\')', NULL, FALSE);
} else if ($data['conf_img_yn'] == "N") {
$builder->where('not exists (select \'x\' from result_imgs imgs where imgs.rsrv_sq = b.rsrv_sq and imgs.img_type = \'I1\' and imgs.use_yn=\'Y\')', NULL, FALSE);
}
}
// 상태
if (!empty($data['stat'])) {
$builder->whereIn('substring(a.rcpt_stat, 1, 2)', $data['stat']);