<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc = "工艺流动卡">
<query id = "FrmProcessFlowCard.queryMinResult" desc = "查询">
<![CDATA[
SELECT REGEXP_REPLACE(T.JUDGE_STOVE_NO, '-.*', '') JUDGE_STOVE_NO,
       T.LOT_NO,
       T.CONTRACT_NO,
       T.PLINE_CODE,
       (SELECT B.PLINE_NAME
          FROM COM_BASE_PLINE B
         WHERE B.PLINE_CODE = T.PLINE_CODE
           AND B.VALIDFLAG = '1') PLINE_NAME,
       T.VARIETIES,
       T.PIPE_SIZE,
       T.GRADENAME,
       T.STEELNAME,
       T.ROLL_STANDRAD,
       T.LOT_SEQ_PATH CARD_PATH
  FROM MIL_PLAN T
  WHERE 1=1 
  AND T.LOT_NO  || '&' LIKE ('%' || ? || '%')
  AND REGEXP_REPLACE(T.JUDGE_STOVE_NO, '-.*', '') || '&' LIKE ('%' || ? || '%')
]]>
</query>

    <query id = "FrmProcessFlowCard.DoUpdateFilePath" desc = "修改">
        <![CDATA[
            UPDATE MIL_PLAN SET LOT_SEQ_PATH = ?  WHERE REGEXP_REPLACE(JUDGE_STOVE_NO, '-.*', '') = ?
        ]]>
    </query>
</queryMap>