• Oracle EBS-SQL (WIP-8):检查期间任务下达记录数.sql


    select
           WE.DESCRIPTION                                                                        任务说明,
           DECODE(WE.SOURCE_CODE,'MRP','工作台','','手工')                         下达方式,
           WT.WIP_ENTITY_NAME                                                                 任务名称,
           MSI.SEGMENT1                                                                               装配件,
           MSI.DESCRIPTION                                                                             描述,
           FLV.MEANING                                                                              车间状态,
           WE.CLASS_CODE                                                                         车间类别,
           TO_CHAR(WE.CREATION_DATE,'YYYY-MM-DD')                              创建日期,
           TO_CHAR(WE.SCHEDULED_START_DATE,'YYYY-MM-DD')           计划开始日期,
           TO_CHAR(WE.SCHEDULED_COMPLETION_DATE,'YYYY-MM-DD') 计划完成日期,
           TO_CHAR(WE.DATE_RELEASED,'YYYY-MM-DD')                              发放日期,
           TO_CHAR(WE.DATE_COMPLETED,'YYYY-MM-DD')                            完成日期,
           TO_CHAR(WE.DATE_CLOSED,'YYYY-MM-DD')                                  关闭日期,
           WE.START_QUANTITY                                                                   开始数量,
           we.QUANTITY_COMPLETED                                                            完成数量
    from
           WIP.WIP_DISCRETE_JOBS       WE,
           WIP.WIP_ENTITIES                 WT,
           APPS.FND_LOOKUP_VALUES   FLV,
           INV.MTL_SYSTEM_ITEMS_B    MSI
    where
           MSI.ORGANIZATION_ID=X
    AND MSI.ORGANIZATION_ID=WE.ORGANIZATION_ID
    AND MSI.ORGANIZATION_ID=WT.ORGANIZATION_ID
    AND MSI.INVENTORY_ITEM_ID=we.PRIMARY_ITEM_ID
    AND WE.WIP_ENTITY_ID=WT.WIP_ENTITY_ID
    AND FLV.LOOKUP_TYPE ='WIP_JOB_STATUS'
    AND WE.STATUS_TYPE = FLV.LOOKUP_CODE(+)
    AND FLV.LANGUAGE='ZHS'
    --AND WT.WIP_ENTITY_NAME NOT LIKE 'A%'
    --AND WE.CLASS_CODE  like 'B%'
    AND WE.STATUS_TYPE IN (3,1,12,6,14,5,4)
    AND WE.CREATION_DATE between to_date('20**-01-01','yyyy-mm-dd') and to_date('20**-01-31','yyyy-mm-dd')

  • 相关阅读:
    SpringBoot进阶教程(六十七)RateLimiter限流
    Nginx限流配置
    ab test压力测试
    Nginx负载均衡配置
    arduino串口通信
    flask文件路径设置问题
    WIN10和ubunu共享文件夹相互访问
    树莓派录音和播放声音
    深度学习论文翻译解析(十六):Squeeze-and-Excitation Networks
    人工智能必备数学基础:高等数学基础(2)
  • 原文地址:https://www.cnblogs.com/st-sun/p/3780125.html
Copyright © 2020-2023  润新知