{"id":260,"date":"2026-10-07T14:56:13","date_gmt":"2026-10-07T14:56:13","guid":{"rendered":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/?p=260"},"modified":"2026-10-07T14:56:13","modified_gmt":"2026-10-07T14:56:13","slug":"19%ec%a3%bc%ec%b0%a8-%ec%a3%bc%ea%b0%84%eb%b3%b4%ea%b3%a0%ec%84%9c","status":"publish","type":"post","link":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/2026\/10\/07\/19%ec%a3%bc%ec%b0%a8-%ec%a3%bc%ea%b0%84%eb%b3%b4%ea%b3%a0%ec%84%9c\/","title":{"rendered":"19\uc8fc\ucc28 \uc8fc\uac04\ubcf4\uace0\uc11c"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-white-color has-text-color has-link-color has-large-font-size wp-elements-1\">1. \uae08\uc8fc \uc9c4\ud589\uc0ac\ud56d<\/h2>\n\n\n\n<p class=\"has-white-color has-text-color has-link-color wp-elements-2 wp-block-paragraph\"><strong>\uae30\uc874 AI \ubc1c\uc8fc \ucd94\ucc9c \uc2dc\uc2a4\ud15c\uc758 \ud55c\uacc4 \uadf9\ubcf5\uc744 \uc704\ud55c \ub85c\uae45(History) DB \uc544\ud0a4\ud14d\ucc98 \uace0\ub3c4\ud654<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-white-color has-text-color has-link-color wp-elements-3\"><strong>\uae30\ub2a5 \uc815\uc758:<\/strong> \uae30\uc874\uc5d0\ub294 <code>inventory<\/code>(\uc7ac\uace0) \ud14c\uc774\ube14\uc758 \uc0c1\ud0dc(<code>status<\/code>) \uceec\ub7fc\uc5d0\ub9cc \uc758\uc874\ud558\uc5ec \uc77c\uc77c \ud310\ub9e4 \ubc0f \ud3d0\uae30 \ud1b5\uacc4\ub97c \uc0b0\ucd9c\ud568. \uadf8\ub7ec\ub098 \uc7a5\uae30 \uc6b4\uc601 \uc2dc DB \uc6a9\ub7c9 \uad00\ub9ac\ub97c \uc704\ud574 \uc7ac\uace0 \ud14c\uc774\ube14\uc744 \uc815\ub9ac(Delete)\ud560 \uacbd\uc6b0, \uacfc\uac70\uc758 \ud3d0\uae30 \ud1b5\uacc4 \ubc0f AI \ubc1c\uc8fc \ucd94\ucc9c \ub370\uc774\ud130\uae4c\uc9c0 \uc601\uad6c \uc18c\uc2e4\ub418\ub294 \uce58\uba85\uc801\uc778 \uc544\ud0a4\ud14d\ucc98 \uacb0\ud568\uc774 \uc874\uc7ac\ud588\uc74c.<\/li>\n\n\n\n<li class=\"has-white-color has-text-color has-link-color wp-elements-4\"><strong>\ud575\uc2ec \uae30\uc220 \uc801\uc6a9 (\uc5d4\ud130\ud504\ub77c\uc774\uc988\uae09 DB \ubd84\ub9ac):<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\ub3c5\ub9bd\ub41c \ub85c\uae45 \uc2a4\ud0a4\ub9c8 \uc124\uacc4:<\/strong> \uae30\uc874 \uc7ac\uace0 \ud14c\uc774\ube14\uacfc \uc644\uc804\ud788 \ubd84\ub9ac\ub41c <code>disposal_logs<\/code> \uc2e0\uaddc \ud14c\uc774\ube14(id, inventory_id, item_name, barcode, disposed_at)\uc744 \uc124\uacc4 \ubc0f \uc0dd\uc131. (\ub370\uc774\ud130 \uc601\uad6c \ubcf4\uc874\uc6a9)<\/li>\n\n\n\n<li><strong>\ubc31\uc5d4\ub4dc \ud2b8\ub79c\uc7ad\uc158 \ucd5c\uc801\ud654:<\/strong> \ud504\ub860\ud2b8\uc5d4\ub4dc\uc5d0\uc11c <code>\/api\/dispose<\/code> \ubc0f <code>\/api\/dispose-all<\/code> \ud638\ucd9c \uc2dc, \uae30\uc874 \uc7ac\uace0 \ud14c\uc774\ube14\uc758 \uc0c1\ud0dc \uc5c5\ub370\uc774\ud2b8\ubfd0\ub9cc \uc544\ub2c8\ub77c, \ube44\ub3d9\uae30\uc801\uc73c\ub85c \uc2e0\uaddc \ub85c\uadf8 \ud14c\uc774\ube14\uc5d0 \ub370\uc774\ud130\ub97c INSERT \ud558\ub3c4\ub85d API \ub77c\uc6b0\ud130 \ub85c\uc9c1 \uc804\uba74 \uac1c\ud3b8.<\/li>\n\n\n\n<li><strong>SQL \ub2e4\uc911 \ubcf5\uc0ac \ucffc\ub9ac:<\/strong> \uc77c\uad04 \ud3d0\uae30 \uc2dc \uc218\uc2ed \uac1c\uc758 \ub85c\uadf8\ub97c \ubc18\ubcf5\ubb38\uc73c\ub85c \ub123\uc9c0 \uc54a\uace0, <code>INSERT INTO ... SELECT ... WHERE id IN (?)<\/code> SQL \ubb38\uc744 \ud65c\uc6a9\ud574 \ud2b8\ub79c\uc7ad\uc158 \uc624\ubc84\ud5e4\ub4dc\ub97c \uadf9\ub2e8\uc801\uc73c\ub85c \uc904\uc774\uba70 1\ud68c\uc758 \ucffc\ub9ac\ub85c \ub300\ub7c9\uc758 \ub85c\uadf8\ub97c \uae30\ub85d\ud568.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-white-color has-text-color has-link-color has-large-font-size wp-elements-5\">2.<strong>\uc2e4\ubb34 \uc2dc\ub098\ub9ac\uc624 \ud14c\uc2a4\ud2b8 \uacb0\uacfc<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-white-color has-text-color has-link-color wp-elements-6\"><strong>\uc2dc\ub098\ub9ac\uc624 \uad6c\uc131:<\/strong> 3\uc8fc\ucc28\uc5d0 \uac1c\ubc1c\ub41c &#8216;\uc6d0\ud074\ub9ad \uc77c\uad04 \ud3d0\uae30&#8217; \uc2dc\uc2a4\ud15c\uc744 \ud1b5\ud574 12\uac1c\uc758 \uc784\ubc15 \uc0c1\ud488\uc744 \ucc98\ub9ac\ud55c \uc9c1\ud6c4, \uba54\uc778 \uc7ac\uace0 \ud14c\uc774\ube14\uc758 \ubcc0\ub3d9\uacfc \ub3c5\ub9bd\ub41c \ub85c\uadf8 \ud14c\uc774\ube14\uc758 \ub370\uc774\ud130 \uc801\uc7ac\uac00 \ub3d9\uc2dc\uc5d0 \ubb34\uacb0\ud558\uac8c \uc774\ub8e8\uc5b4\uc9c0\ub294\uc9c0 \uac80\uc99d.<\/li>\n\n\n\n<li class=\"has-white-color has-text-color has-link-color wp-elements-7\"><strong>\uc2dc\uc2a4\ud15c \ud53c\ub4dc\ubc31 \ubc0f \uac80\uc99d:<\/strong>\n<ul class=\"wp-block-list\">\n<li class=\"has-white-color has-text-color has-link-color wp-elements-8\">\uc77c\uad04 \ud3d0\uae30 \uc644\ub8cc \uc9c1\ud6c4, MySQL DB\uc758 <code>disposal_logs<\/code> \ud14c\uc774\ube14\uc744 \uc870\ud68c\ud55c \uacb0\uacfc, \ubc84\ud2bc\uc744 \ub204\ub978 \uc815\ud655\ud55c \uc11c\ubc84 \ud0c0\uc784\uc2a4\ud0ec\ud504(<code>CURRENT_TIMESTAMP<\/code>)\uc640 \ud568\uaed8 12\uac1c\uc758 \uc0c1\ud488 \ubc14\ucf54\ub4dc \ubc0f \uc774\ub984\uc774 0.1\ucd08\uc758 \uc624\ucc28 \uc5c6\uc774 \uae30\ub85d\ub428.<\/li>\n\n\n\n<li>\uc774\ub85c\uc368 \ud5a5\ud6c4 <code>inventory<\/code> \ud14c\uc774\ube14 \ub370\uc774\ud130\ub97c \ube44\uc6b0\ub354\ub77c\ub3c4(\uc8fc\uae30\uc801 DB \uc815\ub9ac), \uc810\uc8fc\ub97c \uc704\ud55c **&#8217;\uc694\uc77c\ubcc4\/\uc2dc\uac04\ub300\ubcc4 \ud3d0\uae30\uc728 \ud1b5\uacc4 \ubc0f \ubc1c\uc8fc \ucd94\ucc9c \uae30\ub2a5&#8217;**\uc740 \ub3c5\ub9bd\ub41c \ub85c\uadf8 \ud14c\uc774\ube14\uc744 \ud1b5\ud574 \uc601\uad6c\uc801\uc73c\ub85c \uc791\ub3d9\ud560 \uc218 \uc788\uc74c\uc744 \uc544\ud0a4\ud14d\ucc98 \uc218\uc900\uc5d0\uc11c \uc99d\uba85\ud568.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"363\" src=\"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-content\/uploads\/sites\/95\/2026\/10\/image.png\" alt=\"\" class=\"wp-image-261\" style=\"aspect-ratio:2.052478134110787;width:523px;height:auto\" srcset=\"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-content\/uploads\/sites\/95\/2026\/10\/image.png 745w, https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-content\/uploads\/sites\/95\/2026\/10\/image-300x146.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-white-color has-text-color has-link-color has-large-font-size wp-elements-9\">3. \ud5a5\ud6c4 \uacc4\ud68d<\/h2>\n\n\n\n<p class=\"has-white-color has-text-color has-link-color wp-elements-10 wp-block-paragraph\"><strong>\ube44\uc815\uc0c1 \ubc14\ucf54\ub4dc \ucc28\ub2e8 \ubc0f \ud504\ub860\ud2b8\/\ubc31\uc5d4\ub4dc \uc608\uc678 \ucc98\ub9ac(Exception Handling) (20\uc8fc\ucc28 \uc608\uc815)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-white-color has-text-color has-link-color wp-elements-11\"><strong>\uae30\ub2a5 \uc815\uc758:<\/strong> \ud3b8\uc758\uc810 \uc2e4\ubb34\uc5d0\uc11c \ubc1c\uc0dd\ud560 \uc218 \uc788\ub294 \uac16\uac00\uc9c0 \uc608\uc678 \uc0c1\ud669(\uc798\ubabb\ub41c \ubc14\ucf54\ub4dc \uc2a4\uce94, \uc774\ubbf8 \ud3d0\uae30\ub41c \uc0c1\ud488 \uc911\ubcf5 \uc2a4\uce94 \ub4f1)\uc5d0 \ub300\ube44\ud558\uc5ec \uc2dc\uc2a4\ud15c\uc774 \ub2e4\uc6b4\ub418\uc9c0 \uc54a\ub3c4\ub85d \uacac\uace0\ud55c \ubc29\uc5b4 \ub85c\uc9c1(\uc608\uc678 \ucc98\ub9ac)\uc744 \uad6c\ucd95\ud558\uace0 \uc804\ubc18\uc801\uc778 \ucf54\ub4dc \ub9ac\ud329\ud1a0\ub9c1\uc744 \uc9c4\ud589\ud560 \uc608\uc815.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. \uae08\uc8fc \uc9c4\ud589\uc0ac\ud56d \uae30\uc874 AI \ubc1c\uc8fc \ucd94\ucc9c \uc2dc\uc2a4\ud15c\uc758 \ud55c\uacc4 \uadf9\ubcf5\uc744 \uc704\ud55c \ub85c\uae45(History) DB \uc544\ud0a4\ud14d\ucc98 \uace0\ub3c4\ud654 2.\uc2e4\ubb34 \uc2dc\ub098\ub9ac\uc624 \ud14c\uc2a4\ud2b8 \uacb0\uacfc 3. \ud5a5\ud6c4 \uacc4\ud68d \ube44\uc815\uc0c1 \ubc14\ucf54\ub4dc \ucc28\ub2e8 \ubc0f \ud504\ub860\ud2b8\/\ubc31\uc5d4\ub4dc \uc608\uc678 \ucc98\ub9ac(Exception Handling) (20\uc8fc\ucc28 \uc608\uc815)<\/p>\n","protected":false},"author":67,"featured_media":261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-260","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3"],"jetpack_featured_media_url":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-content\/uploads\/sites\/95\/2026\/10\/image.png","_links":{"self":[{"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/posts\/260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/comments?post=260"}],"version-history":[{"count":1,"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/posts\/260\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/posts\/260\/revisions\/262"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/media\/261"}],"wp:attachment":[{"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infognu.ansan.ac.kr\/PortFolio\/202151002\/wp-json\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}