티스토리 뷰
/*=============================================================================================
-- Author : 장정훈
-- Description : 상품 목록을 가져온다.
-- Note :
-- Modify Log: :
-- Test :
exec QfsInventoryList_james
'100054651'
, '0000019358'
, ''
, ''
, ''
, N''
============================================================================================= */
alter procedure dbo.QfsInventoryList_james
@customerNo varchar(10)
, @placeCode varchar(10)
, @searchStartDate char(8)
, @searchEndDate char(8)
, @searchOption nvarchar(50)
, @searchOptionDetail nvarchar(5)
as
begin
set nocount on
set transaction isolation level read uncommitted
declare @inventorySum table (
inv_no int
, qty int
)
insert into @inventorySum (inv_no, qty)
select inventory.inv_no, isnull(SUM(branchQty.qty), 0) as sumQty
from f_inventory inventory with (nolock, readuncommitted)
left outer join f_inventory_option inventoryOption
on inventory.inv_no = inventoryOption.inv_no
left outer join t_branch_qty branchQty
on inventoryOption.sku_no = branchQty.sku_no
where inventory.cust_no = @customerNo
and inventory.pl_cd = @placeCode
and inventory.use_yn = 'Y'
group by inventory.inv_no
select inventory.cust_no
, inventory.pl_cd
, inventory.inv_no
, inventory.inv_code
, inventory.inv_name
, inventory.use_yn
, inventory.reg_dt
, inventorysum.qty
from f_inventory inventory with(nolock, readuncommitted)
left outer join @inventorySum inventorySum
on inventory.inv_no = inventorySum.inv_no
where
CASE WHEN @searchOption = 'inventoryname' THEN inventory.inv_name ELSE '' END
like CASE WHEN @searchOption = 'inventoryname' THEN '%'+@searchOptionDetail+'%' ELSE '' END
and CASE WHEN @searchOption = 'inventorycode' THEN inventory.inv_code ELSE '' END
like CASE WHEN @searchOption = 'inventorycode' THEN '%'+@searchOptionDetail+'%' ELSE '' END
and CASE WHEN @searchStartDate <> '' THEN CONVERT(int, CONVERT(char(8), inventory.reg_dt, 112)) ELSE '' END
between
CASE WHEN (@searchStartDate <> '' and @searchEndDate <> '') THEN @searchStartDate ELSE '' END
and
CASE WHEN (@searchStartDate <> '' and @searchEndDate <> '') THEN @searchEndDate ELSE '' END
and inventory.cust_no = @customerNo
and inventory.pl_cd = @placeCode
and inventory.use_yn = 'Y'
end
- Total
- Today
- Yesterday
- 스프링 시큐리티(spring security)
- 인텔리제이(intellij)
- MainActor
- 제품 등록
- 스프링 시큐리티(spring security)-http basic 인증
- 문자 자르기
- jsp 오픈 소스
- 표현 언어(expression language)
- REST API
- 특정 문자를 기준으로 자르기
- 람다식(lambda expression)
- await
- java-개발 환경 설정하기
- System.Diagnostics
- jstl(java standard tag library)-core
- 진수 변환
- 스프링 프레임워크(spring framework)
- .submit()
- 메이븐(maven)
- nl2br
- error-java
- java web-mvc
- java.sql
- java 키워드 정리
- In App Purchase
- React
- 상품 등록
- 스프링 프레임워크(spring framewordk)
- system.io
- jstl(java standard tag library)
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |