diff --git a/stockMate/.gitignore b/stockMate/.gitignore index a85191c..bc3e96c 100644 --- a/stockMate/.gitignore +++ b/stockMate/.gitignore @@ -1,7 +1,78 @@ +# =========================== +# Java 프로젝트 기본 무시 규칙 +# =========================== + +# 컴파일된 .class 파일 *.class -bin/ + +# =========================== +# Maven 관련 파일 및 디렉토리 +# =========================== + +# Maven 빌드 결과물 target/ + +# =========================== +# Eclipse 관련 설정 파일 +# (Eclipse를 사용하는 경우 필요, 사용하지 않으면 주석 처리 가능) +# =========================== .classpath .project .settings/ -src/test/ + +# =========================== +# IntelliJ IDEA 관련 파일 +# (IntelliJ를 사용하는 경우 필요, 사용하지 않으면 주석 처리 가능) +# =========================== +.idea/ +*.iml +out/ + +# =========================== +# IDE와 관련 없는 빌드 디렉토리 +# =========================== + +# Eclipse, IntelliJ, VSCode 등에서 생성된 빌드 디렉토리 +bin/ + +# =========================== +# 운영체제별 무시 파일 +# =========================== + +# macOS 관련 +.DS_Store + +# Windows 관련 +Thumbs.db +desktop.ini + +# =========================== +# 테스트 코드 디렉토리 +# =========================== + +# 테스트 디렉토리는 프로젝트의 중요한 부분이므로 무시하지 않습니다. +# src/test/ + +# =========================== +# 로그 파일 +# =========================== + +# 로그 파일 +*.log + +# =========================== +# 환경 설정 파일 +# =========================== + +# 개인 환경 설정 파일 +.env +*.env + +# =========================== +# 기타 +# =========================== + +# 특정 파일이나 디렉토리가 필요 없다면 여기에 추가 +# 예: 임시 작업 파일 +*.tmp +*.bak \ No newline at end of file diff --git a/stockMate/bin/src/main/resources/log4j.xml b/stockMate/bin/src/main/resources/log4j.xml new file mode 100644 index 0000000..141ebc6 --- /dev/null +++ b/stockMate/bin/src/main/resources/log4j.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/stockMate/bin/src/main/resources/logback.xml b/stockMate/bin/src/main/resources/logback.xml new file mode 100644 index 0000000..1f2526b --- /dev/null +++ b/stockMate/bin/src/main/resources/logback.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/stockMate/bin/src/main/resources/mappers/productMapper.xml b/stockMate/bin/src/main/resources/mappers/productMapper.xml new file mode 100644 index 0000000..7e0af2d --- /dev/null +++ b/stockMate/bin/src/main/resources/mappers/productMapper.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + INSERT INTO products (name, barcode, category_id, base_unit, set_size, price, + business_id, qr_code_path, barcode_path, description) + VALUES (#{name}, #{barcode}, #{categoryId}, #{baseUnit}, #{setSize}, #{price}, + #{businessId}, #{qrCodePath}, #{barcodePath}, #{description}) + + + + + + \ No newline at end of file diff --git a/stockMate/bin/src/main/resources/mappers/receivingMapper.xml b/stockMate/bin/src/main/resources/mappers/receivingMapper.xml new file mode 100644 index 0000000..2d02836 --- /dev/null +++ b/stockMate/bin/src/main/resources/mappers/receivingMapper.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/stockMate/bin/src/main/resources/mappers/shipmentMapper.xml b/stockMate/bin/src/main/resources/mappers/shipmentMapper.xml new file mode 100644 index 0000000..0341d78 --- /dev/null +++ b/stockMate/bin/src/main/resources/mappers/shipmentMapper.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/stockMate/bin/src/main/resources/mappers/warehouseMapper.xml b/stockMate/bin/src/main/resources/mappers/warehouseMapper.xml new file mode 100644 index 0000000..5fec9d2 --- /dev/null +++ b/stockMate/bin/src/main/resources/mappers/warehouseMapper.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + INSERT INTO warehouses (warehouse_name, location, business_id, manager_id) + VALUES (#{warehouseName}, #{location}, #{businessId}, #{managerId}) + + + + + + + + + + + UPDATE warehouses + SET warehouse_name = #{warehouseName}, + location = #{location}, + business_id = #{businessId}, + manager_id = #{managerId} + WHERE warehouse_id = #{warehouseId} + + + + + DELETE FROM warehouses WHERE warehouse_id = #{warehouseId} + + \ No newline at end of file diff --git a/stockMate/bin/src/main/resources/mybatis-config.xml b/stockMate/bin/src/main/resources/mybatis-config.xml new file mode 100644 index 0000000..59bc022 --- /dev/null +++ b/stockMate/bin/src/main/resources/mybatis-config.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/stockMate/src/test.txt b/stockMate/src/test.txt deleted file mode 100644 index e69de29..0000000