<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="PORT_HTT_BATCH_SAMPLE_RESULT （生成工具：代码生成工具4.0   访问地址：http://172.16.2.128/tool/）">
    <query id="PortHttBatchSampleResultDAL.Query" desc="查询">
        <![CDATA[
 SELECT 
       T.HEAT_PLAN_NO,
       T.MAT_NO,
       T.M_MAT_NO,
       T.M_M_MAT_NO,
       T.LOT_NO,
       T.LOT_NO_SQE,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.JUDGE_STOVE_NO,
       T.BATCH_NO,
       T.GROUP_NO,
       T.STOVE_NO,
       T.FLAG_STOVE_NO,
       T.ACT_DIMATER,
       T.ACT_HEIGHT,
       T.ACT_LEN,
       T.ACT_LEN_MIN,
       T.ACT_LEN_MAX,
       T.ACT_COUNT,
       T.ACT_WEIGHT,
       T.ACT_THEORY_WEIGHT,
       T.IS_SAMPLE_PIPE,
       T.SAMPLE_PIPE_LEN,
       T.GET_SAMPLE_SHIFT,
       T.GET_SAMPLE_CLASS,
       T.GET_SAMPLE_NAME,
       TO_CHAR(T.GET_SAMPLE_TIME, 'YYYY-MM-DD HH24:MI:SS') GET_SAMPLE_TIME,
       T.OLD_JUDGE_STOVE_NO,
       T.GROUP_FLAG,
       T.OP_PROCESS,
       T.MAT_STATUS,
       T.LEVE_LOG,
       T.INSTORE_FLAG,
       T.VM_INSTORE_FLAG,
       T.PRC_TECHNOLOGY_PATH,
       T.RETURN_PROCESS,
       T.PHY_BATCH_NO,
       T.PRO_YEAR_MONTH_DAY,
       T.BAL_YEAR_MONTH,
       T.JUGDE_APPLY_CODE,
       T.JUGDE_APPLY,
       T.PRO_USER,
       T.PRO_SHIFT,
       T.PRO_GROUP,
       TO_CHAR(T.PRO_TIME, 'YYYY-MM-DD HH24:MI:SS') PRO_TIME,
       T.REMARK,
       T.SAMPLE_PIPE_LEN_A,
       T.SAMPLE_PIPE_LEN_B,
       T.CHEM_RESULT_CODE,
       T.PHY_RESULT_CODE
 FROM PORT_HTT_BATCH_SAMPLE_RESULT T
 WHERE 1 = 1
        ]]>
    </query>
    <query id="PortHttBatchSampleResultDAL.QueryByPk" desc="通过主键查询">
        <![CDATA[
 SELECT 
       T.HEAT_PLAN_NO,
       T.MAT_NO,
       T.M_MAT_NO,
       T.M_M_MAT_NO,
       T.LOT_NO,
       T.LOT_NO_SQE,
       T.PLINE_CODE,
       T.PLINE_NAME,
       T.JUDGE_STOVE_NO,
       T.BATCH_NO,
       T.GROUP_NO,
       T.STOVE_NO,
       T.FLAG_STOVE_NO,
       T.ACT_DIMATER,
       T.ACT_HEIGHT,
       T.ACT_LEN,
       T.ACT_LEN_MIN,
       T.ACT_LEN_MAX,
       T.ACT_COUNT,
       T.ACT_WEIGHT,
       T.ACT_THEORY_WEIGHT,
       T.IS_SAMPLE_PIPE,
       T.SAMPLE_PIPE_LEN,
       T.GET_SAMPLE_SHIFT,
       T.GET_SAMPLE_CLASS,
       T.GET_SAMPLE_NAME,
       TO_CHAR(T.GET_SAMPLE_TIME, 'YYYY-MM-DD HH24:MI:SS') GET_SAMPLE_TIME,
       T.OLD_JUDGE_STOVE_NO,
       T.GROUP_FLAG,
       T.OP_PROCESS,
       T.MAT_STATUS,
       T.LEVE_LOG,
       T.INSTORE_FLAG,
       T.VM_INSTORE_FLAG,
       T.PRC_TECHNOLOGY_PATH,
       T.RETURN_PROCESS,
       T.PHY_BATCH_NO,
       T.PRO_YEAR_MONTH_DAY,
       T.BAL_YEAR_MONTH,
       T.JUGDE_APPLY_CODE,
       T.JUGDE_APPLY,
       T.PRO_USER,
       T.PRO_SHIFT,
       T.PRO_GROUP,
       TO_CHAR(T.PRO_TIME, 'YYYY-MM-DD HH24:MI:SS') PRO_TIME,
       T.REMARK,
       T.SAMPLE_PIPE_LEN_A,
       T.SAMPLE_PIPE_LEN_B,
       T.CHEM_RESULT_CODE,
       T.PHY_RESULT_CODE
 FROM PORT_HTT_BATCH_SAMPLE_RESULT T
 WHERE
       T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#'
       AND T.MAT_NO = '#MAT_NO#'
        ]]>
    </query>
    <query id="PortHttBatchSampleResultDAL.Insert" desc="新增">
        <![CDATA[
 INSERT INTO PORT_HTT_BATCH_SAMPLE_RESULT(
        HEAT_PLAN_NO,
        MAT_NO,
        M_MAT_NO,
        M_M_MAT_NO,
        LOT_NO,
        LOT_NO_SQE,
        PLINE_CODE,
        PLINE_NAME,
        JUDGE_STOVE_NO,
        BATCH_NO,
        GROUP_NO,
        STOVE_NO,
        FLAG_STOVE_NO,
        ACT_DIMATER,
        ACT_HEIGHT,
        ACT_LEN,
        ACT_LEN_MIN,
        ACT_LEN_MAX,
        ACT_COUNT,
        ACT_WEIGHT,
        ACT_THEORY_WEIGHT,
        IS_SAMPLE_PIPE,
        SAMPLE_PIPE_LEN,
        GET_SAMPLE_SHIFT,
        GET_SAMPLE_CLASS,
        GET_SAMPLE_NAME,
        GET_SAMPLE_TIME,
        OLD_JUDGE_STOVE_NO,
        GROUP_FLAG,
        OP_PROCESS,
        MAT_STATUS,
        LEVE_LOG,
        INSTORE_FLAG,
        VM_INSTORE_FLAG,
        PRC_TECHNOLOGY_PATH,
        RETURN_PROCESS,
        PHY_BATCH_NO,
        PRO_YEAR_MONTH_DAY,
        BAL_YEAR_MONTH,
        JUGDE_APPLY_CODE,
        JUGDE_APPLY,
        PRO_USER,
        PRO_SHIFT,
        PRO_GROUP,
        PRO_TIME,
        REMARK,
        SAMPLE_PIPE_LEN_A,
        SAMPLE_PIPE_LEN_B,
        CHEM_RESULT_CODE,
        PHY_RESULT_CODE)
 VALUES( 
        '#HEAT_PLAN_NO#',
        '#MAT_NO#',
        '#M_MAT_NO#',
        '#M_M_MAT_NO#',
        '#LOT_NO#',
        '#LOT_NO_SQE#',
        '#PLINE_CODE#',
        '#PLINE_NAME#',
        '#JUDGE_STOVE_NO#',
        '#BATCH_NO#',
        '#GROUP_NO#',
        '#STOVE_NO#',
        '#FLAG_STOVE_NO#',
        '#ACT_DIMATER#',
        '#ACT_HEIGHT#',
        '#ACT_LEN#',
        '#ACT_LEN_MIN#',
        '#ACT_LEN_MAX#',
        '#ACT_COUNT#',
        '#ACT_WEIGHT#',
        '#ACT_THEORY_WEIGHT#',
        '#IS_SAMPLE_PIPE#',
        '#SAMPLE_PIPE_LEN#',
        '#GET_SAMPLE_SHIFT#',
        '#GET_SAMPLE_CLASS#',
        '#GET_SAMPLE_NAME#',
        SYSDATE,
        '#OLD_JUDGE_STOVE_NO#',
        '#GROUP_FLAG#',
        '#OP_PROCESS#',
        '#MAT_STATUS#',
        '#LEVE_LOG#',
        '#INSTORE_FLAG#',
        '#VM_INSTORE_FLAG#',
        '#PRC_TECHNOLOGY_PATH#',
        '#RETURN_PROCESS#',
        '#PHY_BATCH_NO#',
        '#PRO_YEAR_MONTH_DAY#',
        '#BAL_YEAR_MONTH#',
        '#JUGDE_APPLY_CODE#',
        '#JUGDE_APPLY#',
        '#PRO_USER#',
        '#PRO_SHIFT#',
        '#PRO_GROUP#',
        SYSDATE,
        '#REMARK#',
        '#SAMPLE_PIPE_LEN_A#',
        '#SAMPLE_PIPE_LEN_B#',
        '#CHEM_RESULT_CODE#',
        '#PHY_RESULT_CODE#')
        ]]>
    </query>
    <query id="PortHttBatchSampleResultDAL.Update" desc="修改">
        <![CDATA[
 UPDATE PORT_HTT_BATCH_SAMPLE_RESULT T
   SET 
        T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#',
        T.MAT_NO = '#MAT_NO#',
        T.M_MAT_NO = '#M_MAT_NO#',
        T.M_M_MAT_NO = '#M_M_MAT_NO#',
        T.LOT_NO = '#LOT_NO#',
        T.LOT_NO_SQE = '#LOT_NO_SQE#',
        T.PLINE_CODE = '#PLINE_CODE#',
        T.PLINE_NAME = '#PLINE_NAME#',
        T.JUDGE_STOVE_NO = '#JUDGE_STOVE_NO#',
        T.BATCH_NO = '#BATCH_NO#',
        T.GROUP_NO = '#GROUP_NO#',
        T.STOVE_NO = '#STOVE_NO#',
        T.FLAG_STOVE_NO = '#FLAG_STOVE_NO#',
        T.ACT_DIMATER = '#ACT_DIMATER#',
        T.ACT_HEIGHT = '#ACT_HEIGHT#',
        T.ACT_LEN = '#ACT_LEN#',
        T.ACT_LEN_MIN = '#ACT_LEN_MIN#',
        T.ACT_LEN_MAX = '#ACT_LEN_MAX#',
        T.ACT_COUNT = '#ACT_COUNT#',
        T.ACT_WEIGHT = '#ACT_WEIGHT#',
        T.ACT_THEORY_WEIGHT = '#ACT_THEORY_WEIGHT#',
        T.IS_SAMPLE_PIPE = '#IS_SAMPLE_PIPE#',
        T.SAMPLE_PIPE_LEN = '#SAMPLE_PIPE_LEN#',
        T.GET_SAMPLE_SHIFT = '#GET_SAMPLE_SHIFT#',
        T.GET_SAMPLE_CLASS = '#GET_SAMPLE_CLASS#',
        T.GET_SAMPLE_NAME = '#GET_SAMPLE_NAME#',
        T.GET_SAMPLE_TIME = SYSDATE,
        T.OLD_JUDGE_STOVE_NO = '#OLD_JUDGE_STOVE_NO#',
        T.GROUP_FLAG = '#GROUP_FLAG#',
        T.OP_PROCESS = '#OP_PROCESS#',
        T.MAT_STATUS = '#MAT_STATUS#',
        T.LEVE_LOG = '#LEVE_LOG#',
        T.INSTORE_FLAG = '#INSTORE_FLAG#',
        T.VM_INSTORE_FLAG = '#VM_INSTORE_FLAG#',
        T.PRC_TECHNOLOGY_PATH = '#PRC_TECHNOLOGY_PATH#',
        T.RETURN_PROCESS = '#RETURN_PROCESS#',
        T.PHY_BATCH_NO = '#PHY_BATCH_NO#',
        T.PRO_YEAR_MONTH_DAY = '#PRO_YEAR_MONTH_DAY#',
        T.BAL_YEAR_MONTH = '#BAL_YEAR_MONTH#',
        T.JUGDE_APPLY_CODE = '#JUGDE_APPLY_CODE#',
        T.JUGDE_APPLY = '#JUGDE_APPLY#',
        T.PRO_USER = '#PRO_USER#',
        T.PRO_SHIFT = '#PRO_SHIFT#',
        T.PRO_GROUP = '#PRO_GROUP#',
        T.PRO_TIME = SYSDATE,
        T.REMARK = '#REMARK#',
        T.SAMPLE_PIPE_LEN_A = '#SAMPLE_PIPE_LEN_A#',
        T.SAMPLE_PIPE_LEN_B = '#SAMPLE_PIPE_LEN_B#',
        T.CHEM_RESULT_CODE = '#CHEM_RESULT_CODE#',
        T.PHY_RESULT_CODE = '#PHY_RESULT_CODE#'
 WHERE
       T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#'
       AND T.MAT_NO = '#MAT_NO#'
        ]]>
    </query>
    <query id="PortHttBatchSampleResultDAL.GetMaxPk" desc="获取最大主键">
        <![CDATA[
SELECT NVL(MAX(HEAT_PLAN_NO), 0) + 1 MAX_VALUE FROM PORT_HTT_BATCH_SAMPLE_RESULT T
        ]]>
    </query>
    <query id="PortHttBatchSampleResultDAL.Delete" desc="作废">
        <![CDATA[
UPDATE PORT_HTT_BATCH_SAMPLE_RESULT T
   SET
       T.VALIDFLAG = '0',
       T.DELETE_NAME = '#DELETE_NAME#',
       T.DELETE_TIME = SYSDATE
WHERE
       T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#'
       AND T.MAT_NO = '#MAT_NO#'
        ]]>
    </query>
    <query id="PortHttBatchSampleResultDAL.Resume" desc="恢复">
        <![CDATA[
UPDATE PORT_HTT_BATCH_SAMPLE_RESULT T
   SET
       T.VALIDFLAG = '1',
       T.DELETE_NAME = NULL,
       T.DELETE_TIME = NULL,
       T.UPDATE_NAME = '#UPDATE_NAME#',
       T.UPDATE_TIME = SYSDATE
WHERE
       T.HEAT_PLAN_NO = '#HEAT_PLAN_NO#'
       AND T.MAT_NO = '#MAT_NO#'
        ]]>
    </query>
</queryMap>