swkim 5 лет назад
Родитель
Сommit
72987f7377

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

@@ -4666,6 +4666,7 @@ CREATE TABLE TB_GOODS_COMPOSE (
   COMPS_CURR_PRICE   INT UNSIGNED      NULL     COMMENT '구성상품판매가(세트상품에서 사용)', -- 구성상품판매가
   COMPS_GOODS_OPT_NM VARCHAR(200)      NULL     COMMENT '구성상품 옵션명(딜상품에서 사용)', -- 구성상품 옵션명
   BASE_YN            CHAR(1)           NOT NULL DEFAULT 'N' COMMENT '기준여부(품목/전시카테고리)', -- 기준여부(품목/전시카테고리)
+  USE_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 '수정자번호', -- 수정자번호
@@ -4860,4 +4861,30 @@ ALTER TABLE TB_CODI_GOODS
     )
     REFERENCES TB_GOODS ( -- 상품
       GOODS_CD -- 상품코드
+    );
+
+################################################################################
+#판매수량
+################################################################################
+DROP TABLE IF EXISTS TB_SELL_QTY RESTRICT;
+CREATE TABLE TB_SELL_QTY (
+  GOODS_CD         VARCHAR(20)  NOT NULL COMMENT '상품코드', -- 상품코드
+  OPT_CD           VARCHAR(200) NOT NULL COMMENT '옵션코드', -- 옵션코드
+  SELL_GB          VARCHAR(2)   NOT NULL COMMENT '판매구분(10:주문(-), 11:주문취소(+), 12:미출고(+), 20:교환신청(-), 21:교환취소(+), 30:판매매출반영(+))', -- 판매구분
+  ORD_DTL_NO       INT UNSIGNED NULL     COMMENT '주문상세번호', -- 주문상세번호
+  ORD_CHG_SQ       INT UNSIGNED NULL     COMMENT '주문변경일련번호', -- 주문변경일련번호
+  AGENT_ORDER_ID   VARCHAR(30)  NULL     COMMENT '에이전트주문번호', -- 에이전트주문번호
+  EXTMALL_ORDER_ID VARCHAR(50)  NULL     COMMENT '제휴몰주문번호', -- 제휴몰주문번호
+  SELL_QTY         MEDIUMINT    NOT NULL DEFAULT 0 COMMENT '판매수량', -- 판매수량
+  REG_NO           INT UNSIGNED NOT NULL COMMENT '등록자번호', -- 등록자번호
+  REG_DT           TIMESTAMP    NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '등록일시' -- 등록일시
+)
+COMMENT '판매수량. 재고가 변동되는 시점(주문, 주문취소, 교환신청, 교환취소, 판매매출반영)에 발생. ERP재고연동 시 테이블 TRUNCATE';
+
+-- 판매수량
+ALTER TABLE TB_SELL_QTY
+  ADD CONSTRAINT PK_SELL_QTY -- 판매수량 기본키
+    PRIMARY KEY (
+      GOODS_CD, -- 상품코드
+      OPT_CD    -- 옵션코드
     );

BIN
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index


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


BIN
산출물/3.설계/ERD/.metadata/.plugins/org.eclipse.core.resources/.root/12.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


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

@@ -26,13 +26,17 @@
 <folder appearance="1" expanded="2">
 <presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory">
 <part id="0"/>
+<part id="1"/>
 </presentation>
 </folder>
 </info>
 </editorArea>
-<editor 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">
+<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 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>
 </editors>
 <views>
 <view id="com.tomato.exerd.modelview3.ModelView3" partName="모델">
@@ -60,7 +64,7 @@
 <viewState/>
 </view>
 </views>
-<perspectives activePart="com.tomato.exerd.ui.views.thumbnail" activePerspective="com.tomato.exerd.perspective.design">
+<perspectives activePart="com.tomato.exerd.editor.DiagramEditor" activePerspective="com.tomato.exerd.perspective.design">
 <perspective editorAreaTrimState="2" editorAreaVisible="1" fixed="0" version="0.016">
 <descriptor class="com.tomato.exerd.perspective.ExerdPerspectiveFactory" id="com.tomato.exerd.perspective.design" label="eXERD"/>
 <alwaysOnActionSet id="org.eclipse.ui.cheatsheets.actionSet"/>
@@ -131,7 +135,7 @@
 </presentation>
 </folder>
 </info>
-<info folder="true" part="bottomFolder" ratio="0.6996904" ratioLeft="452" ratioRight="194" relationship="4" relative="org.eclipse.ui.editorss">
+<info folder="true" part="bottomFolder" ratio="0.9800138" ratioLeft="1422" ratioRight="29" relationship="4" relative="org.eclipse.ui.editorss">
 <folder activePageID="org.eclipse.ui.console.ConsoleView" appearance="2" expanded="2">
 <page content="com.tomato.exerd.validate.ui.ValidateView" label="검토"/>
 <page content="org.eclipse.ui.console.ConsoleView" label="콘솔"/>
@@ -160,7 +164,12 @@
 <navigationHistory>
 <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/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"/>
 </editors>
+<item historyLabel="ST24.exerd" index="0"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="1"/>
+<item historyLabel="ST24.exerd" index="0"/>
+<item historyLabel="iSTYLE24_Mall.exerd" index="1"/>
 <item active="true" historyLabel="ST24.exerd" index="0"/>
 </navigationHistory>
 <input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/" type="8"/>
@@ -179,6 +188,9 @@
 </trimLayout>
 </window>
 <mruList>
+<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" name="iSTYLE24_Mall.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\asis\iSTYLE24_Mall.exerd">
+<persistable uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/asis/iSTYLE24_Mall.exerd"/>
+</file>
 <file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.tomato.exerd.editor.DiagramEditor" name="ST24.exerd" tooltip="D:\WIDE\workspace\webapps\style24\style24.doc\산출물\3.설계\ERD\ST24.exerd">
 <persistable uri="file:/D:/WIDE/workspace/webapps/style24/style24.doc/산출물/3.설계/ERD/ST24.exerd"/>
 </file>

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