-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
268 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd"> | ||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | ||
|
||
<!-- Appenders --> | ||
<appender name="console" class="org.apache.log4j.ConsoleAppender"> | ||
<param name="Target" value="System.out" /> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%-5p: %c - %m%n" /> | ||
</layout> | ||
</appender> | ||
|
||
<!-- Application Loggers --> | ||
<logger name="com.stockm8.controller"> | ||
<level value="info" /> | ||
</logger> | ||
|
||
<logger name="com.stockm8.service"> | ||
<level value="info" /> | ||
</logger> | ||
|
||
<logger name="com.stockm8.persistence"> | ||
<level value="info" /> | ||
</logger> | ||
|
||
<!-- 3rdparty Loggers --> | ||
<logger name="org.springframework.core"> | ||
<level value="info" /> | ||
</logger> | ||
|
||
<logger name="org.springframework.beans"> | ||
<level value="info" /> | ||
</logger> | ||
|
||
<logger name="org.springframework.context"> | ||
<level value="info" /> | ||
</logger> | ||
|
||
<logger name="org.springframework.web"> | ||
<level value="info" /> | ||
</logger> | ||
|
||
|
||
|
||
<!-- Root Logger --> | ||
<root> | ||
<priority value="warn" /> | ||
<appender-ref ref="console" /> | ||
</root> | ||
|
||
</log4j:configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<include resource="org/springframework/boot/logging/logback/base.xml"/> | ||
|
||
<!-- log4jdbc-log4j2 --> | ||
<logger name="jdbc.sqlonly" level="DEBUG"/> | ||
<logger name="jdbc.sqltiming" level="INFO"/> | ||
<logger name="jdbc.audit" level="WARN"/> | ||
<logger name="jdbc.resultset" level="ERROR"/> | ||
<logger name="jdbc.resultsettable" level="ERROR"/> | ||
<logger name="jdbc.connection" level="INFO"/> | ||
</configuration> | ||
|
38 changes: 38 additions & 0 deletions
38
stockMate/bin/src/main/resources/mappers/productMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE mapper | ||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
|
||
<mapper namespace="com.stockm8.mapper.ProductMapper"> | ||
|
||
<!-- ResultMap 정의 --> | ||
<resultMap id="ProductResultMap" type="com.stockm8.domain.ProductVO"> | ||
<id property="productId" column="product_id"/> | ||
<result property="name" column="name"/> | ||
<result property="barcode" column="barcode"/> | ||
<result property="categoryId" column="category_id"/> | ||
<result property="baseUnit" column="base_unit"/> | ||
<result property="setSize" column="set_size"/> | ||
<result property="price" column="price"/> | ||
<result property="createdAt" column="created_at"/> | ||
<result property="updatedAt" column="updated_at"/> | ||
<result property="businessId" column="business_id"/> | ||
<result property="qrCodePath" column="qr_code_path"/> | ||
<result property="barcodePath" column="barcode_path"/> | ||
<result property="description" column="description"/> | ||
</resultMap> | ||
|
||
<!-- 상품 등록 --> | ||
<insert id="insertProduct" parameterType="com.stockm8.domain.ProductVO"> | ||
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}) | ||
</insert> | ||
|
||
<!-- 상품 조회 --> | ||
<select id="getProductById" parameterType="int" resultMap="ProductResultMap"> | ||
SELECT * FROM products WHERE product_id = #{productId} | ||
</select> | ||
|
||
</mapper> |
25 changes: 25 additions & 0 deletions
25
stockMate/bin/src/main/resources/mappers/receivingMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE mapper | ||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="com.stockm8.mappers.receivingMapper"> | ||
|
||
<!-- 오늘 입고될 리스트 --> | ||
<select id="getTodayReceivingList" resultType="com.stockm8.domain.ReceivingShipmentVO"> | ||
select * | ||
from tbl_receiving | ||
where Date(receivingDate) = curdate() | ||
order by receivingDate | ||
limit 0, 10 | ||
</select> | ||
|
||
<!-- 어제 입고된 리스트 --> | ||
<select id="getYesterdayReceivingList" resultType="com.stockm8.domain.ReceivingShipmentVO"> | ||
select * | ||
from tbl_receiving | ||
where Date(receivingDate) = curdate() - INTERVAL 1 DAY | ||
order by receivingDate | ||
limit 0, 10 | ||
</select> | ||
|
||
</mapper> |
11 changes: 11 additions & 0 deletions
11
stockMate/bin/src/main/resources/mappers/shipmentMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE mapper | ||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="com.stockm8.mappers.shipmentMapper"> | ||
|
||
<select id="getTodayShipmentList" resultType="com.stockm8.domain.ReceivingShipmentVO"> | ||
|
||
</select> | ||
|
||
</mapper> |
48 changes: 48 additions & 0 deletions
48
stockMate/bin/src/main/resources/mappers/warehouseMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE mapper | ||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||
"https://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
|
||
<mapper namespace="com.stockm8.mapper.WarehouseMapper"> | ||
|
||
<!-- ResultMap 정의 --> | ||
<resultMap id="WarehouseResultMap" type="com.stockm8.domain.WarehouseVO"> | ||
<id property="warehouseId" column="warehouse_id" /> | ||
<result property="warehouseName" column="warehouse_name" /> | ||
<result property="location" column="location" /> | ||
<result property="businessId" column="business_id" /> | ||
<result property="managerId" column="manager_id" /> | ||
<result property="createdAt" column="created_at" /> | ||
</resultMap> | ||
|
||
<!-- 창고 등록 --> | ||
<insert id="insertWarehouse" parameterType="com.stockm8.domain.WarehouseVO"> | ||
INSERT INTO warehouses (warehouse_name, location, business_id, manager_id) | ||
VALUES (#{warehouseName}, #{location}, #{businessId}, #{managerId}) | ||
</insert> | ||
|
||
<!-- 창고 조회 --> | ||
<select id="SelectWarehouseById" parameterType="int" resultMap="WarehouseResultMap"> | ||
SELECT * FROM warehouses WHERE warehouse_id = #{warehouseId} | ||
</select> | ||
|
||
<!-- 전체 창고 목록 조회 --> | ||
<select id="findAllWarehouses" resultMap="WarehouseResultMap"> | ||
SELECT * FROM warehouses | ||
</select> | ||
|
||
<!-- 창고 정보 수정 --> | ||
<update id="updateWarehouse" parameterType="com.stockm8.domain.WarehouseVO"> | ||
UPDATE warehouses | ||
SET warehouse_name = #{warehouseName}, | ||
location = #{location}, | ||
business_id = #{businessId}, | ||
manager_id = #{managerId} | ||
WHERE warehouse_id = #{warehouseId} | ||
</update> | ||
|
||
<!-- 창고 삭제 --> | ||
<delete id="deleteWarehouseById" parameterType="int"> | ||
DELETE FROM warehouses WHERE warehouse_id = #{warehouseId} | ||
</delete> | ||
</mapper> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE configuration | ||
PUBLIC "-//mybatis.org//DTD Config 3.0//EN" | ||
"https://mybatis.org/dtd/mybatis-3-config.dtd"> | ||
|
||
<configuration> | ||
<!-- mybatis 설정 --> | ||
|
||
</configuration> |
Empty file.