현장확인 V2 추가

Reviewed-on: http://192.168.10.243:3000/owrainfo/confirms/pulls/30
This commit was merged in pull request #30.
This commit is contained in:
2026-01-19 14:53:29 +09:00
5 changed files with 1034 additions and 9 deletions

View File

@@ -186,14 +186,15 @@ class ReceiptModel extends Model
}
$builder->where('a.rcpt_tm >= DATE_ADD(CURDATE(), INTERVAL -3 MONTH)', null, false);
$builder->where('b.use_yn', 'Y');
if (!empty($data['rcpt_atclno'])) {
$builder->where('a.rcpt_atclno', $data['rcpt_atclno']);
} else {
if ($data['schDateGb'] == '1') {
if ($data['schDateGb'] == '2') {
$builder->where('a.rcpt_tm >=', $data['sdate'] . ' 00:00:00');
$builder->where('a.rcpt_tm <=', $data['edate'] . ' 23:59:59');
} else if ($data['schDateGb'] == '2') {
} else {
$builder->where('b.rsrv_date >=', $data['sdate'] . ' 00:00:00');
$builder->where('b.rsrv_date <=', $data['edate'] . ' 23:59:59');
}
@@ -322,6 +323,16 @@ class ReceiptModel extends Model
$builder->where('a.image_360_yn', 'N');
}
// 검증방식
if (!empty($data['isSiteVRVerification'])) {
$builder->where('a.isSiteVRVerification', $data['isSiteVRVerification']);
}
// 프로모션
if (!empty($data['isPromotionApply'])) {
$builder->where('a.isPromotionApply', $data['isPromotionApply']);
}
if (!empty($data['srchTxt'])) {
// 중개사
if ($data['srchType'] == '1') {
@@ -514,14 +525,15 @@ class ReceiptModel extends Model
}
$builder->where('a.rcpt_tm >= DATE_ADD(CURDATE(), INTERVAL -3 MONTH)', null, false);
$builder->where('b.use_yn', 'Y');
if (!empty($data['rcpt_atclno'])) {
$builder->where('a.rcpt_atclno', $data['rcpt_atclno']);
} else {
if ($data['schDateGb'] == '1') {
if ($data['schDateGb'] == '2') {
$builder->where('a.rcpt_tm >=', $data['sdate'] . ' 00:00:00');
$builder->where('a.rcpt_tm <=', $data['edate'] . ' 23:59:59');
} else if ($data['schDateGb'] == '2') {
} else {
$builder->where('b.rsrv_date >=', $data['sdate'] . ' 00:00:00');
$builder->where('b.rsrv_date <=', $data['edate'] . ' 23:59:59');
}
@@ -650,6 +662,16 @@ class ReceiptModel extends Model
$builder->where('a.image_360_yn', 'N');
}
// 검증방식
if (!empty($data['isSiteVRVerification'])) {
$builder->where('a.isSiteVRVerification', $data['isSiteVRVerification']);
}
// 프로모션
if (!empty($data['isPromotionApply'])) {
$builder->where('a.isPromotionApply', $data['isPromotionApply']);
}
if (!empty($data['srchTxt'])) {
// 중개사
if ($data['srchType'] == '1') {
@@ -790,14 +812,15 @@ class ReceiptModel extends Model
}
$builder->where('a.rcpt_tm >= DATE_ADD(CURDATE(), INTERVAL -3 MONTH)', null, false);
$builder->where('b.use_yn', 'Y');
if (!empty($data['rcpt_atclno'])) {
$builder->where('a.rcpt_atclno', $data['rcpt_atclno']);
} else {
if ($data['schDateGb'] == '1') {
if ($data['schDateGb'] == '2') {
$builder->where('a.rcpt_tm >=', $data['sdate'] . ' 00:00:00');
$builder->where('a.rcpt_tm <=', $data['edate'] . ' 23:59:59');
} else if ($data['schDateGb'] == '2') {
} else {
$builder->where('b.rsrv_date >=', $data['sdate'] . ' 00:00:00');
$builder->where('b.rsrv_date <=', $data['edate'] . ' 23:59:59');
}
@@ -926,6 +949,16 @@ class ReceiptModel extends Model
$builder->where('a.image_360_yn', 'N');
}
// 검증방식
if (!empty($data['isSiteVRVerification'])) {
$builder->where('a.isSiteVRVerification', $data['isSiteVRVerification']);
}
// 프로모션
if (!empty($data['isPromotionApply'])) {
$builder->where('a.isPromotionApply', $data['isPromotionApply']);
}
if (!empty($data['srchTxt'])) {
// 중개사
if ($data['srchType'] == '1') {