<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="">
	<query id="JdgPlnZyZgM.queryIsLoad" desc="查询是否上料">
        <![CDATA[
SELECT T.IS_LOAD FROM PLN_ZY_ZG_m T WHERE T.JUDGE_STOVE_NO = {0}
        ]]>
    </query>
    
    <query id="JdgPlnZyZgM.queryIsLoadNew" desc="查询是否上料">
        <![CDATA[
	SELECT MAX(T1.IS_LOAD)IS_LOAD FROM PLN_ZY_ZG_M T1, PLN_ZY_ZG_C T2 
WHERE T1.HEAT_PLAN_NO=T2.HEAT_PLAN_NO AND T2.JUDGE_STOVE_NO={0} AND T2.JUGDE_APPLY_CODE={1}
        ]]>
    </query>
    
    <query id="JdgPlnZyZgM.queryByJudgeStoveNo" desc="查询轧管炉计划">
        <![CDATA[
SELECT T.*
  FROM PLN_ZY_ZG_M T
 WHERE T.FEED_HEAT_NO = {0}
   AND ROWNUM <= 1
        ]]>
    </query>
    <query id="JdgPlnZyZgM.queryByPk" desc="查询轧管炉计划">
        <![CDATA[
SELECT T.*
  FROM PLN_ZY_ZG_M T
 WHERE T.HEAT_PLAN_NO = {0}
        ]]>
    </query>

    <query id="JdgPlnZyZgM.queryUpperByPk" desc="查询炉计划">
        <![CDATA[
SELECT T.UPPER_HEATPLAN_ID, T.UPPER_PROCESS_CODE FROM PLN_ZY_ZG_M T WHERE T.HEAT_PLAN_NO = {0}
        ]]>
    </query>
</queryMap>