<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="质量设计工艺">
    
	<query id="SlmOrdDesignMscCftDAL.query" desc="查询质量设计工艺">
		<![CDATA[
 SELECT 
       T.DESGIN_KEY,
       T.MSC,
       T.MSC_PLINE,
       T.BACKLOG_SEQ,
       T.PROCESS_CDOE,
       T.PROCESS_DESC,
       T.PROCESS_CDOE_C,
       T.PROCESS_DESC_C,
       T.STATION_CODE,
       T.STATION_DESC,
       T.MIN_D,
       T.MAX_D,
       T.MIN_H,
       T.MAX_H,
       T.MODEL_CODE,
       T.MODEL_DESC,
       T.SPEC_JG,
       T.SPEC_JG_DESC,
       T.GRADE_SEQ,
       T.CRAFTITEM_CDOE,
       T.CRAFTITEM_DESC,
       T.ALLOW_COUNT,
       T.MIN_VALUE,
       T.MAX_VALUE,
       T.CRAFTITEM_CDOE1,
       T.CRAFTITEM_DESC1,
       T.MIN_VALUE1,
       T.MAX_VALUE1,
       T.CRAFTITEM_CDOE2,
       T.CRAFTITEM_DESC2,
       T.MIN_VALUE2,
       T.MAX_VALUE2,
       T.CRAFTITEM_CDOE3,
       T.CRAFTITEM_DESC3,
       T.MIN_VALUE3,
       T.MAX_VALUE3,
       T.CRAFTITEM_CDOE4,
       T.CRAFTITEM_DESC4,
       T.MIN_VALUE4,
       T.MAX_VALUE4,
       T.CREATE_NAME,
       TO_CHAR(T.CREATE_TIME, 'YYYY-MM-DD HH24:MI:SS') CREATE_TIME,
       T.UPDATE_NAME,
       TO_CHAR(T.UPDATE_TIME, 'YYYY-MM-DD HH24:MI:SS') UPDATE_TIME,
       T.DELETE_NAME,
       TO_CHAR(T.DELETE_TIME, 'YYYY-MM-DD HH24:MI:SS') DELETE_TIME,
       T.VALIDFLAG,
       T.MEMO
 FROM SLM_ORD_DESIGN_MSC_CFT T
 WHERE
T.DESGIN_KEY = '#DESGIN_KEY#'
AND DECODE('#MSC_PLINE#', NULL, '1', T.MSC_PLINE) = DECODE('#MSC_PLINE#', NULL, '1', '#MSC_PLINE#')
AND DECODE('#CRAFTITEM_CDOE#', NULL, '1', T.CRAFTITEM_CDOE) = DECODE('#CRAFTITEM_CDOE#', NULL, '1', '#CRAFTITEM_CDOE#')
AND T.VALIDFLAG = '1'
		]]>
	</query>
	
	<query id="SlmOrdDesignMscCftDAL.queryCraftByDesignKey" desc="查询质量设计工艺">
		<![CDATA[
 SELECT 
       T.DESGIN_KEY,
       T.CRAFTITEM_DESC
 FROM SLM_ORD_DESIGN_MSC_CFT T
 WHERE
T.DESGIN_KEY = '#DESGIN_KEY#'
AND T.MSC_PLINE = '#MSC_PLINE#'
AND T.VALIDFLAG = '1'
		]]>
	</query>
</queryMap>