현장확인V2 추가
Reviewed-on: http://192.168.10.243:3000/owrainfo/confirms/pulls/31
This commit was merged in pull request #31.
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user