Non-Function #78
Updated by Deca Park over 1 year ago
<p>1.ADMIN</p> <p> 1) 온라인몰 관리 > 상품 등록 관리 (/onlineProduct) > 상세 (Modify)</p> <ul> <li>Spec: p2 (attach ppt)</li> </ul> <p>2.API</p> <p> 1) [API] 쇼핑몰 상품 리스트 (GET /api/mall_product_list), 상품정보 (GET /api/mall_product)</p> <p> 1-1) Response > <strong>sold_out_yn</strong> (logic change)<br /> a) if st_product.sold_out_yn = 'Y', set 'Y'<br /> b) else<br /> b-1) if <strong>stock_count stock_count is NOT NULL AND stock_count <= 0</strong>, 0, set 'Y'<br /> <strong>(* if stock_count is NULL(empty), sold_out_yn is set by 'N' - because it means that the product stock is not managed)</strong><br /> c) if NOT a) or b), set 'N' </p> <p> 2) [API] PG 결제 컨펌 (POST /api/pay_confirm)</p> <p> a) if PG pay confirm API is success<br /> - append common order's product stock count process</p> <p> 3) [Common] order's product stock count process<br /> - make common service(function) (it's called on other process)</p> <p> [Logic]<br /> a) if st_mall.mall_type is NOT 'online' (with st_order.mall_code), SKIP<br /> b) if st_mall.mall_type = 'online'<br /> b-1) SELECT DB (st_order_product)<br /> - select: order_count<br /> - condition: order_no = {order_no param}<br /> b-2) decrease product's stock_count of b-1) selected product list<br /> UPDATE DB (st_product)<br /> - <strong>stock_count = stock_count - order_count<br /> (if stock_count is minus, set by 0)</strong></p>