0 THEN 1 ELSE 0 END FROM NHS_PRD_OPTN DD WHERE DD.CMP_CD = A.CMP_CD AND DD.SALES_ORG_CD = A.SALES_ORG_CD AND DD.STOR_CD = A.STOR_CD AND DD.ITEM_CD=A.ITEM_CD) OPTN_YN, A.TOUCH_KEY_NM, A.LAST_UPD_TIME, B.FILE_NAME , C.BAR_CD, B.ORDER_TYPE, A.REG_USER_ID, A.REG_DATE, A.UPD_USER_ID, A.UPD_DATE, /* BR 추가 */ A.TOUCH_KEY_KIND, A.MAPPING_CD, A.PRD_LINK_PAGE1, A.PRD_LINK_PAGE2, A.SET_YN, A.SET_ITEM_CD, A.SET_ITEM_CNT, A.FLAVOR_YN, A.FLAVOR_CNT, A.OPTN_CNT_CHG_YN, A.SET_CHANGE_YN, A.SET_CHANGE_ITEM_CD, A.EVENT_CHANGE_YN, A.EVENT_ITEM_CD, A.D2_USE_YN FROM NHS_STOR_PRD_KEY A LEFT OUTER JOIN NHS_PRD_MST B ON A.CMP_CD = B.CMP_CD AND A.SALES_ORG_CD = B.SALES_ORG_CD AND A.ITEM_CD = B.ITEM_CD LEFT OUTER JOIN MST_ITEM_BAR_CD C ON A.CMP_CD = C.CMP_CD AND A.ITEM_CD = C.ITEM_CD WHERE A.CMP_CD = ? AND A.SALES_ORG_CD = ? AND A.STOR_CD = ? ]]> = TO_DATE(?,'YYYYMMDDHH24MISS') ]]> =? --TO_DATE(,'YYYYMMDDHH24MISS') ]]>