<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xisc.pm.infra.mapper.PmCmdLargePltMapper">


    <sql id = "BaseSql">
    PCLP.PM_CMD_LARGE_PLT_ID,
    PCLP.PONO_SLAB_NO,
    PCLP.TMP_SLAB_NO,
    PCLP.PD_BACKLOG_SEQ,
    PCLP.PD_BACKLOG_CODE,
    PCLP.PLATE_NO,
    PCLP.SLAB_NO,
    PCLP.SLAB_DIV_NO,
    PCLP.PD_STATUS_HP,
    PCLP.FORM_PLATE_MODE,
    PCLP.PICK_MODE_LEN_DIR,
    PCLP.PICK_MODE_WID_DIR,
    PCLP.FUR_TYPE,
    PCLP.AUTO_MANUAL_FLAG,
    PCLP.ORDER_REMAIN_DIV,
    PCLP.MAT_DESIGN_KIND,
    PCLP.ORDER_NUM_IN_PLATE,
    PCLP.TOT_SMALL_PLATE_NUM,
    PCLP.PROD_CODE_HP,
    PCLP.AD_TYPE_CODE,
    PCLP.AD_MODE_CODE,
    PCLP.ULT_CODE,
    PCLP.UOE_FLAG,
    PCLP.COOL_CODE,
    PCLP.CTRL_ROLL_CODE,
    PCLP.WITH_SIDE_FLAG,
    PCLP.CUT_MODE_CODE,
    PCLP.HEAD_CUT,
    PCLP.TAIL_CUT,
    PCLP.SG_SIGN,
    PCLP.ST_NO,
    PCLP.TWO_ROLL_INTERIM_FLAG,
    PCLP.ROLL_AIM_THICK,
    PCLP.ROLL_AIM_WIDTH,
    PCLP.ROLL_AIM_LEN,
    PCLP.ROLL_THICK_TOL_MAX,
    PCLP.ROLL_THICK_TOL_MIN,
    PCLP.MAX_ROLL_THICK,
    PCLP.MIN_ROLL_THICK,
    PCLP.ORDER1_THICK,
    PCLP.COMBINE_PLATE_WIDTH,
    PCLP.COMBINE_PLATE_LEN,
    PCLP.ROLL_WT_HP,
    PCLP.NORM_YIELD,
    PCLP.COMMAND_YIELD,
    PCLP.ROLL_YIELD,
    PCLP.EDGER_USE_FLAG,
    PCLP.BROAD_MAS_USE_FLAG,
    PCLP.FORM_MAS_USE_FLAG,
    PCLP.ROLL_DIRECT_CODE,
    PCLP.SAMPLE_LEN_HEAD,
    PCLP.SAMPLE_LEN_TAIL,
    PCLP.SAMPLE_LEN_MID,
    PCLP.SAMPLE_LEN_GIVE,
    PCLP.SAMPLE_LEN,
    PCLP.RS_CODE,
    PCLP.BROAD_FLAG,
    PCLP.TAPER_ROLL_THICK1,
    PCLP.TAPER_ROLL_THICK_MAX1,
    PCLP.TAPER_ROLL_THICK_MIN1,
    PCLP.TAPER_ROLL_THICK2,
    PCLP.TAPER_ROLL_THICK_MAX2,
    PCLP.TAPER_ROLL_THICK_MIN2,
    PCLP.TAPER_ROLL_THICK3,
    PCLP.TAPER_ROLL_THICK_MAX3,
    PCLP.TAPER_ROLL_THICK_MIN3,
    PCLP.TAPER_ROLL_WIDTH,
    PCLP.TAPER_ROLL_LEN1,
    PCLP.TAPER_ROLL_LEN2,
    PCLP.TAPER_ROLL_LEN3,
    PCLP.TAPER_ROLL_LEN4,
    PCLP.TAPER_ROLL_LEN5,
    PCLP.G_FLAG,
    PCLP.CS_FLAG,
    PCLP.DSS_FLAG,
    PCLP.SS_FLAG,
    PCLP.DS_FLAG,
    PCLP.FORM_PLATE_TIME,
    PCLP.OTHER_PLATE_NO1,
    PCLP.OTHER_PLATE_NO2,
    PCLP.OTHER_PLATE_NO3,
    PCLP.OTHER_PLATE_NO4,
    PCLP.PLATE_PRE_PROC1,
    PCLP.PLATE_PRE_PROC2,
    PCLP.PLATE_PRE_PROC3,
    PCLP.PLATE_PRE_PROC4,
    PCLP.PLATE_PRE_PROC5,
    PCLP.PLATE_PRE_PROC6,
    PCLP.PLATE_PRE_PROC7,
    PCLP.PLATE_PRE_PROC8,
    PCLP.PLATE_PRE_PROC9,
    PCLP.PLATE_PRE_PROC10,
    PCLP.PLATE_PRE_PROC11,
    PCLP.PLATE_PRE_PROC12,
    PCLP.PLATE_PRE_PROC13,
    PCLP.PLATE_PRE_PROC14,
    PCLP.PLATE_PRE_PROC15,
    PCLP.PLATE_PRE_PROC16,
    PCLP.PLATE_PRE_PROC17,
    PCLP.PLATE_PRE_PROC18,
    PCLP.PLATE_PRE_PROC19,
    PCLP.PLATE_PRE_PROC20,
    PCLP.PLATE_PRE_PROC21,
    PCLP.PLATE_PRE_PROC22,
    PCLP.PLATE_PRE_PROC23,
    PCLP.PLATE_PRE_PROC24,
    PCLP.PLATE_PRE_PROC25,
    PCLP.PLATE_PRE_PROC26,
    PCLP.PLATE_PRE_PROC27,
    PCLP.PLATE_PRE_PROC28,
    PCLP.PLATE_PRE_PROC29,
    PCLP.PLATE_PRE_PROC30,
    PCLP.PROD_DENSITY,
    PCLP.ROLL_PLATE_DEST,
    PCLP.PLATE_DT_CODE,
    PCLP.TRACE_CODE,
    PCLP.MIN_CR1_THICK,
    PCLP.CR1_TEMP_AIM,
    PCLP.MAX_CR1_TEMP,
    PCLP.MIN_CR1_TEMP,
    PCLP.MIN_PRESS_BEFCR1,
    PCLP.MIN_CR2_THICK,
    PCLP.CR2_TEMP_AIM,
    PCLP.MIN_CR2_TEMP,
    PCLP.MAX_CR2_TEMP,
    PCLP.MIN_PRESS_BEFCR2,
    PCLP.AFFT_TEMP_AIM,
    PCLP.MAX_AFFT_TEMP,
    PCLP.MIN_AFFT_TEMP,
    PCLP.MIN_PRESS_LAST,
    PCLP.MIDDLE_COOL_MODE,
    PCLP.MAX_MIDDLE_COOL_SPEED,
    PCLP.MAX_ACC_WAIT_TIME,
    PCLP.MIN_ACC_WAIT_TIME,
    PCLP.FAST_BG_TEMP_AIM,
    PCLP.MAX_FAST_BG_TEMP,
    PCLP.MIN_FAST_BG_TEMP,
    PCLP.FAST_SP_AIM,
    PCLP.MAX_FAST_SP,
    PCLP.MIN_FAST_SP,
    PCLP.FAST_END_TEMP_AIM,
    PCLP.MAX_FAST_END_TEMP,
    PCLP.MIN_FAST_END_TEMP,
    PCLP.SLOW1_T_BG_TEMP_AIM,
    PCLP.MAX_SLOW1_BG_TEMP,
    PCLP.MIN_SLOW1_BG_TEMP,
    PCLP.SLOW1_SP_AIM,
    PCLP.MAX_SLOW1_SP,
    PCLP.MIN_SLOW1_SP,
    PCLP.SLOW1_END_TEMP_AIM,
    PCLP.MAX_SLOW1_END_TEMP,
    PCLP.MIN_SLOW1_END_TEMP,
    PCLP.SLOW2_T_BG_TEMP_AIM,
    PCLP.MAX_SLOW2_BG_TEMP,
    PCLP.MIN_SLOW2_BG_TEMP,
    PCLP.SLOW2_SP_AIM,
    PCLP.MAX_SLOW2_SP,
    PCLP.MIN_SLOW2_SP,
    PCLP.SLOW2_END_TEMP_AIM,
    PCLP.MAX_SLOW2_END_TEMP,
    PCLP.MIN_SLOW2_END_TEMP,
    PCLP.STAND_FLAG,
    PCLP.EXPAND_QUOT,
    PCLP.PLATE_CONVEX_AIM,
    PCLP.HOT_RECTIFY_FLAG,
    PCLP.HOT_RECTIFY_METHOD_CODE,
    PCLP.TS_MAX,
    PCLP.TS_MIN,
    PCLP.PRESS_APPOINT,
    PCLP.FINISH_PLAN_DATE,
    PCLP.SHP_CODE,
    PCLP.ROLL_PLAN_TYPE,
    PCLP.ULT_DETECT_METHOD_CODE,
    PCLP.SAMPLE_HEAD_LEN_FREE,
    PCLP.SAMPLE_TAIL_LEN_FREE,
    PCLP.SAMPLE_HEAD_LEN_PLATE,
    PCLP.SAMPLE_TAIL_LEN_PLATE,
    PCLP.SAMPLE_HEAD_LEN_MB,
    PCLP.SAMPLE_TAIL_LEN_MB,
    PCLP.ACC_TEMP_START,
    PCLP.ACC_TEMP_END,
    PCLP.ACC_COLD_V,
    PCLP.LOAD_FUR_TEMP,
    PCLP.HEAT_TEMP,
    PCLP.FIRST_THICK,
    PCLP.FIRST_BG_TEMP,
    PCLP.FIRST_END_TEMP,
    PCLP.SCD_THICK,
    PCLP.SCD_BG_TEMP,
    PCLP.SCD_END_TEMP,
    PCLP.MSC_LINE_NO,
    PCLP.TAPER_ROLL_THICK4,
    PCLP.TAPER_ROLL_THICK_MAX4,
    PCLP.TAPER_ROLL_THICK_MIN4,
    PCLP.TAPER_ROLL_THICK5,
    PCLP.TAPER_ROLL_THICK_MAX5,
    PCLP.TAPER_ROLL_THICK_MIN5,
    PCLP.TAPER_ROLL_THICK6,
    PCLP.TAPER_ROLL_THICK_MAX6,
    PCLP.TAPER_ROLL_THICK_MIN6,
    PCLP.TAPER_ROLL_THICK7,
    PCLP.TAPER_ROLL_THICK_MAX7,
    PCLP.TAPER_ROLL_THICK_MIN7,
    PCLP.TAPER_ROLL_LEN6,
    PCLP.TAPER_ROLL_LEN7,
    PCLP.TENANT_ID,
    PCLP.ATTRIBUTE1,
    PCLP.ATTRIBUTE2,
    PCLP.ATTRIBUTE3,
    PCLP.ATTRIBUTE4,
    PCLP.ATTRIBUTE5,
    PCLP.IS_MERGE,
    PCLP.REPLACE_FLAG,
    PCLP.ROLL_MODE,
    PCLP.creation_date,    PCLP.created_by,    PCLP.last_updated_by,    PCLP.last_update_date,    PCLP.object_version_number
    </sql>

    <select id = "selectList" resultType = "com.xisc.pm.domain.entity.PmCmdLargePlt">
        select
        <include refid = "BaseSql"/>
        from PM_CMD_LARGE_PLT PCLP
        <where>
            <if test="pmCmdLargePltId !=null">
                and PCLP.PM_CMD_LARGE_PLT_ID = #{pmCmdLargePltId,jdbcType = INTEGER}
            </if>
            <if test="ponoSlabNoFrom !=null">
                and (PCLP.PONO_SLAB_NO <![CDATA[ >= ]]> #{ponoSlabNoFrom} or PCLP.PONO_SLAB_NO like CONCAT(#{ponoSlabNoFrom}, '%'))
            </if>
            <if test="ponoSlabNoTo !=null">
                and (PCLP.PONO_SLAB_NO <![CDATA[ <= ]]> #{ponoSlabNoTo} or PCLP.PONO_SLAB_NO like CONCAT(#{ponoSlabNoTo}, '%'))
            </if>
            <if test="creationDateFrom !=null">
                and PCLP.creation_date <![CDATA[ >= ]]> #{creationDateFrom}
            </if>
            <if test="creationDateTo !=null">
                and PCLP.creation_date <![CDATA[ <= ]]> #{creationDateTo}
            </if>
            <if test="ponoSlabNo !=null">
                and PCLP.PONO_SLAB_NO = #{ponoSlabNo,jdbcType = VARCHAR}
            </if>
            <if test="tmpSlabNo !=null">
                and PCLP.TMP_SLAB_NO = #{tmpSlabNo,jdbcType = VARCHAR}
            </if>
            <if test="pdBacklogSeq !=null">
                and PCLP.PD_BACKLOG_SEQ = #{pdBacklogSeq,jdbcType = INTEGER}
            </if>
            <if test="pdBacklogCode !=null">
                and PCLP.PD_BACKLOG_CODE = #{pdBacklogCode,jdbcType = VARCHAR}
            </if>
            <if test="plateNo !=null">
                and PCLP.PLATE_NO = #{plateNo,jdbcType = VARCHAR}
            </if>
            <if test="slabNo !=null">
                and PCLP.SLAB_NO = #{slabNo,jdbcType = VARCHAR}
            </if>
            <if test="slabDivNo !=null">
                and PCLP.SLAB_DIV_NO = #{slabDivNo,jdbcType = INTEGER}
            </if>
            <if test="pdStatusHp !=null">
                and PCLP.PD_STATUS_HP = #{pdStatusHp,jdbcType = VARCHAR}
            </if>
            <if test="formPlateMode !=null">
                and PCLP.FORM_PLATE_MODE = #{formPlateMode,jdbcType = VARCHAR}
            </if>
            <if test="pickModeLenDir !=null">
                and PCLP.PICK_MODE_LEN_DIR = #{pickModeLenDir,jdbcType = INTEGER}
            </if>
            <if test="pickModeWidDir !=null">
                and PCLP.PICK_MODE_WID_DIR = #{pickModeWidDir,jdbcType = INTEGER}
            </if>
            <if test="furType !=null">
                and PCLP.FUR_TYPE = #{furType,jdbcType = VARCHAR}
            </if>
            <if test="autoManualFlag !=null">
                and PCLP.AUTO_MANUAL_FLAG = #{autoManualFlag,jdbcType = VARCHAR}
            </if>
            <if test="orderRemainDiv !=null">
                and PCLP.ORDER_REMAIN_DIV = #{orderRemainDiv,jdbcType = VARCHAR}
            </if>
            <if test="matDesignKind !=null">
                and PCLP.MAT_DESIGN_KIND = #{matDesignKind,jdbcType = VARCHAR}
            </if>
            <if test="orderNumInPlate !=null">
                and PCLP.ORDER_NUM_IN_PLATE = #{orderNumInPlate,jdbcType = INTEGER}
            </if>
            <if test="totSmallPlateNum !=null">
                and PCLP.TOT_SMALL_PLATE_NUM = #{totSmallPlateNum,jdbcType = INTEGER}
            </if>
            <if test="prodCodeHp !=null">
                and PCLP.PROD_CODE_HP = #{prodCodeHp,jdbcType = VARCHAR}
            </if>
            <if test="adTypeCode !=null">
                and PCLP.AD_TYPE_CODE = #{adTypeCode,jdbcType = VARCHAR}
            </if>
            <if test="adModeCode !=null">
                and PCLP.AD_MODE_CODE = #{adModeCode,jdbcType = VARCHAR}
            </if>
            <if test="ultCode !=null">
                and PCLP.ULT_CODE = #{ultCode,jdbcType = VARCHAR}
            </if>
            <if test="uoeFlag !=null">
                and PCLP.UOE_FLAG = #{uoeFlag,jdbcType = VARCHAR}
            </if>
            <if test="coolCode !=null">
                and PCLP.COOL_CODE = #{coolCode,jdbcType = VARCHAR}
            </if>
            <if test="ctrlRollCode !=null">
                and PCLP.CTRL_ROLL_CODE = #{ctrlRollCode,jdbcType = VARCHAR}
            </if>
            <if test="withSideFlag !=null">
                and PCLP.WITH_SIDE_FLAG = #{withSideFlag,jdbcType = VARCHAR}
            </if>
            <if test="cutModeCode !=null">
                and PCLP.CUT_MODE_CODE = #{cutModeCode,jdbcType = VARCHAR}
            </if>
            <if test="headCut !=null">
                and PCLP.HEAD_CUT = #{headCut,jdbcType = INTEGER}
            </if>
            <if test="tailCut !=null">
                and PCLP.TAIL_CUT = #{tailCut,jdbcType = INTEGER}
            </if>
            <if test="sgSign !=null">
                and PCLP.SG_SIGN = #{sgSign,jdbcType = VARCHAR}
            </if>
            <if test="stNo !=null">
                and PCLP.ST_NO = #{stNo,jdbcType = VARCHAR}
            </if>
            <if test="twoRollInterimFlag !=null">
                and PCLP.TWO_ROLL_INTERIM_FLAG = #{twoRollInterimFlag,jdbcType = VARCHAR}
            </if>
            <if test="rollAimThick !=null">
                and PCLP.ROLL_AIM_THICK = #{rollAimThick,jdbcType = INTEGER}
            </if>
            <if test="rollAimWidth !=null">
                and PCLP.ROLL_AIM_WIDTH = #{rollAimWidth,jdbcType = INTEGER}
            </if>
            <if test="rollAimLen !=null">
                and PCLP.ROLL_AIM_LEN = #{rollAimLen,jdbcType = INTEGER}
            </if>
            <if test="rollThickTolMax !=null">
                and PCLP.ROLL_THICK_TOL_MAX = #{rollThickTolMax,jdbcType = INTEGER}
            </if>
            <if test="rollThickTolMin !=null">
                and PCLP.ROLL_THICK_TOL_MIN = #{rollThickTolMin,jdbcType = INTEGER}
            </if>
            <if test="maxRollThick !=null">
                and PCLP.MAX_ROLL_THICK = #{maxRollThick,jdbcType = INTEGER}
            </if>
            <if test="minRollThick !=null">
                and PCLP.MIN_ROLL_THICK = #{minRollThick,jdbcType = INTEGER}
            </if>
            <if test="order1Thick !=null">
                and PCLP.ORDER1_THICK = #{order1Thick,jdbcType = INTEGER}
            </if>
            <if test="combinePlateWidth !=null">
                and PCLP.COMBINE_PLATE_WIDTH = #{combinePlateWidth,jdbcType = INTEGER}
            </if>
            <if test="combinePlateLen !=null">
                and PCLP.COMBINE_PLATE_LEN = #{combinePlateLen,jdbcType = INTEGER}
            </if>
            <if test="rollWtHp !=null">
                and PCLP.ROLL_WT_HP = #{rollWtHp,jdbcType = INTEGER}
            </if>
            <if test="normYield !=null">
                and PCLP.NORM_YIELD = #{normYield,jdbcType = INTEGER}
            </if>
            <if test="commandYield !=null">
                and PCLP.COMMAND_YIELD = #{commandYield,jdbcType = INTEGER}
            </if>
            <if test="rollYield !=null">
                and PCLP.ROLL_YIELD = #{rollYield,jdbcType = INTEGER}
            </if>
            <if test="edgerUseFlag !=null">
                and PCLP.EDGER_USE_FLAG = #{edgerUseFlag,jdbcType = VARCHAR}
            </if>
            <if test="broadMasUseFlag !=null">
                and PCLP.BROAD_MAS_USE_FLAG = #{broadMasUseFlag,jdbcType = VARCHAR}
            </if>
            <if test="formMasUseFlag !=null">
                and PCLP.FORM_MAS_USE_FLAG = #{formMasUseFlag,jdbcType = VARCHAR}
            </if>
            <if test="rollDirectCode !=null">
                and PCLP.ROLL_DIRECT_CODE = #{rollDirectCode,jdbcType = VARCHAR}
            </if>
            <if test="sampleLenHead !=null">
                and PCLP.SAMPLE_LEN_HEAD = #{sampleLenHead,jdbcType = INTEGER}
            </if>
            <if test="sampleLenTail !=null">
                and PCLP.SAMPLE_LEN_TAIL = #{sampleLenTail,jdbcType = INTEGER}
            </if>
            <if test="sampleLenMid !=null">
                and PCLP.SAMPLE_LEN_MID = #{sampleLenMid,jdbcType = INTEGER}
            </if>
            <if test="sampleLenGive !=null">
                and PCLP.SAMPLE_LEN_GIVE = #{sampleLenGive,jdbcType = INTEGER}
            </if>
            <if test="sampleLen !=null">
                and PCLP.SAMPLE_LEN = #{sampleLen,jdbcType = INTEGER}
            </if>
            <if test="rsCode !=null">
                and PCLP.RS_CODE = #{rsCode,jdbcType = VARCHAR}
            </if>
            <if test="broadFlag !=null">
                and PCLP.BROAD_FLAG = #{broadFlag,jdbcType = VARCHAR}
            </if>
            <if test="taperRollThick1 !=null">
                and PCLP.TAPER_ROLL_THICK1 = #{taperRollThick1,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax1 !=null">
                and PCLP.TAPER_ROLL_THICK_MAX1 = #{taperRollThickMax1,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin1 !=null">
                and PCLP.TAPER_ROLL_THICK_MIN1 = #{taperRollThickMin1,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick2 !=null">
                and PCLP.TAPER_ROLL_THICK2 = #{taperRollThick2,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax2 !=null">
                and PCLP.TAPER_ROLL_THICK_MAX2 = #{taperRollThickMax2,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin2 !=null">
                and PCLP.TAPER_ROLL_THICK_MIN2 = #{taperRollThickMin2,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick3 !=null">
                and PCLP.TAPER_ROLL_THICK3 = #{taperRollThick3,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax3 !=null">
                and PCLP.TAPER_ROLL_THICK_MAX3 = #{taperRollThickMax3,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin3 !=null">
                and PCLP.TAPER_ROLL_THICK_MIN3 = #{taperRollThickMin3,jdbcType = INTEGER}
            </if>
            <if test="taperRollWidth !=null">
                and PCLP.TAPER_ROLL_WIDTH = #{taperRollWidth,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen1 !=null">
                and PCLP.TAPER_ROLL_LEN1 = #{taperRollLen1,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen2 !=null">
                and PCLP.TAPER_ROLL_LEN2 = #{taperRollLen2,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen3 !=null">
                and PCLP.TAPER_ROLL_LEN3 = #{taperRollLen3,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen4 !=null">
                and PCLP.TAPER_ROLL_LEN4 = #{taperRollLen4,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen5 !=null">
                and PCLP.TAPER_ROLL_LEN5 = #{taperRollLen5,jdbcType = INTEGER}
            </if>
            <if test="gFlag !=null">
                and PCLP.G_FLAG = #{gFlag,jdbcType = VARCHAR}
            </if>
            <if test="csFlag !=null">
                and PCLP.CS_FLAG = #{csFlag,jdbcType = VARCHAR}
            </if>
            <if test="dssFlag !=null">
                and PCLP.DSS_FLAG = #{dssFlag,jdbcType = VARCHAR}
            </if>
            <if test="ssFlag !=null">
                and PCLP.SS_FLAG = #{ssFlag,jdbcType = VARCHAR}
            </if>
            <if test="dsFlag !=null">
                and PCLP.DS_FLAG = #{dsFlag,jdbcType = VARCHAR}
            </if>
            <if test="formPlateTime !=null">
                and PCLP.FORM_PLATE_TIME = #{formPlateTime,jdbcType = OTHER}
            </if>
            <if test="otherPlateNo1 !=null">
                and PCLP.OTHER_PLATE_NO1 = #{otherPlateNo1,jdbcType = VARCHAR}
            </if>
            <if test="otherPlateNo2 !=null">
                and PCLP.OTHER_PLATE_NO2 = #{otherPlateNo2,jdbcType = VARCHAR}
            </if>
            <if test="otherPlateNo3 !=null">
                and PCLP.OTHER_PLATE_NO3 = #{otherPlateNo3,jdbcType = VARCHAR}
            </if>
            <if test="otherPlateNo4 !=null">
                and PCLP.OTHER_PLATE_NO4 = #{otherPlateNo4,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc1 !=null">
                and PCLP.PLATE_PRE_PROC1 = #{platePreProc1,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc2 !=null">
                and PCLP.PLATE_PRE_PROC2 = #{platePreProc2,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc3 !=null">
                and PCLP.PLATE_PRE_PROC3 = #{platePreProc3,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc4 !=null">
                and PCLP.PLATE_PRE_PROC4 = #{platePreProc4,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc5 !=null">
                and PCLP.PLATE_PRE_PROC5 = #{platePreProc5,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc6 !=null">
                and PCLP.PLATE_PRE_PROC6 = #{platePreProc6,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc7 !=null">
                and PCLP.PLATE_PRE_PROC7 = #{platePreProc7,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc8 !=null">
                and PCLP.PLATE_PRE_PROC8 = #{platePreProc8,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc9 !=null">
                and PCLP.PLATE_PRE_PROC9 = #{platePreProc9,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc10 !=null">
                and PCLP.PLATE_PRE_PROC10 = #{platePreProc10,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc11 !=null">
                and PCLP.PLATE_PRE_PROC11 = #{platePreProc11,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc12 !=null">
                and PCLP.PLATE_PRE_PROC12 = #{platePreProc12,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc13 !=null">
                and PCLP.PLATE_PRE_PROC13 = #{platePreProc13,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc14 !=null">
                and PCLP.PLATE_PRE_PROC14 = #{platePreProc14,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc15 !=null">
                and PCLP.PLATE_PRE_PROC15 = #{platePreProc15,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc16 !=null">
                and PCLP.PLATE_PRE_PROC16 = #{platePreProc16,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc17 !=null">
                and PCLP.PLATE_PRE_PROC17 = #{platePreProc17,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc18 !=null">
                and PCLP.PLATE_PRE_PROC18 = #{platePreProc18,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc19 !=null">
                and PCLP.PLATE_PRE_PROC19 = #{platePreProc19,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc20 !=null">
                and PCLP.PLATE_PRE_PROC20 = #{platePreProc20,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc21 !=null">
                and PCLP.PLATE_PRE_PROC21 = #{platePreProc21,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc22 !=null">
                and PCLP.PLATE_PRE_PROC22 = #{platePreProc22,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc23 !=null">
                and PCLP.PLATE_PRE_PROC23 = #{platePreProc23,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc24 !=null">
                and PCLP.PLATE_PRE_PROC24 = #{platePreProc24,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc25 !=null">
                and PCLP.PLATE_PRE_PROC25 = #{platePreProc25,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc26 !=null">
                and PCLP.PLATE_PRE_PROC26 = #{platePreProc26,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc27 !=null">
                and PCLP.PLATE_PRE_PROC27 = #{platePreProc27,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc28 !=null">
                and PCLP.PLATE_PRE_PROC28 = #{platePreProc28,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc29 !=null">
                and PCLP.PLATE_PRE_PROC29 = #{platePreProc29,jdbcType = VARCHAR}
            </if>
            <if test="platePreProc30 !=null">
                and PCLP.PLATE_PRE_PROC30 = #{platePreProc30,jdbcType = VARCHAR}
            </if>
            <if test="prodDensity !=null">
                and PCLP.PROD_DENSITY = #{prodDensity,jdbcType = INTEGER}
            </if>
            <if test="rollPlateDest !=null">
                and PCLP.ROLL_PLATE_DEST = #{rollPlateDest,jdbcType = VARCHAR}
            </if>
            <if test="plateDtCode !=null">
                and PCLP.PLATE_DT_CODE = #{plateDtCode,jdbcType = VARCHAR}
            </if>
            <if test="traceCode !=null">
                and PCLP.TRACE_CODE = #{traceCode,jdbcType = VARCHAR}
            </if>
            <if test="minCr1Thick !=null">
                and PCLP.MIN_CR1_THICK = #{minCr1Thick,jdbcType = INTEGER}
            </if>
            <if test="cr1TempAim !=null">
                and PCLP.CR1_TEMP_AIM = #{cr1TempAim,jdbcType = INTEGER}
            </if>
            <if test="maxCr1Temp !=null">
                and PCLP.MAX_CR1_TEMP = #{maxCr1Temp,jdbcType = INTEGER}
            </if>
            <if test="minCr1Temp !=null">
                and PCLP.MIN_CR1_TEMP = #{minCr1Temp,jdbcType = INTEGER}
            </if>
            <if test="minPressBefcr1 !=null">
                and PCLP.MIN_PRESS_BEFCR1 = #{minPressBefcr1,jdbcType = INTEGER}
            </if>
            <if test="minCr2Thick !=null">
                and PCLP.MIN_CR2_THICK = #{minCr2Thick,jdbcType = INTEGER}
            </if>
            <if test="cr2TempAim !=null">
                and PCLP.CR2_TEMP_AIM = #{cr2TempAim,jdbcType = INTEGER}
            </if>
            <if test="minCr2Temp !=null">
                and PCLP.MIN_CR2_TEMP = #{minCr2Temp,jdbcType = INTEGER}
            </if>
            <if test="maxCr2Temp !=null">
                and PCLP.MAX_CR2_TEMP = #{maxCr2Temp,jdbcType = INTEGER}
            </if>
            <if test="minPressBefcr2 !=null">
                and PCLP.MIN_PRESS_BEFCR2 = #{minPressBefcr2,jdbcType = INTEGER}
            </if>
            <if test="afftTempAim !=null">
                and PCLP.AFFT_TEMP_AIM = #{afftTempAim,jdbcType = INTEGER}
            </if>
            <if test="maxAfftTemp !=null">
                and PCLP.MAX_AFFT_TEMP = #{maxAfftTemp,jdbcType = INTEGER}
            </if>
            <if test="minAfftTemp !=null">
                and PCLP.MIN_AFFT_TEMP = #{minAfftTemp,jdbcType = INTEGER}
            </if>
            <if test="minPressLast !=null">
                and PCLP.MIN_PRESS_LAST = #{minPressLast,jdbcType = INTEGER}
            </if>
            <if test="middleCoolMode !=null">
                and PCLP.MIDDLE_COOL_MODE = #{middleCoolMode,jdbcType = VARCHAR}
            </if>
            <if test="maxMiddleCoolSpeed !=null">
                and PCLP.MAX_MIDDLE_COOL_SPEED = #{maxMiddleCoolSpeed,jdbcType = INTEGER}
            </if>
            <if test="maxAccWaitTime !=null">
                and PCLP.MAX_ACC_WAIT_TIME = #{maxAccWaitTime,jdbcType = INTEGER}
            </if>
            <if test="minAccWaitTime !=null">
                and PCLP.MIN_ACC_WAIT_TIME = #{minAccWaitTime,jdbcType = INTEGER}
            </if>
            <if test="fastBgTempAim !=null">
                and PCLP.FAST_BG_TEMP_AIM = #{fastBgTempAim,jdbcType = INTEGER}
            </if>
            <if test="maxFastBgTemp !=null">
                and PCLP.MAX_FAST_BG_TEMP = #{maxFastBgTemp,jdbcType = INTEGER}
            </if>
            <if test="minFastBgTemp !=null">
                and PCLP.MIN_FAST_BG_TEMP = #{minFastBgTemp,jdbcType = INTEGER}
            </if>
            <if test="fastSpAim !=null">
                and PCLP.FAST_SP_AIM = #{fastSpAim,jdbcType = INTEGER}
            </if>
            <if test="maxFastSp !=null">
                and PCLP.MAX_FAST_SP = #{maxFastSp,jdbcType = INTEGER}
            </if>
            <if test="minFastSp !=null">
                and PCLP.MIN_FAST_SP = #{minFastSp,jdbcType = INTEGER}
            </if>
            <if test="fastEndTempAim !=null">
                and PCLP.FAST_END_TEMP_AIM = #{fastEndTempAim,jdbcType = INTEGER}
            </if>
            <if test="maxFastEndTemp !=null">
                and PCLP.MAX_FAST_END_TEMP = #{maxFastEndTemp,jdbcType = INTEGER}
            </if>
            <if test="minFastEndTemp !=null">
                and PCLP.MIN_FAST_END_TEMP = #{minFastEndTemp,jdbcType = INTEGER}
            </if>
            <if test="slow1TBgTempAim !=null">
                and PCLP.SLOW1_T_BG_TEMP_AIM = #{slow1TBgTempAim,jdbcType = INTEGER}
            </if>
            <if test="maxSlow1BgTemp !=null">
                and PCLP.MAX_SLOW1_BG_TEMP = #{maxSlow1BgTemp,jdbcType = INTEGER}
            </if>
            <if test="minSlow1BgTemp !=null">
                and PCLP.MIN_SLOW1_BG_TEMP = #{minSlow1BgTemp,jdbcType = INTEGER}
            </if>
            <if test="slow1SpAim !=null">
                and PCLP.SLOW1_SP_AIM = #{slow1SpAim,jdbcType = INTEGER}
            </if>
            <if test="maxSlow1Sp !=null">
                and PCLP.MAX_SLOW1_SP = #{maxSlow1Sp,jdbcType = INTEGER}
            </if>
            <if test="minSlow1Sp !=null">
                and PCLP.MIN_SLOW1_SP = #{minSlow1Sp,jdbcType = INTEGER}
            </if>
            <if test="slow1EndTempAim !=null">
                and PCLP.SLOW1_END_TEMP_AIM = #{slow1EndTempAim,jdbcType = INTEGER}
            </if>
            <if test="maxSlow1EndTemp !=null">
                and PCLP.MAX_SLOW1_END_TEMP = #{maxSlow1EndTemp,jdbcType = INTEGER}
            </if>
            <if test="minSlow1EndTemp !=null">
                and PCLP.MIN_SLOW1_END_TEMP = #{minSlow1EndTemp,jdbcType = INTEGER}
            </if>
            <if test="slow2TBgTempAim !=null">
                and PCLP.SLOW2_T_BG_TEMP_AIM = #{slow2TBgTempAim,jdbcType = INTEGER}
            </if>
            <if test="maxSlow2BgTemp !=null">
                and PCLP.MAX_SLOW2_BG_TEMP = #{maxSlow2BgTemp,jdbcType = INTEGER}
            </if>
            <if test="minSlow2BgTemp !=null">
                and PCLP.MIN_SLOW2_BG_TEMP = #{minSlow2BgTemp,jdbcType = INTEGER}
            </if>
            <if test="slow2SpAim !=null">
                and PCLP.SLOW2_SP_AIM = #{slow2SpAim,jdbcType = INTEGER}
            </if>
            <if test="maxSlow2Sp !=null">
                and PCLP.MAX_SLOW2_SP = #{maxSlow2Sp,jdbcType = INTEGER}
            </if>
            <if test="minSlow2Sp !=null">
                and PCLP.MIN_SLOW2_SP = #{minSlow2Sp,jdbcType = INTEGER}
            </if>
            <if test="slow2EndTempAim !=null">
                and PCLP.SLOW2_END_TEMP_AIM = #{slow2EndTempAim,jdbcType = INTEGER}
            </if>
            <if test="maxSlow2EndTemp !=null">
                and PCLP.MAX_SLOW2_END_TEMP = #{maxSlow2EndTemp,jdbcType = INTEGER}
            </if>
            <if test="minSlow2EndTemp !=null">
                and PCLP.MIN_SLOW2_END_TEMP = #{minSlow2EndTemp,jdbcType = INTEGER}
            </if>
            <if test="standFlag !=null">
                and PCLP.STAND_FLAG = #{standFlag,jdbcType = VARCHAR}
            </if>
            <if test="expandQuot !=null">
                and PCLP.EXPAND_QUOT = #{expandQuot,jdbcType = INTEGER}
            </if>
            <if test="plateConvexAim !=null">
                and PCLP.PLATE_CONVEX_AIM = #{plateConvexAim,jdbcType = INTEGER}
            </if>
            <if test="hotRectifyFlag !=null">
                and PCLP.HOT_RECTIFY_FLAG = #{hotRectifyFlag,jdbcType = VARCHAR}
            </if>
            <if test="hotRectifyMethodCode !=null">
                and PCLP.HOT_RECTIFY_METHOD_CODE = #{hotRectifyMethodCode,jdbcType = VARCHAR}
            </if>
            <if test="tsMax !=null">
                and PCLP.TS_MAX = #{tsMax,jdbcType = INTEGER}
            </if>
            <if test="tsMin !=null">
                and PCLP.TS_MIN = #{tsMin,jdbcType = INTEGER}
            </if>
            <if test="pressAppoint !=null">
                and PCLP.PRESS_APPOINT = #{pressAppoint,jdbcType = VARCHAR}
            </if>
            <if test="finishPlanDate !=null">
                and PCLP.FINISH_PLAN_DATE = #{finishPlanDate,jdbcType = OTHER}
            </if>
            <if test="shpCode !=null">
                and PCLP.SHP_CODE = #{shpCode,jdbcType = VARCHAR}
            </if>
            <if test="rollPlanType !=null">
                and PCLP.ROLL_PLAN_TYPE = #{rollPlanType,jdbcType = VARCHAR}
            </if>
            <if test="ultDetectMethodCode !=null">
                and PCLP.ULT_DETECT_METHOD_CODE = #{ultDetectMethodCode,jdbcType = VARCHAR}
            </if>
            <if test="sampleHeadLenFree !=null">
                and PCLP.SAMPLE_HEAD_LEN_FREE = #{sampleHeadLenFree,jdbcType = INTEGER}
            </if>
            <if test="sampleTailLenFree !=null">
                and PCLP.SAMPLE_TAIL_LEN_FREE = #{sampleTailLenFree,jdbcType = INTEGER}
            </if>
            <if test="sampleHeadLenPlate !=null">
                and PCLP.SAMPLE_HEAD_LEN_PLATE = #{sampleHeadLenPlate,jdbcType = INTEGER}
            </if>
            <if test="sampleTailLenPlate !=null">
                and PCLP.SAMPLE_TAIL_LEN_PLATE = #{sampleTailLenPlate,jdbcType = INTEGER}
            </if>
            <if test="sampleHeadLenMb !=null">
                and PCLP.SAMPLE_HEAD_LEN_MB = #{sampleHeadLenMb,jdbcType = INTEGER}
            </if>
            <if test="sampleTailLenMb !=null">
                and PCLP.SAMPLE_TAIL_LEN_MB = #{sampleTailLenMb,jdbcType = INTEGER}
            </if>
            <if test="accTempStart !=null">
                and PCLP.ACC_TEMP_START = #{accTempStart,jdbcType = INTEGER}
            </if>
            <if test="accTempEnd !=null">
                and PCLP.ACC_TEMP_END = #{accTempEnd,jdbcType = INTEGER}
            </if>
            <if test="accColdV !=null">
                and PCLP.ACC_COLD_V = #{accColdV,jdbcType = INTEGER}
            </if>
            <if test="loadFurTemp !=null">
                and PCLP.LOAD_FUR_TEMP = #{loadFurTemp,jdbcType = INTEGER}
            </if>
            <if test="heatTemp !=null">
                and PCLP.HEAT_TEMP = #{heatTemp,jdbcType = INTEGER}
            </if>
            <if test="firstThick !=null">
                and PCLP.FIRST_THICK = #{firstThick,jdbcType = INTEGER}
            </if>
            <if test="firstBgTemp !=null">
                and PCLP.FIRST_BG_TEMP = #{firstBgTemp,jdbcType = INTEGER}
            </if>
            <if test="firstEndTemp !=null">
                and PCLP.FIRST_END_TEMP = #{firstEndTemp,jdbcType = INTEGER}
            </if>
            <if test="scdThick !=null">
                and PCLP.SCD_THICK = #{scdThick,jdbcType = INTEGER}
            </if>
            <if test="scdBgTemp !=null">
                and PCLP.SCD_BG_TEMP = #{scdBgTemp,jdbcType = INTEGER}
            </if>
            <if test="scdEndTemp !=null">
                and PCLP.SCD_END_TEMP = #{scdEndTemp,jdbcType = INTEGER}
            </if>
            <if test="mscLineNo !=null">
                and PCLP.MSC_LINE_NO = #{mscLineNo,jdbcType = VARCHAR}
            </if>
            <if test="taperRollThick4 !=null">
                and PCLP.TAPER_ROLL_THICK4 = #{taperRollThick4,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax4 !=null">
                and PCLP.TAPER_ROLL_THICK_MAX4 = #{taperRollThickMax4,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin4 !=null">
                and PCLP.TAPER_ROLL_THICK_MIN4 = #{taperRollThickMin4,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick5 !=null">
                and PCLP.TAPER_ROLL_THICK5 = #{taperRollThick5,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax5 !=null">
                and PCLP.TAPER_ROLL_THICK_MAX5 = #{taperRollThickMax5,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin5 !=null">
                and PCLP.TAPER_ROLL_THICK_MIN5 = #{taperRollThickMin5,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick6 !=null">
                and PCLP.TAPER_ROLL_THICK6 = #{taperRollThick6,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax6 !=null">
                and PCLP.TAPER_ROLL_THICK_MAX6 = #{taperRollThickMax6,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin6 !=null">
                and PCLP.TAPER_ROLL_THICK_MIN6 = #{taperRollThickMin6,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick7 !=null">
                and PCLP.TAPER_ROLL_THICK7 = #{taperRollThick7,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax7 !=null">
                and PCLP.TAPER_ROLL_THICK_MAX7 = #{taperRollThickMax7,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin7 !=null">
                and PCLP.TAPER_ROLL_THICK_MIN7 = #{taperRollThickMin7,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen6 !=null">
                and PCLP.TAPER_ROLL_LEN6 = #{taperRollLen6,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen7 !=null">
                and PCLP.TAPER_ROLL_LEN7 = #{taperRollLen7,jdbcType = INTEGER}
            </if>
            <if test="tenantId !=null">
                and PCLP.TENANT_ID = #{tenantId,jdbcType = INTEGER}
            </if>
            <if test="attribute1 !=null">
                and PCLP.ATTRIBUTE1 = #{attribute1,jdbcType = VARCHAR}
            </if>
            <if test="attribute2 !=null">
                and PCLP.ATTRIBUTE2 = #{attribute2,jdbcType = VARCHAR}
            </if>
            <if test="attribute3 !=null">
                and PCLP.ATTRIBUTE3 = #{attribute3,jdbcType = VARCHAR}
            </if>
            <if test="attribute4 !=null">
                and PCLP.ATTRIBUTE4 = #{attribute4,jdbcType = VARCHAR}
            </if>
            <if test="attribute5 !=null">
                and PCLP.ATTRIBUTE5 = #{attribute5,jdbcType = VARCHAR}
            </if>
        </where>
        ORDER BY nvl(PCLP.PONO_SLAB_NO, '0') DESC
    </select>
</mapper>

