Browse Source

Merge branch 'master' of http://112.172.147.34:4936/style24/style24.doc.git

gagamel 5 years ago
parent
commit
2bf9768bc4

BIN
산출물/2.분석/상품상세유입경로.xlsx


+ 91 - 30
산출물/3.설계/05.DB-Object/06.DDL/table.sql

@@ -2467,34 +2467,66 @@ INSERT INTO TB_COMMON_CODE VALUES ('G026', 'G026_GF', '선물하기', NULL, 'Y',
 INSERT INTO TB_COMMON_CODE VALUES ('G026', 'G026_PP', '주문생성', NULL, 'Y', 5, 1, NOW(), 1, NOW());
 
 INSERT INTO TB_COMMON_CODE VALUES ('ROOT', 'G027', '유입경로', NULL, 'Y', 27, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN01_01', '메인>신상품', NULL, 'Y', 1, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN01_02', '메인>베스트상품', NULL, 'Y', 2, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN01_03', '메인>추천상품', NULL, 'Y', 3, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN02_01', '검색결과', NULL, 'Y', 4, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN03_01', '카테고리메인>WOMEN>상품목록', NULL, 'Y', 5, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN03_02', '카테고리메인>MEN>상품목록', NULL, 'Y', 6, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN03_03', '카테고리메인>LIFE>상품목록', NULL, 'Y', 7, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN04_01', 'OUTLET메인>최근들어온상품', NULL, 'Y', 8, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN04_02', 'OUTLET메인>베스트상품', NULL, 'Y', 9, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN04_03', 'OUTLET메인>상품목록', NULL, 'Y', 10, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN05_01', '브랜드메인>MD추천상품', NULL, 'Y', 11, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN05_02', '브랜드메인>신상품', NULL, 'Y', 12, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN05_03', '브랜드메인>상품목록', NULL, 'Y', 13, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN06_01', '베스트상품메인>상품목록', NULL, 'Y', 14, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN07_01', '이벤트메인>상품목록', NULL, 'Y', 15, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN08_01', '컨텐츠>룩북>상품목록', NULL, 'Y', 16, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN09_01', '상품상세>다른컬러보기', NULL, 'Y', 17, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN09_02', '상품상세>이상품과함께많이본상품', NULL, 'Y', 18, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN10_01', '주문내역>주문상세>상품', NULL, 'Y', 19, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN10_02', '주문내역>취소신청>상품', NULL, 'Y', 20, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN10_03', '주문내역>반푼신청>상품', NULL, 'Y', 21, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN11_01', '취소>/반품/품절내역>상품', NULL, 'Y', 22, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN12_01', '상품평>작성가능한상품평>상품', NULL, 'Y', 23, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN12_02', '상품평>나의상품평>상품', NULL, 'Y', 24, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN13_01', '위시리스트>상품', NULL, 'Y', 25, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN14_01', '장바구니>상품', NULL, 'Y', 26, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN15_01', '주문/결제>상품', NULL, 'Y', 27, 1, NOW(), 1, NOW());
--- INSERT INTO TB_COMMON_CODE VALUES ('G027', 'IN9999', '기타', NULL, 'Y', 99, 1, NOW(), 1, NOW());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN01_01','메인>신상품',null,'Y',1,6,now(),6,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN01_02','메인>베스트',null,'Y',2,6,now(),7,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN01_03','메인>핫딜',null,'Y',3,6,now(),8,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN01_04','메인>브랜드픽',null,'Y',4,6,now(),9,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN01_05','메인>MD추천',null,'Y',5,6,now(),10,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN01_06','메인>추천상품',null,'Y',6,6,now(),11,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN02_01','카테메인>여성>신상품',null,'Y',21,6,now(),12,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN02_02','카테메인>>베스트',null,'Y',22,6,now(),13,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN02_03','카테메인>>상품목록',null,'Y',23,6,now(),14,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN03_01','카테메인>남성>신상품',null,'Y',31,6,now(),15,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN03_02','카테메인>>베스트',null,'Y',32,6,now(),16,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN03_03','카테메인>>상품목록',null,'Y',33,6,now(),17,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN04_01','카테메인>유아동>신상품',null,'Y',41,6,now(),18,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN04_02','카테메인>>베스트',null,'Y',42,6,now(),19,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN04_03','카테메인>>상품목록',null,'Y',43,6,now(),20,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN05_01','카테메인>골프>신상품',null,'Y',51,6,now(),21,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN05_02','카테메인>>베스트',null,'Y',52,6,now(),22,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN05_03','카테메인>>상품목록',null,'Y',53,6,now(),23,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN06_01','카테메인>라이프>신상품',null,'Y',61,6,now(),24,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN06_02','카테메인>>베스트',null,'Y',62,6,now(),25,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN06_03','카테메인>>상품목록',null,'Y',63,6,now(),26,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN07_01','아울렛메인>MD추천',null,'Y',71,6,now(),27,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN07_02','아울렛메인>베스트',null,'Y',72,6,now(),28,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN07_03','아울렛메인>상품목록',null,'Y',73,6,now(),29,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_01','브랜드메인>GNB추천상품',null,'Y',81,6,now(),30,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_02','브랜드메인>신상품',null,'Y',82,6,now(),31,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_03','브랜드메인>베스트',null,'Y',83,6,now(),32,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_04','브랜드메인>MD추천',null,'Y',84,6,now(),33,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_05','브랜드메인>룩북',null,'Y',85,6,now(),34,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_06','브랜드메인>상품롤링',null,'Y',86,6,now(),35,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_07','브랜드메인>추천상품1',null,'Y',87,6,now(),36,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_08','브랜드메인>추천상품2',null,'Y',88,6,now(),37,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_09','브랜드메인>추천상품3',null,'Y',89,6,now(),38,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN08_10','브랜드메인>상품목록',null,'Y',90,6,now(),39,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN09_01','검색>상품목록',null,'Y',91,6,now(),40,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN10_01','베스트>상품목록',null,'Y',101,6,now(),41,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN11_01','핫딜>상품목록',null,'Y',111,6,now(),42,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN12_01','기획전>상품목록',null,'Y',121,6,now(),43,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN13_01','총알배송>상품목록',null,'Y',131,6,now(),44,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN14_01','룩북>상품목록',null,'Y',141,6,now(),45,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN15_01','상품상세>다른컬러',null,'Y',151,6,now(),46,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN15_02','상품상세>다다익선상품',null,'Y',152,6,now(),47,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN15_03','상품상세>함께본상품',null,'Y',153,6,now(),48,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN15_04','상품상세>브랜드추천상품',null,'Y',154,6,now(),49,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN15_05','상품상세>비슷한상품',null,'Y',155,6,now(),50,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN15_06','상품상세>룩북상품',null,'Y',156,6,now(),51,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN16_01','상품평>작성가능한상품평',null,'Y',161,6,now(),52,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN16_02','상품평>내가쓴상품평',null,'Y',162,6,now(),53,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN17_01','위시리스트>상품목록',null,'Y',171,6,now(),54,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN18_01','장바구니>상품목록',null,'Y',181,6,now(),55,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN19_01','재입고알림>상품목록',null,'Y',191,6,now(),56,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN20_01','주문>주문목록',null,'Y',201,6,now(),57,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN20_02','주문>주문상세',null,'Y',202,6,now(),58,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN21_01','취소/반품/교환>취소/반품/교환 목록',null,'Y',211,6,now(),59,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN21_02','취소/반품/교환>취소/반품/교환 상세',null,'Y',212,6,now(),60,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN22_01','퀵메뉴>최근본상품>상품목록',null,'Y',221,6,now(),61,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN22_02','퀵메뉴>위시리스트>상품목록',null,'Y',222,6,now(),62,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN22_03','퀵메뉴>장바구니>상품목록',null,'Y',223,6,now(),63,now());
+INSERT INTO TB_COMMON_CODE VALUES ('G027','IN9999','기타',null,'Y',999,6,now(),64,now());
+
 
 INSERT INTO TB_COMMON_CODE VALUES ('ROOT', 'G028', '컨텐츠위치', NULL, 'Y', 28, 1, NOW(), 1, NOW());
 INSERT INTO TB_COMMON_CODE VALUES ('G028',	'SGNB001','STYLE24MALL > GNB > TOP배너(C)',			NULL, 'Y', 1, 12, NOW(), 12, NOW());
@@ -10795,6 +10827,7 @@ CREATE TABLE TB_ORDER_CHANGE (
   CHG_REASON         VARCHAR(20)   NOT NULL COMMENT '변경사유(공통코드 - 취소:G686, 반품:G688, 교환:G689)', -- 변경사유
   CHG_MEMO           VARCHAR(1000) NULL     COMMENT '변경메모', -- 변경메모
   WD_GB              VARCHAR(1)    NULL     COMMENT '회수구분', -- 회수구분
+  WD_TARGET_YN       CHAR(1)       NULL     DEFAULT 'Y' COMMENT '회수지시대상여부', -- 회수지시대상여부
   CHGER_NM           VARCHAR(50)   NULL     COMMENT '변경자명', -- 변경자명
   CHGER_PHNNO        VARCHAR(20)   NULL     COMMENT '변경자휴대전화번호', -- 변경자휴대전화번호
   CHGER_TELNO        VARCHAR(20)   NULL     COMMENT '변경자전화번호', -- 변경자전화번호
@@ -10815,6 +10848,7 @@ CREATE TABLE TB_ORDER_CHANGE (
   WD_REASON_CD       VARCHAR(20)   NULL     COMMENT '미회수사유코드(공통코드G321,G322)', -- 미회수사유코드(공통코드G321,G322)
   WD_STATE_DT        TIMESTAMP     NULL     COMMENT '회수상태수정일시', -- 회수상태수정일시
   WD_BF_SEND_YN      CHAR(1)       NOT NULL DEFAULT 'N' COMMENT '선발송여부', -- 선발송여부
+  DISP_YN            CHAR(1)       NOT NULL DEFAULT 'Y' COMMENT '표시여부', -- 표시여부
   REG_NO             INT UNSIGNED  NOT NULL COMMENT '등록자번호', -- 등록자번호
   REG_DT             TIMESTAMP     NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '등록일시', -- 등록일시
   UPD_NO             INT UNSIGNED  NOT NULL COMMENT '수정자번호', -- 수정자번호
@@ -11861,9 +11895,9 @@ CREATE TABLE TB_GOODS_SAFE_NO (
   CERT_TARGET_GB   VARCHAR(20)   NULL COMMENT '인증대상구분(공통코드G083)', -- 인증대상구분
   CERT_FORM_GB     VARCHAR(20)   NULL COMMENT '인증형태구분(공통코드G084)', -- 인증형태구분
   CERT_TYPE        VARCHAR(20)   NULL COMMENT '인증타입(공통코드G081)', -- 인증타입
-  CERT_NUM         VARCHAR(200)   NULL COMMENT '안전인증번호', -- 안전인증번호
+  CERT_NUM         VARCHAR(200)  NULL COMMENT '안전인증번호', -- 안전인증번호
   CERT_STATE       VARCHAR(100)  NULL COMMENT '인증상태(적합,반납,청문실시,기간만료,안저인증취소 등)', -- 인증상태
-  CERT_DIV         VARCHAR(20)   NULL COMMENT '인증구분', -- 인증구분
+  CERT_DIV         VARCHAR(100)  NULL COMMENT '인증구분', -- 인증구분
   CERT_ORGAN_NAME  VARCHAR(100)  NULL COMMENT '인증기관', -- 인증기관
   CERT_DT          VARCHAR(8)    NULL COMMENT '안전인증일', -- 안전인증일
   REG_NO           INT UNSIGNED  NOT NULL COMMENT '등록자번호', -- 등록자번호
@@ -11965,6 +11999,12 @@ CREATE INDEX IX_WMS_GOODS_02
     BRAND_NO ASC -- 브랜드번호
   );
 
+  -- WMS입고상품 인덱스3
+CREATE INDEX IX_WMS_GOODS_03
+  ON TB_WMS_GOODS( -- WMS입고상품
+    MODEL_NO ASC -- 모델번호
+  );
+
 ################################################################################
 #WMS색상매핑
 ################################################################################
@@ -13337,6 +13377,7 @@ CREATE TABLE TB_CUST_CONTACT_HST (
   CONTACT_TYPE     VARCHAR(20)   NOT NULL COMMENT '접촉유형(공통코드G054)', -- 접촉유형(공통코드G054)
   CONTACT_METHOD   VARCHAR(20)   NOT NULL COMMENT '접촉방법(공통코드G055)', -- 접촉방법(공통코드G055)
   CONTACT_CONTENTS VARCHAR(4000) NOT NULL COMMENT '접촉내용', -- 접촉내용
+  CONTACT_MEMO     VARCHAR(100)  NULL     COMMENT '접촉메모', -- 접촉메모
   SENDER_NO        INT UNSIGNED  NOT NULL COMMENT '발송자ID(고객, 사용자)', -- 발송자번호
   SEND_DT          TIMESTAMP     NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '발송일시', -- 발송일시
   RECEIVER_NO      INT UNSIGNED  NOT NULL COMMENT '수신자번호', -- 수신자번호
@@ -15989,3 +16030,23 @@ CREATE TABLE TB_NAVERPAY_FAIL_LOG
     REG_DT          TIMESTAMP        NULL COMMENT '등록날짜'
 )
     COMMENT '네이버페이_실패_로그';
+
+################################################################################
+# 수동전시 컨텐츠상품 저장
+################################################################################
+DROP TABLE IF EXISTS TB_CONTENTS_GOODS RESTRICT;
+CREATE TABLE TB_CONTENTS_GOODS (
+  BRAND_GROUP_NO int unsigned NOT NULL COMMENT '브랜드그룹번호(브랜드그룹). BYITEM인 경우 0, BYBRAND인 경우 브랜드그룹번호',
+  CATE_NO int unsigned NOT NULL COMMENT '카테고리코드',
+  LEAF_CATE_NO int unsigned NOT NULL COMMENT '단말카테고리번호',
+  CONTENTS_LOC varchar(20) NOT NULL COMMENT '컨텐츠위치(공통코드G028)',
+  PRE_CONTENTS_SQ int unsigned DEFAULT NULL COMMENT '컨텐츠미리보기일련번호',
+  CONTENTS_SQ int unsigned DEFAULT NULL COMMENT '컨텐츠일련번호',
+  GOODS_CD varchar(20) NOT NULL COMMENT '상품코드',
+  GOODS_NM varchar(200) NOT NULL COMMENT '상품명',
+  IMG_PATH1 varchar(200) NOT NULL COMMENT '이미지경로',
+  DISP_ORD smallint unsigned NOT NULL COMMENT '표시순서',
+  REG_NO int unsigned NOT NULL COMMENT '등록자번호',
+  REG_DT timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '등록일시'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='수동전시 컨텐츠상품 저장. 프론트 메인 화면의 레이아웃 구성 등록에 의한 발생'
+;

+ 70 - 0
산출물/3.설계/ERD/.metadata/.log

@@ -5498,3 +5498,73 @@ Command-line arguments:  -os win32 -ws win32 -arch x86 D:\WIDE\workspace\webapps
 
 !ENTRY org.eclipse.osgi 2 1 2021-05-26 15:29:40.329
 !MESSAGE NLS unused message: ToggleColumnVisibilityHandler_5 in: com.tomato.exerd.handler.messages
+!SESSION 2021-06-01 20:15:25.402 -----------------------------------------------
+eclipse.buildId=M20090211-1700
+java.version=1.6.0_24
+java.vendor=Sun Microsystems Inc.
+BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ko_KR
+Framework arguments:  D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\ST24.exerd
+Command-line arguments:  -os win32 -ws win32 -arch x86 D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\ST24.exerd
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:26.274
+!MESSAGE NLS unused message: OpenResourceDialog_openButton_text in: org.eclipse.ui.internal.ide.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:26.275
+!MESSAGE NLS unused message: OpenResourceDialog_openWithMenu_label in: org.eclipse.ui.internal.ide.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:26.276
+!MESSAGE NLS unused message: OpenResourceDialog_openWithButton_toolTip in: org.eclipse.ui.internal.ide.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:26.276
+!MESSAGE NLS unused message: CleanDialog_cleanSelectedTaskName in: org.eclipse.ui.internal.ide.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:26.277
+!MESSAGE NLS unused message: RecentWorkspacesPreferencePage_PromptAtStartup_label in: org.eclipse.ui.internal.ide.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:26.277
+!MESSAGE NLS unused message: RecentWorkspacesPreferencePage_RemoveButton_label in: org.eclipse.ui.internal.ide.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:27.813
+!MESSAGE NLS unused message: url_couldNotResolve_projectDoesNotExist in: org.eclipse.core.internal.utils.messages
+
+!ENTRY org.eclipse.core.resources 2 10035 2021-06-01 20:15:27.874
+!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:28.101
+!MESSAGE NLS unused message: Shortcuts_shortcutTab in: org.eclipse.ui.internal.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:28.102
+!MESSAGE NLS unused message: Shortcuts_selectShortcutsLabel in: org.eclipse.ui.internal.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:28.102
+!MESSAGE NLS unused message: Shortcuts_availableMenus in: org.eclipse.ui.internal.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:28.103
+!MESSAGE NLS unused message: Shortcuts_availableCategories in: org.eclipse.ui.internal.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:28.103
+!MESSAGE NLS unused message: Shortcuts_allShortcuts in: org.eclipse.ui.internal.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:28.103
+!MESSAGE NLS unused message: Util_listNull in: org.eclipse.ui.internal.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:28.104
+!MESSAGE NLS unused message: OpenBrowserHandler_NoInfoDialogTitle in: org.eclipse.ui.internal.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:28.104
+!MESSAGE NLS unused message: AboutFeaturesDialog_SimpleTitle in: org.eclipse.ui.internal.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:32.324
+!MESSAGE NLS unused message: BinaryDumpHandler_1 in: com.tomato.exerd.handler.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:32.324
+!MESSAGE NLS unused message: ConvertToXMLHandler_1 in: com.tomato.exerd.handler.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:32.328
+!MESSAGE NLS unused message: SelectHandler_11 in: com.tomato.exerd.handler.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:32.329
+!MESSAGE NLS unused message: ToggleColumnVisibilityHandler_4 in: com.tomato.exerd.handler.messages
+
+!ENTRY org.eclipse.osgi 2 1 2021-06-01 20:15:32.329
+!MESSAGE NLS unused message: ToggleColumnVisibilityHandler_5 in: com.tomato.exerd.handler.messages

BIN
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap


BIN
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.root/70.tree


BIN
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.root/71.tree


BIN
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources


BIN
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.snap


+ 1 - 1
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml

@@ -7,8 +7,8 @@
 	<section name="SaveAsDialogSettings">
 		<item value="525" key="DIALOG_WIDTH"/>
 		<item value="-51" key="DIALOG_Y_ORIGIN"/>
-		<item value="580" key="DIALOG_HEIGHT"/>
 		<item value="88" key="DIALOG_X_ORIGIN"/>
+		<item value="580" key="DIALOG_HEIGHT"/>
 		<item value="1|맑은 고딕|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|맑은 고딕" key="DIALOG_FONT_NAME"/>
 	</section>
 </section>

+ 42 - 42
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml

@@ -32,10 +32,10 @@
 </folder>
 </info>
 </editorArea>
-<editor id="com.tomato.exerd.editor.DiagramEditor" name="ST24.exerd" partName="ST24.exerd" title="ST24.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\ST24.exerd" workbook="DefaultEditorWorkbook">
+<editor activePart="true" focus="true" id="com.tomato.exerd.editor.DiagramEditor" name="ST24.exerd" partName="ST24.exerd" title="ST24.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\ST24.exerd" workbook="DefaultEditorWorkbook">
 <input factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
 </editor>
-<editor activePart="true" focus="true" id="com.tomato.exerd.editor.DiagramEditor" name="iSTYLE24_Mall.exerd" partName="iSTYLE24_Mall.exerd" title="iSTYLE24_Mall.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\asis\iSTYLE24_Mall.exerd" workbook="DefaultEditorWorkbook">
+<editor id="com.tomato.exerd.editor.DiagramEditor" name="iSTYLE24_Mall.exerd" partName="iSTYLE24_Mall.exerd" title="iSTYLE24_Mall.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\asis\iSTYLE24_Mall.exerd" workbook="DefaultEditorWorkbook">
 <input factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
 </editor>
 <editor id="com.tomato.exerd.editor.DiagramEditor" name="iSTYLE24_Wms.exerd" partName="iSTYLE24_Wms.exerd" title="iSTYLE24_Wms.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\asis\iSTYLE24_Wms.exerd" workbook="DefaultEditorWorkbook">
@@ -169,7 +169,6 @@
 <editors>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
-<editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
@@ -178,57 +177,58 @@
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
 <editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
+<editor factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
 </editors>
-<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="0"/>
-<item historyLabel="ST24.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="0"/>
-<item historyLabel="ST24.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="0"/>
-<item historyLabel="ST24.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="0"/>
-<item historyLabel="ST24.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="0"/>
-<item historyLabel="ST24.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="0"/>
-<item historyLabel="ST24.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="0"/>
-<item historyLabel="ST24.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="3"/>
-<item historyLabel="ST24.exerd" index="2"/>
+<item historyLabel="ST24.exerd" index="1"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="3"/>
-<item historyLabel="ST24.exerd" index="2"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="4"/>
-<item historyLabel="ST24.exerd" index="2"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="4"/>
-<item historyLabel="ST24.exerd" index="2"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="4"/>
-<item historyLabel="ST24.exerd" index="2"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="4"/>
-<item historyLabel="ST24.exerd" index="2"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="4"/>
-<item historyLabel="ST24.exerd" index="2"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="4"/>
-<item historyLabel="ST24.exerd" index="5"/>
+<item historyLabel="ST24.exerd" index="1"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="3"/>
+<item historyLabel="ST24.exerd" index="1"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="3"/>
+<item historyLabel="ST24.exerd" index="1"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="3"/>
+<item historyLabel="ST24.exerd" index="1"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="3"/>
+<item historyLabel="ST24.exerd" index="4"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="5"/>
+<item historyLabel="ST24.exerd" index="4"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="6"/>
-<item historyLabel="ST24.exerd" index="5"/>
+<item historyLabel="ST24.exerd" index="4"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="7"/>
+<item historyLabel="ST24.exerd" index="4"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="7"/>
+<item historyLabel="ST24.exerd" index="4"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="7"/>
+<item historyLabel="ST24.exerd" index="4"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="7"/>
+<item historyLabel="ST24.exerd" index="4"/>
 <item historyLabel="iSTYLE24_Mall.exerd" index="7"/>
-<item historyLabel="ST24.exerd" index="5"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="8"/>
-<item historyLabel="ST24.exerd" index="5"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="8"/>
-<item historyLabel="ST24.exerd" index="5"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="8"/>
-<item historyLabel="ST24.exerd" index="5"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="8"/>
-<item historyLabel="ST24.exerd" index="5"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="8"/>
-<item historyLabel="ST24.exerd" index="9"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="10"/>
-<item historyLabel="ST24.exerd" index="9"/>
-<item historyLabel="iSTYLE24_Mall.exerd" index="10"/>
-<item historyLabel="ST24.exerd" index="9"/>
-<item active="true" historyLabel="iSTYLE24_Mall.exerd" index="10"/>
+<item historyLabel="ST24.exerd" index="8"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="9"/>
+<item historyLabel="ST24.exerd" index="8"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="9"/>
+<item historyLabel="ST24.exerd" index="8"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="9"/>
+<item active="true" historyLabel="ST24.exerd" index="10"/>
 </navigationHistory>
 <input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/" type="8"/>
 </page>

BIN
산출물/3.설계/ERD/ST24.exerd


+ 68 - 65
산출물/4.구축/데이터처리/07.카테고리재고생성(TB_CATE_STOCK).sql

@@ -1,5 +1,66 @@
-TRUNCATE TABLE TB_CATE_STOCK;
 
+TRUNCATE TABLE TB_CATE_STOCK_TMP;
+INSERT INTO TB_CATE_STOCK_TMP
+SELECT B.SITE_CD
+     , B.CATE1_NO
+     , B.CATE2_NO
+     , B.CATE3_NO
+     , B.CATE4_NO
+     , B.CATE5_NO
+     , A.GOODS_CD
+     , C.BRAND_GROUP_NO
+     , C.FORMAL_GB
+     , C.STOCK_QTY
+FROM   TB_CATE_GOODS A
+     , TB_CATE_4SRCH B
+     , (
+        SELECT G.GOODS_CD
+             , B.BRAND_GROUP_NO
+             , G.FORMAL_GB
+             , SUM(S.CURR_STOCK_QTY - S.BASE_STOCK_QTY) AS STOCK_QTY
+        FROM   TB_GOODS G USE INDEX (IX_GOODS_11)
+             , VW_STOCK S
+             , TB_BRAND B
+        WHERE  G.GOODS_CD = S.GOODS_CD
+        AND    G.BRAND_CD = B.BRAND_CD
+        AND    G.GOODS_TYPE = 'G056_N' /*일반상품*/
+        AND    G.GOODS_STAT = 'G008_90' /*승인된상품*/
+        AND    G.SELF_MALL_YN = 'Y' /*자사몰에노출하는넘만*/
+        AND    NOW() BETWEEN G.SELL_STDT AND G.SELL_EDDT /*유효한판매기간*/
+        AND    S.SOLDOUT_YN = 'N' /*품절이아닌넘*/
+        AND    S.DISP_YN = 'Y' /*사이즈노출하는넘만*/
+        AND    S.CURR_STOCK_QTY - S.BASE_STOCK_QTY > 0 /*재고있는넘만*/
+        GROUP  BY G.GOODS_CD, B.BRAND_GROUP_NO, G.FORMAL_GB
+        UNION ALL
+        SELECT G.GOODS_CD
+             , B.BRAND_GROUP_NO
+             , G.FORMAL_GB
+             , SUM(S.CURR_STOCK_QTY - S.BASE_STOCK_QTY) AS STOCK_QTY
+        FROM   TB_GOODS G USE INDEX (IX_GOODS_11)
+             , TB_GOODS_COMPOSE GC
+             , VW_STOCK S
+             , TB_BRAND B
+        WHERE  G.GOODS_CD = GC.GOODS_CD
+        AND    GC.COMPS_GOODS_CD = S.GOODS_CD
+        AND    G.BRAND_CD = B.BRAND_CD
+        AND    G.GOODS_TYPE != 'G056_N' /*일반상품이 아닌넘*/
+        AND    G.GOODS_STAT = 'G008_90' /*승인된상품*/
+        AND    G.SELF_GOODS_YN = 'Y' /*자사상품만(세트상품과 딜상품은 자사상품만)*/
+        AND    G.SELF_MALL_YN = 'Y' /*자사몰에노출하는넘만*/
+        AND    NOW() BETWEEN G.SELL_STDT AND G.SELL_EDDT /*유효한판매기간*/
+        AND    GC.USE_YN = 'Y' /*사용하는구성상품*/
+        AND    S.SOLDOUT_YN = 'N' /*품절이아닌넘*/
+        AND    S.DISP_YN = 'Y' /*사이즈노출하는넘만*/
+        AND    S.CURR_STOCK_QTY - S.BASE_STOCK_QTY > 0 /*재고있는넘만*/
+        GROUP  BY G.GOODS_CD, B.BRAND_GROUP_NO, G.FORMAL_GB
+       ) C
+WHERE  A.GOODS_CD = C.GOODS_CD
+AND    A.CATE_NO = B.LEAF_CATE_NO
+AND    B.CATE_TYPE = 'G031_10' /*상품분류카테고리*/
+;
+
+
+TRUNCATE TABLE TB_CATE_STOCK;
 INSERT INTO TB_CATE_STOCK (
        SITE_CD
      , CATE_NO
@@ -10,64 +71,6 @@ INSERT INTO TB_CATE_STOCK (
      , REG_NO
      , REG_DT
 )
-WITH TAB AS (
-    SELECT B.SITE_CD
-         , B.CATE1_NO
-         , B.CATE2_NO
-         , B.CATE3_NO
-         , B.CATE4_NO
-         , B.CATE5_NO
-         , A.GOODS_CD
-         , C.BRAND_GROUP_NO
-         , C.FORMAL_GB
-         , C.STOCK_QTY
-    FROM   TB_CATE_GOODS A
-         , TB_CATE_4SRCH B
-         , (
-            SELECT G.GOODS_CD
-                 , B.BRAND_GROUP_NO
-                 , G.FORMAL_GB
-                 , SUM(S.CURR_STOCK_QTY - S.BASE_STOCK_QTY) AS STOCK_QTY
-            FROM   TB_GOODS G
-                 , VW_STOCK S
-                 , TB_BRAND B
-            WHERE  G.GOODS_CD = S.GOODS_CD
-            AND    G.BRAND_CD = B.BRAND_CD
-            AND    G.GOODS_TYPE = 'G056_N' /*일반상품*/
-            AND    G.GOODS_STAT = 'G008_90' /*승인된상품*/
-            AND    G.SELF_MALL_YN = 'Y' /*자사몰에노출하는넘만*/
-            AND    NOW() BETWEEN G.SELL_STDT AND G.SELL_EDDT /*유효한판매기간*/
-            AND    S.SOLDOUT_YN = 'N' /*품절이아닌넘*/
-            AND    S.DISP_YN = 'Y' /*사이즈노출하는넘만*/
-            AND    S.CURR_STOCK_QTY - S.BASE_STOCK_QTY > 0 /*재고있는넘만*/
-            GROUP  BY G.GOODS_CD, B.BRAND_GROUP_NO, G.FORMAL_GB
-            UNION ALL
-            SELECT G.GOODS_CD
-                 , B.BRAND_GROUP_NO
-                 , G.FORMAL_GB
-                 , SUM(S.CURR_STOCK_QTY - S.BASE_STOCK_QTY) AS STOCK_QTY
-            FROM   TB_GOODS G
-                 , TB_GOODS_COMPOSE GC
-                 , VW_STOCK S
-                 , TB_BRAND B
-            WHERE  G.GOODS_CD = GC.GOODS_CD
-            AND    GC.COMPS_GOODS_CD = S.GOODS_CD
-            AND    G.BRAND_CD = B.BRAND_CD
-            AND    G.GOODS_TYPE != 'G056_N' /*일반상품이 아닌넘*/
-            AND    G.GOODS_STAT = 'G008_90' /*승인된상품*/
-            AND    G.SELF_GOODS_YN = 'Y' /*자사상품만(세트상품과 딜상품은 자사상품만)*/
-            AND    G.SELF_MALL_YN = 'Y' /*자사몰에노출하는넘만*/
-            AND    NOW() BETWEEN G.SELL_STDT AND G.SELL_EDDT /*유효한판매기간*/
-            AND    GC.USE_YN = 'Y' /*사용하는구성상품*/
-            AND    S.SOLDOUT_YN = 'N' /*품절이아닌넘*/
-            AND    S.DISP_YN = 'Y' /*사이즈노출하는넘만*/
-            AND    S.CURR_STOCK_QTY - S.BASE_STOCK_QTY > 0 /*재고있는넘만*/
-            GROUP  BY G.GOODS_CD, B.BRAND_GROUP_NO, G.FORMAL_GB
-           ) C
-    WHERE  A.GOODS_CD = C.GOODS_CD
-    AND    A.CATE_NO = B.LEAF_CATE_NO
-    AND    B.CATE_TYPE = 'G031_10' /*상품분류카테고리*/
-)
 SELECT SITE_CD
      , CATE_NO
      , BRAND_GROUP_NO
@@ -83,7 +86,7 @@ FROM   (
              , FORMAL_GB
              , SUM(STOCK_QTY)           AS STOCK_QTY
              , COUNT(DISTINCT GOODS_CD) AS GOODS_QTY
-        FROM   TAB
+        FROM   TB_CATE_STOCK_TMP
         WHERE  CATE5_NO IS NOT NULL
         GROUP  BY SITE_CD, CATE5_NO, BRAND_GROUP_NO, FORMAL_GB
         HAVING SUM(STOCK_QTY) > 0
@@ -94,7 +97,7 @@ FROM   (
              , FORMAL_GB
              , SUM(STOCK_QTY)           AS STOCK_QTY
              , COUNT(DISTINCT GOODS_CD) AS GOODS_QTY
-        FROM   TAB
+        FROM   TB_CATE_STOCK_TMP
         WHERE  CATE4_NO IS NOT NULL
         GROUP  BY SITE_CD, CATE4_NO, BRAND_GROUP_NO, FORMAL_GB
         HAVING SUM(STOCK_QTY) > 0
@@ -105,7 +108,7 @@ FROM   (
              , FORMAL_GB
              , SUM(STOCK_QTY)           AS STOCK_QTY
              , COUNT(DISTINCT GOODS_CD) AS GOODS_QTY
-        FROM   TAB
+        FROM   TB_CATE_STOCK_TMP
         WHERE  CATE3_NO IS NOT NULL
         GROUP  BY SITE_CD, CATE3_NO, BRAND_GROUP_NO, FORMAL_GB
         HAVING SUM(STOCK_QTY) > 0
@@ -116,7 +119,7 @@ FROM   (
              , FORMAL_GB
              , SUM(STOCK_QTY)           AS STOCK_QTY
              , COUNT(DISTINCT GOODS_CD) AS GOODS_QTY
-        FROM   TAB
+        FROM   TB_CATE_STOCK_TMP
         WHERE  CATE2_NO IS NOT NULL
         GROUP  BY SITE_CD, CATE2_NO, BRAND_GROUP_NO, FORMAL_GB
         HAVING SUM(STOCK_QTY) > 0
@@ -127,7 +130,7 @@ FROM   (
              , FORMAL_GB
              , SUM(STOCK_QTY)           AS STOCK_QTY
              , COUNT(DISTINCT GOODS_CD) AS GOODS_QTY
-        FROM   TAB
+        FROM   TB_CATE_STOCK_TMP
         WHERE  CATE1_NO IS NOT NULL
         GROUP  BY SITE_CD, CATE1_NO, BRAND_GROUP_NO, FORMAL_GB
         HAVING SUM(STOCK_QTY) > 0
@@ -135,6 +138,6 @@ FROM   (
 WHERE  CATE_NO IS NOT NULL
 ;
 
-COMMIT;
+
 
 SELECT * FROM TB_CATE_STOCK;