<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="公共计划查询">
	<query id="PlanService.HeatTreatme.GetSingleRclPlan" desc="热处理计划简单查询">
        <![CDATA[
         SELECT T.RCLBATCH_ID, T.HEATNO, T.ROLLBATCH_ID, T.PLANSTATUS,T.PLINE_CODE
		   FROM PLN_ZY_RCL_M T
		  WHERE T.PLAN_TIME BETWEEN TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS') AND
		        TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS')
		    AND T.HEATNO || '&' LIKE '%' || ? || '%'
		    AND T.ROLLBATCH_ID || '&' LIKE '%' || ? || '%'
        ]]>
	</query>
	
	<query id="PlanService.HeatTreatme.GetRclPlan" desc="热处理作业计划查询">
        <![CDATA[
         select T.PLINE_CODE,T.PLINE_NAME,T.HEATNO,T.ROLLBATCH_ID,T.PLAN_TIME,
				T.PLAN_USETIME,T.INWL_ID,T.IN_NUM,T.IN_WEIGHT,T.LENGTHMAX,T.LENGTHMIN
			from PLN_ZY_RCL_M T
			where T.RCLBATCH_ID=?
        ]]>
	</query>
	
	<query id="PlanService.HeatTreatme.GetSingleRclPlanAll" desc="热处理计划查询">
        <![CDATA[
         select T.RCLBATCH_ID,T.PLINE_CODE,T.PLINE_NAME,T.TASK_SEQ_NO,
				T.RCLPLAN_ID,T.STEELCODE,T.STEELNAME,T.OUTDIAMETER,T.WALLTHICK,
				T.AIMWALLTHICK,T.LENGTHMAX,T.LENGTHMIN,T.LENGTHDISC,T.AIMLENGTH,
				T.BATCHWEIGHT,T.BATCHNUM,T.HEATNO,T.INWL_ID,T.IN_WEIGHT,T.IN_NUM,
				T.RCLBATCH_ID,T.PLAN_TIME,T.PLAN_USETIME,T.PLANSTATUS,T.FINISHWEIGHT,
				T.CREATE_NAME,T.CREATE_TIME,T.UPDATE_NAME,T.UPDATE_TIME
			from PLN_ZY_RCL_M T
			where T.PLAN_TIME BETWEEN TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS') AND
		        TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS')
		    AND T.HEATNO || '&' LIKE '%' || ? || '%'
		    AND T.ROLLBATCH_ID || '&' LIKE '%' || ? || '%'
        ]]>
	</query>
	
	<query id="PlanService.CutPlan.GetSingleJGCutPlan" desc="接箍切断计划简单查询">
        <![CDATA[
         SELECT T.COUPCUT_BATCH_ID, T.BATCH_NO, T.JUDGE_STOVE_NO,T.PLANSTATUS, T.PLINE_CODE, T.PLINE_NAME
		   FROM PLN_ZY_JG_CUT T
		  WHERE T.PLAN_TIME BETWEEN TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS') AND
		        TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS')
		    AND T.JUDGE_STOVE_NO || '&' LIKE '%' || ? || '%'
		    AND T.BATCH_NO || '&' LIKE '%' || ? || '%' 
        ]]>
	</query>
	
	<query id="PlanService.CutPlan.GetJGCutPlan" desc="接箍切断计划详细查询">
        <![CDATA[
        SELECT T.PLINE_CODE,T.PLINE_NAME,T.JUDGE_STOVE_NO,T.BATCH_NO,
				T.PLAN_TIME,T.PLAN_USETIME,T.GROUP_CUT,
				T.WL_ID_IN,T.JGBL_NUM,T.JGBL_WEIGHT
				FROM PLN_ZY_JG_CUT T
		  WHERE T.COUPCUT_BATCH_ID =?
		    
        ]]>
	</query>
	
	<query id="PlanService.ProcessPlan.SingleJGProcessPlan" desc="接箍加工计划简单查询">
        <![CDATA[
         SELECT T.COUPCUT_BATCH_ID,T.LOT_NO,T.HEAT_NO,T.BATCH_NO,T.PLANSTATUS,T.PLINE_CODE
		   FROM PLN_ZY_JG_PROCESS T
		  WHERE T.PLAN_TIME BETWEEN TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS') AND
		        TO_DATE(?, 'YYYY-MM-DD HH24:MI:SS')
		    AND T.LOT_NO || '&' LIKE '%' || ? || '%'
		    AND T.HEAT_NO || '&' LIKE '%' || ? || '%'
		    AND T.BATCH_NO || '&' LIKE '%' || ? || '%'
        ]]>
	</query>
	
	<query id="PlanService.ProcessPlan.JGProcessPlan" desc="接箍加工计划详细查询">
        <![CDATA[
         SELECT T.PLINE_CODE,T.LOT_NO,T.HEAT_NO,T.BATCH_NO,T.IF_MONITOR_JG,
				T.PLAN_TIME,T.PLAN_USETIME
		   FROM PLN_ZY_JG_PROCESS T
		  WHERE T.COUPCUT_BATCH_ID=?
        ]]>
	</query>
	
	
</queryMap>