0 and d.PROCESS_CODE ='F' ) 探伤标准纵向, (select max(e.basename) from CRAFT_ORD_DESIGN_STD_DIC D, ---CRAFT_ORD_DESIGN_STD_DIC COM_BASE_INFO E where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND E.basecode = D.STD_DESC and instr(d.groove_dir, '横向') > 0 and d.PROCESS_CODE ='F' ) 探伤标准横向, (select max(d.coverage) from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND instr(d.groove_dir, '横向') > 0 and d.PROCESS_CODE ='F' ) 探伤标准横向覆盖率, (select max(d.coverage) from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND instr(d.groove_dir, '纵向') > 0 and d.PROCESS_CODE ='F' ) 探伤标准纵向覆盖率, (select max(d.lv_desc) from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND instr(d.groove_dir, '纵向') > 0 AND instr(d.Groove_Pos, '内') > 0 and d.PROCESS_CODE ='F' ) 探伤标准纵id, (select max(d.lv_desc) from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND instr(d.groove_dir, '纵向') > 0 AND instr(d.Groove_Pos, '外') > 0 and d.PROCESS_CODE ='F' ) 探伤标准纵od, (select max(d.lv_desc) from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND instr(d.groove_dir, '横向') > 0 AND instr(d.Groove_Pos, '内') > 0 and d.PROCESS_CODE ='F' ) 探伤标准横id, (select max(d.lv_desc) from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND instr(d.groove_dir, '横向') > 0 AND instr(d.Groove_Pos, '外') > 0 and d.PROCESS_CODE ='F' ) 探伤标准横od, (select max(d.coverage) from CRAFT_ORD_DESIGN_STD_DIC D ---CRAFT_ORD_DESIGN_STD_DIC where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND instr(d.PHY_NAME, '分层') > 0 and d.PROCESS_CODE ='F' ) 探伤标准分层覆盖率, (select max(e.basename) from CRAFT_ORD_DESIGN_STD_DIC D, ---CRAFT_ORD_DESIGN_STD_DIC COM_BASE_INFO E where ( d.phy_code in ('P0107', 'P0469', 'P0040', 'P0149') or (d.position_desc = '全长' and d.phy_code in ('P0105', 'P0104', 'P0032'))) and D.desgin_key = C.desgin_key AND E.basecode = D.STD_DESC AND instr(d.PHY_NAME, '分层') > 0 and d.PROCESS_CODE ='F' ) 探伤标准分层, (select sc.std_min_percent || '%t' || '~' || sc.std_max_percent || '%t' from (select std_min_percent, std_max_percent, desgin_key, process_code, bias_name from Craft_Ord_Design_Std_Sic sc where 1 = 1 order by process_code desc) sc where sc.bias_name = '管端壁厚' and sc.procesS_code in ('F', 'D') and sc.std_min_percent is not null and sc.std_max_percent is not null and rownum = 1 AND sc.desgin_key = c.desgin_key and rownum = 1) 壁厚检测标准 FROM CRAFT_ORD_DESIGN C WHERE c.craft_no = ? and C.VALIDFLAG = '1' ]]> 0 THEN '404020' ELSE '404019' END)= C.BIAS_CODE AND ROWNUM =1 ) SIC FROM CRAFT_ORD_DESIGN_STD_DIC T WHERE DESGIN_KEY = (SELECT DESGIN_KEY FROM CRAFT_ORD_DESIGN WHERE ORD_LN_PK = (SELECT ORD_LN_PK FROM PLN_SALEORD WHERE ORD_LN_DLY_PK = ?) AND CRAFT_SEQ =?) AND MSC_PLINE =? ORDER BY DECODE(DIC,?,0,1) ]]> 0 THEN '404020' ELSE '404019' END)= C.BIAS_CODE AND ROWNUM =1 ) SIC FROM CRAFT_ORD_DESIGN_STD_DIC T WHERE DESGIN_KEY = ? AND DIC =? AND MSC_PLINE =? ]]>