Skip to content

Commit

Permalink
임시
Browse files Browse the repository at this point in the history
  • Loading branch information
shoqying committed Dec 12, 2024
1 parent 76e0349 commit 5a7004c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
22 changes: 11 additions & 11 deletions stockMate/src/main/resources/mappers/receivingMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<!-- 테이블에 입고 데이터 입력 -->
<insert id="insertReceiving">
INSERT INTO receiving_shipment (
INSERT INTO test_receiving_shipment (
transaction_type,
status,
product_id,
Expand All @@ -49,10 +49,10 @@
s.stock_id,
o.warehouse_id,
u.created_by
FROM products p
JOIN order_items o ON o.product_id = p.product_id
JOIN stocks s ON s.product_id = p.product_id
JOIN users u ON u.business_id = p.business_id;
FROM test_products p
JOIN test_order_items o ON o.product_id = p.product_id
JOIN test_stocks s ON s.product_id = p.product_id
JOIN test_users u ON u.business_id = p.business_id;
</insert>

<!-- 오늘 입고 예정 리스트 -->
Expand Down Expand Up @@ -128,10 +128,10 @@
r.change_quantity,
p.price,
r.memo
from receiving_shipment r
join products p on r.product_id = p.product_id
join warehouses w on w.warehouse_id = r.warehouse_id
where transaction_type = 'INBOUND'
from test_receiving_shipment r
join test_products p on r.product_id = p.product_id
join test_warehouses w on w.warehouse_id = r.warehouse_id
where transaction_type = 'in'
order by r.receiving_shipment_no desc
limit #{startPage},#{pageSize};
</select>
Expand Down Expand Up @@ -191,8 +191,8 @@
<!-- 입출고 모든 개수 카운트 -->
<select id="getTotalCount" resultType="int">
select count(*)
from receiving_shipment
where transaction_type = 'INBOUND'
from test_receiving_shipment
where transaction_type = 'in'
</select>

</mapper>
4 changes: 2 additions & 2 deletions stockMate/src/main/webapp/WEB-INF/views/dashboard.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@
대시보드
</div>
<div class="menu-bar">
<a href="/register">주문</a>
<a href="/order/register">주문</a>
<a href="/receiving/main">입고</a>
<a href="/shipment/main">출고</a>
<a href="/stock/list">재고</a>
<a href="user/admin">관리자 페이지</a>
<a href="/user/admin">관리자 페이지</a>
</div>

<!-- Content Section -->
Expand Down
1 change: 1 addition & 0 deletions stockMate/src/main/webapp/WEB-INF/views/receiving/main.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@

<a href="/receiving/history">입고 내역</a>
<a href="/receiving/scanner">입고 스캔</a>
<a href="/dashboard">대쉬보드</a>
<form action="/receiving/insert1" method="POST">
<input type="submit" value="새로고침">
</form>
Expand Down

0 comments on commit 5a7004c

Please sign in to comment.