- [MAP] Container 교체 중복 입력 방지.
- [INSTALL WAIT LIST] Oil Pickup 옵션 추가 js 버그 수정.
This commit is contained in:
Hyojin Ahn 2026-04-30 09:01:42 -04:00
parent 25ffdef1a4
commit d1c74c15da
2 changed files with 16 additions and 2 deletions

View File

@ -100,10 +100,24 @@ trait InstallAPI {
NOW() AS iw_created_at NOW() AS iw_created_at
FROM tbl_customer c FROM tbl_customer c
WHERE c.c_uid = '{$c_uid}' WHERE c.c_uid = '{$c_uid}'
AND NOT EXISTS (
SELECT 1
FROM tbl_install_waitlist iw
WHERE iw.iw_customer_uid = c.c_uid
AND iw.iw_status NOT IN ('DELETED','COMPLETED')
)
"; ";
qry($sql); qry($sql);
if (mysqli_affected_rows($GLOBALS['conn']) == 0) {
echo $this->json([
'ok' => 0,
'msg' => '이미 waitlist에 존재합니다.'
]);
return;
}
$iw_uid = mysqli_insert_id($GLOBALS['conn']); // or global db handle $iw_uid = mysqli_insert_id($GLOBALS['conn']); // or global db handle
echo $this->json([ echo $this->json([

View File

@ -2128,8 +2128,8 @@ while ($row = mysqli_fetch_assoc($rmem)) {
unassignDailyInstall(ids); unassignDailyInstall(ids);
}); });
</script> </script>
<script src="/js/install_wait_modal.js?v=20260204"></script> <script src="/js/install_wait_modal.js?v=<?=time()?>"></script>
<script src="/js/customer_image.js?v=20260204"></script> <script src="/js/customer_image.js?v=<?=time()?>"></script>
<!-- add modal --> <!-- add modal -->
<div class="modal fade" id="addInstallWaitModal" tabindex="-1" aria-hidden="true"> <div class="modal fade" id="addInstallWaitModal" tabindex="-1" aria-hidden="true">