[BO] 수정 반영

This commit is contained in:
kangsunlee
2025-07-14 15:01:33 +09:00
parent 4495882e79
commit 52b962fcf4
4 changed files with 10 additions and 8 deletions

View File

@@ -28,7 +28,7 @@
<foreach collection="householdSeqs" item="householdSeq" separator=",">
(
nextval('researcher_has_household_seq'),
#{researcherSeq},
#{adminSeq},
#{householdSeq},
<include refid="common.fields.CreateUpdateBaseValues"/>
)

View File

@@ -44,6 +44,7 @@
JOIN researcher_has_household rhh ON v.household_seq = rhh.household_seq
WHERE TO_CHAR(v.visit_date, 'YYYYMM') = #{cmd.recordMonth}
AND rhh.is_deleted = false
AND v.is_deleted = false
) sub
WHERE rn &lt;= 2
GROUP BY household_seq

View File

@@ -218,22 +218,21 @@
document.querySelectorAll('input[name="forestRemoveIds"]:checked')
).map(el => Number(el.value));
const totalRows = document.querySelectorAll('input[name="forestRemoveIds"]').length;
if(checkedIds.length <= 0) {
alert("임산물을 선택해주세요.");
return
}
if (checkedIds.length === totalRows) {
alert("등록내용은 최소 1건이 남아있어야 합니다.");
return;
}
etUI.dialog.confirm({
title: '삭제 안내',
message: '선택하신 내용을 삭제하시겠습니까?<br>삭제한 항목은 복구할 수 없습니다.',
positiveCallback: function () {
const totalRows = document.querySelectorAll('.row-class').length;
if (totalRows - checkedIds.length <= 0) {
alert("등록내용은 최소 1건이 남아 있어야 합니다.");
return;
}
removeForestProduct(checkedIds);
},
});