<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="">
	<query id="JdgQcmZcChemColresult.insert" desc="新增">
		<![CDATA[
  INSERT INTO QCM_ZC_CHEM_COLRESULT(
        JUDGE_ID,
        DETAIL_SEQ,
        RESULT_SEQ,
        CHEM_NAME,
        CHEM_VALUE,
        NK_MIN,
        NK_MAX,
        NK_QUALIFIED,
        JF_MIN,
        JF_MAX,
        JF_QUALIFIED,
        UNQUALIFIED_TYPE)
 VALUES( 
        '#JUDGE_ID#',
        '#DETAIL_SEQ#',
        '#RESULT_SEQ#',
        '#CHEM_NAME#',
        '#CHEM_VALUE#',
        '#NK_MIN#',
        '#NK_MAX#',
        '#NK_QUALIFIED#',
        '#JF_MIN#',
        '#JF_MAX#',
        '#JF_QUALIFIED#',
        '#UNQUALIFIED_TYPE#')
		]]>
	</query>
	
	<query id="JdgQcmZcChemColresult.getZbsByBatchNoApplyCode" desc="通过炉批+送判单号查询">
		<![CDATA[
  SELECT A.*, C.PROCESS_CODE, C.CHECK_NO SAMPLE_ID, C.SAMPLE_NO
  FROM QCM_ZC_CHEM_COLRESULT A, QCM_ZC_JUDGE B, QCM_ZC_CHEM_PHY_DETAIL C
 WHERE B.JUDGE_STOVE_NO = {0}
   AND B.BATCH_NO = {1}
   AND B.JUGDE_APPLY_CODE = {2}
   AND B.VALIDFLAG = '1'
   AND A.JUDGE_ID = B.JUDGE_ID
   AND C.JUDGE_ID = B.JUDGE_ID
   AND C.VALIDFLAG = '1'
   AND C.CRAFT_SOURCE = '0'
   AND C.ZBS_VALIDFLAG = '1'
   AND C.PROCESS_CODE = {3}
   AND A.DETAIL_SEQ = C.DETAIL_SEQ
		]]>
	</query>
	
	<query id="JdgQcmZcChemColresult.getLgZbsByJudgestoveNo" desc="通过炉批+送判单号查询">
		<![CDATA[
  SELECT A.*
  FROM QCM_LG_CHEM_RESULT A, QCM_LG_CHEMJUDGE B
 WHERE B.JUDGE_STOVE_NO = {0}
	AND A.CHEM_JUDGE_ID=B.CHEM_JUDGE_ID
   AND B.VALIDFLAG = '1'

		]]>
	</query>
</queryMap>