<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="质量设计成分">
	<query id="SlmOrdDesignStdCicDAL.query" desc="查询质量设计成分">
		<![CDATA[
 SELECT 
       T.DESGIN_KEY,
       T.CIC,
       T.USE_CODE,
       T.USE_DESC,
       T.SPECL_FL,
       T.INDEX_SEQ,
       T.CHEM_CODE,
       T.CHEM_NAME,
       T.CHEM_TYPE,
       T.CHEM_FORMULA,
       T.ISCHECK,
       DECODE(T.ISCHECK, '1', '是', '否') ISCHECK_DESC,
       T.ISJUDGE,
       DECODE(T.ISJUDGE, '1', '是', '否') ISJUDGE_DESC,
       T.ISQUOTE,
       DECODE(T.ISQUOTE, '1', '是', '否') ISQUOTE_DESC,
       T.COMPLEX_TYPE,
       T.STDMIN_SIGN,
       T.STDMIN,
       T.STDMAX_SIGN,
       T.STDMAX,
       T.STDTARGET,
       T.MODEL_CODE,
       T.MODEL_DESC,
       T.STDMEMO,
       T.ELE_CODE,
       T.ELE_NAME,
       T.ELE_MIN_SIGN,
       T.ELE_MIN,
       T.ELE_MAX_SIGN,
       T.ELE_MAX,
       T.SIZE_CODE2,
       T.SIZE_NAME2,
       T.SIZE_MIN_SIGN2,
       T.SIZE_MIN2,
       T.SIZE_MAX_SIGN2,
       T.SIZE_MAX2,
       T.SIZE_CODE,
       T.SIZE_NAME,
       T.SIZE_MIN_SIGN,
       T.SIZE_MIN,
       T.SIZE_MAX_SIGN,
       T.SIZE_MAX,
       T.SPEC_JG,
       T.SPEC_JG_DESC,
       T.VALIDFLAG,
       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.REP_CODE,
       T.REP_NAME,
       T.REP_MIN_SIGN,
       T.REP_MIN,
       T.REP_MAX_SIGN,
       T.REP_MAX,
       T.REP_VAL
 FROM SLM_ORD_DESIGN_STD_CIC T
 WHERE
T.DESGIN_KEY = '#DESGIN_KEY#'
AND INSTR('#CIC#', T.CIC) > 0
AND T.VALIDFLAG = '1'
		]]>
	</query>
	
	<query id="SlmOrdDesignStdCicDAL.queryCicByDesignKey" desc="查询质量设计成分">
		<![CDATA[
 SELECT 
       T.DESGIN_KEY,
       T.CIC
 FROM SLM_ORD_DESIGN_STD_CIC T
 WHERE
T.DESGIN_KEY = '#DESGIN_KEY#'
AND INSTR('#CIC#', T.CIC) > 0
AND T.VALIDFLAG = '1'
		]]>
	</query>
</queryMap>