<?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.PmPdSlabMapper">


    <sql id = "BaseSql">
    PPS.PD_SLAB_ID,
    PPS.VIRTUAL_SLAB_NO,
    PPS.OU_BACKLOG_SEQ,
    PPS.OU_BACKLOG_CODE,
    PPS.MAT_DESIGN_KIND,
    PPS.SLAB_NO,
    PPS.PONO,
    PPS.SLAB_DIV_NO,
    PPS.OU_STATUS_HP,
    PPS.OU_RESP,
    PPS.FORM_PLATE_MODE,
    PPS.PICK_MODE_LEN_DIR,
    PPS.PICK_MODE_WID_DIR,
    PPS.FUR_TYPE,
    PPS.AUTO_MANUAL_FLAG,
    PPS.ORDER_REMAIN_DIV,
    PPS.CAN_DEL_FLAG,
    PPS.ORDER_NUM_IN_PLATE,
    PPS.TOT_SMALL_PLATE_NUM,
    PPS.AD_TYPE_CODE,
    PPS.AD_MODE_CODE,
    PPS.ULT_CODE,
    PPS.UOE_FLAG,
    PPS.COOL_CODE,
    PPS.CTRL_ROLL_CODE,
    PPS.WITH_SIDE_FLAG,
    PPS.CUT_MODE_CODE,
    PPS.HEAD_CUT,
    PPS.TAIL_CUT,
    PPS.URG_ORDER_FLAG,
    PPS.SG_SIGN,
    PPS.ST_NO,
    PPS.ST_NO1,
    PPS.ST_NO2,
    PPS.ST_NO3,
    PPS.ST_NO4,
    PPS.ST_NO5,
    PPS.ST_NO6,
    PPS.ST_NO7,
    PPS.ST_NO8,
    PPS.ST_NO9,
    PPS.OUT_SG_NO,
    PPS.SG_DECIDE_TIME,
    PPS.TWO_ROLL_MARK,
    PPS.PRE_CLEAN_SLAB_THICK,
    PPS.PRE_CLEAN_SLAB_WIDTH,
    PPS.PRE_CLEAN_SLAB_LEN,
    PPS.PRE_CLEAN_SLAB_MAX_LEN,
    PPS.PRE_CLEAN_SLAB_MIN_LEN,
    PPS.PRE_CLEAN_SLAB_WT,
    PPS.PRE_CLEAN_SLAB_MAX_WT,
    PPS.PRE_CLEAN_SLAB_MIN_WT,
    PPS.INFUR_SLAB_THICK,
    PPS.INFUR_SLAB_WID,
    PPS.INFUR_SLAB_LEN,
    PPS.INFUR_SLAB_MAX_LEN,
    PPS.INFUR_SLAB_MIN_LEN,
    PPS.INFUR_SLAB_WT,
    PPS.INFUR_SLAB_MAX_WT,
    PPS.INFUR_SLAB_MIN_WT,
    PPS.NEED_SLAB_LEN,
    PPS.NEED_SLAB_WT,
    PPS.FIX_SLAB_LEN_FLAG,
    PPS.FIX_SLAB_LEN,
    PPS.SLAB_CLEAN_WT_LOSS_RATE_ST,
    PPS.SLAB_CLEAN_WT_LOSS_RATE_FR,
    PPS.HP_FLAME_CLEAN_DIV,
    PPS.SLAB_FINISH_CODE,
    PPS.SLAB_PLACE_CODE,
    PPS.ROLL_AIM_THICK,
    PPS.ROLL_AIM_WIDTH,
    PPS.ROLL_AIM_LEN,
    PPS.ORDER_THICK_AXIS,
    PPS.COMBINE_PLATE_WIDTH,
    PPS.COMBINE_PLATE_LEN,
    PPS.ROLL_WT_HP,
    PPS.ROLL_THICK_TOL_MAX,
    PPS.ROLL_THICK_TOL_MIN,
    PPS.NORM_YIELD,
    PPS.COMMAND_YIELD,
    PPS.ROLL_YIELD,
    PPS.EDGER_USE_FLAG,
    PPS.BROAD_MAS_USE_FLAG,
    PPS.FORM_MAS_USE_FLAG,
    PPS.ROLL_DIRECT_CODE,
    PPS.SAMPLE_LEN_HEAD,
    PPS.SAMPLE_LEN_TAIL,
    PPS.SAMPLE_LEN_MID,
    PPS.RS_CODE,
    PPS.BROAD_FLAG,
    PPS.TAPER_ROLL_THICK1,
    PPS.TAPER_ROLL_THICK_MAX1,
    PPS.TAPER_ROLL_THICK_MIN1,
    PPS.TAPER_ROLL_THICK2,
    PPS.TAPER_ROLL_THICK_MAX2,
    PPS.TAPER_ROLL_THICK_MIN2,
    PPS.TAPER_ROLL_THICK3,
    PPS.TAPER_ROLL_THICK_MAX3,
    PPS.TAPER_ROLL_THICK_MIN3,
    PPS.TAPER_ROLL_WIDTH,
    PPS.TAPER_ROLL_LEN1,
    PPS.TAPER_ROLL_LEN2,
    PPS.TAPER_ROLL_LEN3,
    PPS.TAPER_ROLL_LEN4,
    PPS.TAPER_ROLL_LEN5,
    PPS.LAST_SLAB_FLAG,
    PPS.ADD_SLAB_FLAG,
    PPS.SHP_CODE,
    PPS.ULT_DETECT_METHOD_CODE,
    PPS.TAPER_ROLL_THICK4,
    PPS.TAPER_ROLL_THICK_MAX4,
    PPS.TAPER_ROLL_THICK_MIN4,
    PPS.TAPER_ROLL_THICK5,
    PPS.TAPER_ROLL_THICK_MAX5,
    PPS.TAPER_ROLL_THICK_MIN5,
    PPS.TAPER_ROLL_THICK6,
    PPS.TAPER_ROLL_THICK_MAX6,
    PPS.TAPER_ROLL_THICK_MIN6,
    PPS.TAPER_ROLL_THICK7,
    PPS.TAPER_ROLL_THICK_MAX7,
    PPS.TAPER_ROLL_THICK_MIN7,
    PPS.TAPER_ROLL_LEN6,
    PPS.TAPER_ROLL_LEN7,
    PPS.TRANS_FLAG,
    PPS.TENANT_ID,
    PPS.ATTRIBUTE1,
    PPS.ATTRIBUTE2,
    PPS.ATTRIBUTE3,
    PPS.ATTRIBUTE4,
    PPS.ATTRIBUTE5,
    PPS.creation_date,    PPS.created_by,    PPS.last_updated_by,    PPS.last_update_date,    PPS.object_version_number
    </sql>

    <select id = "selectList" resultType = "com.xisc.pm.domain.entity.PmPdSlab">
        select
        <include refid = "BaseSql"/>
        from PM_PD_SLAB PPS
        <where>
            <if test="pdSlabId !=null">
                and PPS.PD_SLAB_ID = #{pdSlabId,jdbcType = INTEGER}
            </if>
            <if test="virtualSlabNo !=null">
                and PPS.VIRTUAL_SLAB_NO = #{virtualSlabNo,jdbcType = VARCHAR}
            </if>
            <if test="ouBacklogSeq !=null">
                and PPS.OU_BACKLOG_SEQ = #{ouBacklogSeq,jdbcType = INTEGER}
            </if>
            <if test="ouBacklogCode !=null">
                and PPS.OU_BACKLOG_CODE = #{ouBacklogCode,jdbcType = VARCHAR}
            </if>
            <if test="matDesignKind !=null">
                and PPS.MAT_DESIGN_KIND = #{matDesignKind,jdbcType = VARCHAR}
            </if>
            <if test="slabNo !=null">
                and PPS.SLAB_NO = #{slabNo,jdbcType = VARCHAR}
            </if>
            <if test="pono !=null">
                and PPS.PONO = #{pono,jdbcType = VARCHAR}
            </if>
            <if test="slabDivNo !=null">
                and PPS.SLAB_DIV_NO = #{slabDivNo,jdbcType = INTEGER}
            </if>
            <if test="ouStatusHp !=null">
                and PPS.OU_STATUS_HP = #{ouStatusHp,jdbcType = VARCHAR}
            </if>
            <if test="ouResp !=null">
                and PPS.OU_RESP = #{ouResp,jdbcType = VARCHAR}
            </if>
            <if test="formPlateMode !=null">
                and PPS.FORM_PLATE_MODE = #{formPlateMode,jdbcType = VARCHAR}
            </if>
            <if test="pickModeLenDir !=null">
                and PPS.PICK_MODE_LEN_DIR = #{pickModeLenDir,jdbcType = INTEGER}
            </if>
            <if test="pickModeWidDir !=null">
                and PPS.PICK_MODE_WID_DIR = #{pickModeWidDir,jdbcType = INTEGER}
            </if>
            <if test="furType !=null">
                and PPS.FUR_TYPE = #{furType,jdbcType = VARCHAR}
            </if>
            <if test="autoManualFlag !=null">
                and PPS.AUTO_MANUAL_FLAG = #{autoManualFlag,jdbcType = VARCHAR}
            </if>
            <if test="orderRemainDiv !=null">
                and PPS.ORDER_REMAIN_DIV = #{orderRemainDiv,jdbcType = VARCHAR}
            </if>
            <if test="canDelFlag !=null">
                and PPS.CAN_DEL_FLAG = #{canDelFlag,jdbcType = VARCHAR}
            </if>
            <if test="orderNumInPlate !=null">
                and PPS.ORDER_NUM_IN_PLATE = #{orderNumInPlate,jdbcType = INTEGER}
            </if>
            <if test="totSmallPlateNum !=null">
                and PPS.TOT_SMALL_PLATE_NUM = #{totSmallPlateNum,jdbcType = INTEGER}
            </if>
            <if test="adTypeCode !=null">
                and PPS.AD_TYPE_CODE = #{adTypeCode,jdbcType = VARCHAR}
            </if>
            <if test="adModeCode !=null">
                and PPS.AD_MODE_CODE = #{adModeCode,jdbcType = VARCHAR}
            </if>
            <if test="ultCode !=null">
                and PPS.ULT_CODE = #{ultCode,jdbcType = VARCHAR}
            </if>
            <if test="uoeFlag !=null">
                and PPS.UOE_FLAG = #{uoeFlag,jdbcType = VARCHAR}
            </if>
            <if test="coolCode !=null">
                and PPS.COOL_CODE = #{coolCode,jdbcType = VARCHAR}
            </if>
            <if test="ctrlRollCode !=null">
                and PPS.CTRL_ROLL_CODE = #{ctrlRollCode,jdbcType = VARCHAR}
            </if>
            <if test="withSideFlag !=null">
                and PPS.WITH_SIDE_FLAG = #{withSideFlag,jdbcType = VARCHAR}
            </if>
            <if test="cutModeCode !=null">
                and PPS.CUT_MODE_CODE = #{cutModeCode,jdbcType = VARCHAR}
            </if>
            <if test="headCut !=null">
                and PPS.HEAD_CUT = #{headCut,jdbcType = INTEGER}
            </if>
            <if test="tailCut !=null">
                and PPS.TAIL_CUT = #{tailCut,jdbcType = INTEGER}
            </if>
            <if test="urgOrderFlag !=null">
                and PPS.URG_ORDER_FLAG = #{urgOrderFlag,jdbcType = VARCHAR}
            </if>
            <if test="sgSign !=null">
                and PPS.SG_SIGN = #{sgSign,jdbcType = VARCHAR}
            </if>
            <if test="stNo !=null">
                and PPS.ST_NO = #{stNo,jdbcType = VARCHAR}
            </if>
            <if test="stNo1 !=null">
                and PPS.ST_NO1 = #{stNo1,jdbcType = VARCHAR}
            </if>
            <if test="stNo2 !=null">
                and PPS.ST_NO2 = #{stNo2,jdbcType = VARCHAR}
            </if>
            <if test="stNo3 !=null">
                and PPS.ST_NO3 = #{stNo3,jdbcType = VARCHAR}
            </if>
            <if test="stNo4 !=null">
                and PPS.ST_NO4 = #{stNo4,jdbcType = VARCHAR}
            </if>
            <if test="stNo5 !=null">
                and PPS.ST_NO5 = #{stNo5,jdbcType = VARCHAR}
            </if>
            <if test="stNo6 !=null">
                and PPS.ST_NO6 = #{stNo6,jdbcType = VARCHAR}
            </if>
            <if test="stNo7 !=null">
                and PPS.ST_NO7 = #{stNo7,jdbcType = VARCHAR}
            </if>
            <if test="stNo8 !=null">
                and PPS.ST_NO8 = #{stNo8,jdbcType = VARCHAR}
            </if>
            <if test="stNo9 !=null">
                and PPS.ST_NO9 = #{stNo9,jdbcType = VARCHAR}
            </if>
            <if test="outSgNo !=null">
                and PPS.OUT_SG_NO = #{outSgNo,jdbcType = VARCHAR}
            </if>
            <if test="sgDecideTime !=null">
                and PPS.SG_DECIDE_TIME = #{sgDecideTime,jdbcType = VARCHAR}
            </if>
            <if test="twoRollMark !=null">
                and PPS.TWO_ROLL_MARK = #{twoRollMark,jdbcType = VARCHAR}
            </if>
            <if test="preCleanSlabThick !=null">
                and PPS.PRE_CLEAN_SLAB_THICK = #{preCleanSlabThick,jdbcType = INTEGER}
            </if>
            <if test="preCleanSlabWidth !=null">
                and PPS.PRE_CLEAN_SLAB_WIDTH = #{preCleanSlabWidth,jdbcType = INTEGER}
            </if>
            <if test="preCleanSlabLen !=null">
                and PPS.PRE_CLEAN_SLAB_LEN = #{preCleanSlabLen,jdbcType = INTEGER}
            </if>
            <if test="preCleanSlabMaxLen !=null">
                and PPS.PRE_CLEAN_SLAB_MAX_LEN = #{preCleanSlabMaxLen,jdbcType = INTEGER}
            </if>
            <if test="preCleanSlabMinLen !=null">
                and PPS.PRE_CLEAN_SLAB_MIN_LEN = #{preCleanSlabMinLen,jdbcType = INTEGER}
            </if>
            <if test="preCleanSlabWt !=null">
                and PPS.PRE_CLEAN_SLAB_WT = #{preCleanSlabWt,jdbcType = INTEGER}
            </if>
            <if test="preCleanSlabMaxWt !=null">
                and PPS.PRE_CLEAN_SLAB_MAX_WT = #{preCleanSlabMaxWt,jdbcType = INTEGER}
            </if>
            <if test="preCleanSlabMinWt !=null">
                and PPS.PRE_CLEAN_SLAB_MIN_WT = #{preCleanSlabMinWt,jdbcType = INTEGER}
            </if>
            <if test="infurSlabThick !=null">
                and PPS.INFUR_SLAB_THICK = #{infurSlabThick,jdbcType = INTEGER}
            </if>
            <if test="infurSlabWid !=null">
                and PPS.INFUR_SLAB_WID = #{infurSlabWid,jdbcType = INTEGER}
            </if>
            <if test="infurSlabLen !=null">
                and PPS.INFUR_SLAB_LEN = #{infurSlabLen,jdbcType = INTEGER}
            </if>
            <if test="infurSlabMaxLen !=null">
                and PPS.INFUR_SLAB_MAX_LEN = #{infurSlabMaxLen,jdbcType = INTEGER}
            </if>
            <if test="infurSlabMinLen !=null">
                and PPS.INFUR_SLAB_MIN_LEN = #{infurSlabMinLen,jdbcType = INTEGER}
            </if>
            <if test="infurSlabWt !=null">
                and PPS.INFUR_SLAB_WT = #{infurSlabWt,jdbcType = INTEGER}
            </if>
            <if test="infurSlabMaxWt !=null">
                and PPS.INFUR_SLAB_MAX_WT = #{infurSlabMaxWt,jdbcType = INTEGER}
            </if>
            <if test="infurSlabMinWt !=null">
                and PPS.INFUR_SLAB_MIN_WT = #{infurSlabMinWt,jdbcType = INTEGER}
            </if>
            <if test="needSlabLen !=null">
                and PPS.NEED_SLAB_LEN = #{needSlabLen,jdbcType = INTEGER}
            </if>
            <if test="needSlabWt !=null">
                and PPS.NEED_SLAB_WT = #{needSlabWt,jdbcType = INTEGER}
            </if>
            <if test="fixSlabLenFlag !=null">
                and PPS.FIX_SLAB_LEN_FLAG = #{fixSlabLenFlag,jdbcType = VARCHAR}
            </if>
            <if test="fixSlabLen !=null">
                and PPS.FIX_SLAB_LEN = #{fixSlabLen,jdbcType = INTEGER}
            </if>
            <if test="slabCleanWtLossRateSt !=null">
                and PPS.SLAB_CLEAN_WT_LOSS_RATE_ST = #{slabCleanWtLossRateSt,jdbcType = INTEGER}
            </if>
            <if test="slabCleanWtLossRateFr !=null">
                and PPS.SLAB_CLEAN_WT_LOSS_RATE_FR = #{slabCleanWtLossRateFr,jdbcType = INTEGER}
            </if>
            <if test="hpFlameCleanDiv !=null">
                and PPS.HP_FLAME_CLEAN_DIV = #{hpFlameCleanDiv,jdbcType = VARCHAR}
            </if>
            <if test="slabFinishCode !=null">
                and PPS.SLAB_FINISH_CODE = #{slabFinishCode,jdbcType = VARCHAR}
            </if>
            <if test="slabPlaceCode !=null">
                and PPS.SLAB_PLACE_CODE = #{slabPlaceCode,jdbcType = VARCHAR}
            </if>
            <if test="rollAimThick !=null">
                and PPS.ROLL_AIM_THICK = #{rollAimThick,jdbcType = INTEGER}
            </if>
            <if test="rollAimWidth !=null">
                and PPS.ROLL_AIM_WIDTH = #{rollAimWidth,jdbcType = INTEGER}
            </if>
            <if test="rollAimLen !=null">
                and PPS.ROLL_AIM_LEN = #{rollAimLen,jdbcType = INTEGER}
            </if>
            <if test="orderThickAxis !=null">
                and PPS.ORDER_THICK_AXIS = #{orderThickAxis,jdbcType = INTEGER}
            </if>
            <if test="combinePlateWidth !=null">
                and PPS.COMBINE_PLATE_WIDTH = #{combinePlateWidth,jdbcType = INTEGER}
            </if>
            <if test="combinePlateLen !=null">
                and PPS.COMBINE_PLATE_LEN = #{combinePlateLen,jdbcType = INTEGER}
            </if>
            <if test="rollWtHp !=null">
                and PPS.ROLL_WT_HP = #{rollWtHp,jdbcType = INTEGER}
            </if>
            <if test="rollThickTolMax !=null">
                and PPS.ROLL_THICK_TOL_MAX = #{rollThickTolMax,jdbcType = INTEGER}
            </if>
            <if test="rollThickTolMin !=null">
                and PPS.ROLL_THICK_TOL_MIN = #{rollThickTolMin,jdbcType = INTEGER}
            </if>
            <if test="normYield !=null">
                and PPS.NORM_YIELD = #{normYield,jdbcType = INTEGER}
            </if>
            <if test="commandYield !=null">
                and PPS.COMMAND_YIELD = #{commandYield,jdbcType = INTEGER}
            </if>
            <if test="rollYield !=null">
                and PPS.ROLL_YIELD = #{rollYield,jdbcType = INTEGER}
            </if>
            <if test="edgerUseFlag !=null">
                and PPS.EDGER_USE_FLAG = #{edgerUseFlag,jdbcType = VARCHAR}
            </if>
            <if test="broadMasUseFlag !=null">
                and PPS.BROAD_MAS_USE_FLAG = #{broadMasUseFlag,jdbcType = VARCHAR}
            </if>
            <if test="formMasUseFlag !=null">
                and PPS.FORM_MAS_USE_FLAG = #{formMasUseFlag,jdbcType = VARCHAR}
            </if>
            <if test="rollDirectCode !=null">
                and PPS.ROLL_DIRECT_CODE = #{rollDirectCode,jdbcType = VARCHAR}
            </if>
            <if test="sampleLenHead !=null">
                and PPS.SAMPLE_LEN_HEAD = #{sampleLenHead,jdbcType = INTEGER}
            </if>
            <if test="sampleLenTail !=null">
                and PPS.SAMPLE_LEN_TAIL = #{sampleLenTail,jdbcType = INTEGER}
            </if>
            <if test="sampleLenMid !=null">
                and PPS.SAMPLE_LEN_MID = #{sampleLenMid,jdbcType = INTEGER}
            </if>
            <if test="rsCode !=null">
                and PPS.RS_CODE = #{rsCode,jdbcType = VARCHAR}
            </if>
            <if test="broadFlag !=null">
                and PPS.BROAD_FLAG = #{broadFlag,jdbcType = VARCHAR}
            </if>
            <if test="taperRollThick1 !=null">
                and PPS.TAPER_ROLL_THICK1 = #{taperRollThick1,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax1 !=null">
                and PPS.TAPER_ROLL_THICK_MAX1 = #{taperRollThickMax1,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin1 !=null">
                and PPS.TAPER_ROLL_THICK_MIN1 = #{taperRollThickMin1,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick2 !=null">
                and PPS.TAPER_ROLL_THICK2 = #{taperRollThick2,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax2 !=null">
                and PPS.TAPER_ROLL_THICK_MAX2 = #{taperRollThickMax2,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin2 !=null">
                and PPS.TAPER_ROLL_THICK_MIN2 = #{taperRollThickMin2,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick3 !=null">
                and PPS.TAPER_ROLL_THICK3 = #{taperRollThick3,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax3 !=null">
                and PPS.TAPER_ROLL_THICK_MAX3 = #{taperRollThickMax3,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin3 !=null">
                and PPS.TAPER_ROLL_THICK_MIN3 = #{taperRollThickMin3,jdbcType = INTEGER}
            </if>
            <if test="taperRollWidth !=null">
                and PPS.TAPER_ROLL_WIDTH = #{taperRollWidth,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen1 !=null">
                and PPS.TAPER_ROLL_LEN1 = #{taperRollLen1,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen2 !=null">
                and PPS.TAPER_ROLL_LEN2 = #{taperRollLen2,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen3 !=null">
                and PPS.TAPER_ROLL_LEN3 = #{taperRollLen3,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen4 !=null">
                and PPS.TAPER_ROLL_LEN4 = #{taperRollLen4,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen5 !=null">
                and PPS.TAPER_ROLL_LEN5 = #{taperRollLen5,jdbcType = INTEGER}
            </if>
            <if test="lastSlabFlag !=null">
                and PPS.LAST_SLAB_FLAG = #{lastSlabFlag,jdbcType = VARCHAR}
            </if>
            <if test="addSlabFlag !=null">
                and PPS.ADD_SLAB_FLAG = #{addSlabFlag,jdbcType = VARCHAR}
            </if>
            <if test="shpCode !=null">
                and PPS.SHP_CODE = #{shpCode,jdbcType = VARCHAR}
            </if>
            <if test="ultDetectMethodCode !=null">
                and PPS.ULT_DETECT_METHOD_CODE = #{ultDetectMethodCode,jdbcType = VARCHAR}
            </if>
            <if test="taperRollThick4 !=null">
                and PPS.TAPER_ROLL_THICK4 = #{taperRollThick4,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax4 !=null">
                and PPS.TAPER_ROLL_THICK_MAX4 = #{taperRollThickMax4,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin4 !=null">
                and PPS.TAPER_ROLL_THICK_MIN4 = #{taperRollThickMin4,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick5 !=null">
                and PPS.TAPER_ROLL_THICK5 = #{taperRollThick5,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax5 !=null">
                and PPS.TAPER_ROLL_THICK_MAX5 = #{taperRollThickMax5,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin5 !=null">
                and PPS.TAPER_ROLL_THICK_MIN5 = #{taperRollThickMin5,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick6 !=null">
                and PPS.TAPER_ROLL_THICK6 = #{taperRollThick6,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax6 !=null">
                and PPS.TAPER_ROLL_THICK_MAX6 = #{taperRollThickMax6,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin6 !=null">
                and PPS.TAPER_ROLL_THICK_MIN6 = #{taperRollThickMin6,jdbcType = INTEGER}
            </if>
            <if test="taperRollThick7 !=null">
                and PPS.TAPER_ROLL_THICK7 = #{taperRollThick7,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMax7 !=null">
                and PPS.TAPER_ROLL_THICK_MAX7 = #{taperRollThickMax7,jdbcType = INTEGER}
            </if>
            <if test="taperRollThickMin7 !=null">
                and PPS.TAPER_ROLL_THICK_MIN7 = #{taperRollThickMin7,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen6 !=null">
                and PPS.TAPER_ROLL_LEN6 = #{taperRollLen6,jdbcType = INTEGER}
            </if>
            <if test="taperRollLen7 !=null">
                and PPS.TAPER_ROLL_LEN7 = #{taperRollLen7,jdbcType = INTEGER}
            </if>
            <if test="tenantId !=null">
                and PPS.TENANT_ID = #{tenantId,jdbcType = INTEGER}
            </if>
            <if test="attribute1 !=null">
                and PPS.ATTRIBUTE1 = #{attribute1,jdbcType = VARCHAR}
            </if>
            <if test="attribute2 !=null">
                and PPS.ATTRIBUTE2 = #{attribute2,jdbcType = VARCHAR}
            </if>
            <if test="attribute3 !=null">
                and PPS.ATTRIBUTE3 = #{attribute3,jdbcType = VARCHAR}
            </if>
            <if test="attribute4 !=null">
                and PPS.ATTRIBUTE4 = #{attribute4,jdbcType = VARCHAR}
            </if>
            <if test="attribute5 !=null">
                and PPS.ATTRIBUTE5 = #{attribute5,jdbcType = VARCHAR}
            </if>
        </where>
    </select>
    
    
    <select id="selectMmSlabBySlabId" resultType="com.xisc.pm.api.dto.PmPdSlabSplitDTO">
    
    	select 
				WHOLE_BACKLOG_SEQ,
				WHOLE_BACKLOG_CODE,
				NEXT_WHOLE_BACKLOG_SEQ,
				PONO,
				SLAB_FLAG,
				SG_SIGN,
				PSC,
				APN,
				MSC,
				MSC_LINE_NO,
				REMAIN_CAUSE_CODE,
				SLAB_ACT_WGT,
				SLAB_TYPE,
    			SLAB_ID,
       			SLAB_NO,
				SLAB_ACT_LEN,
				SLAB_ACT_WID,
				SLAB_ACT_THK,
				ST_NO,
				BD_FLAG,
				SLAB_STATUS,
				HOLD_CAUSE_CODE,
				REMAIN_DECIDE_MAKER,
				NEXT_WHOLE_BACKLOG_CODE,
				COMPLEX_DECIDE_CODE,
				PRE_ST_NO,
                SUB_BACKLOG_CODE
    	from MM_SLAB
    	where SLAB_ID = #{slabId}
    	and TENANT_ID = #{organizationId}
    	
    </select>
    
    <select id="selectMmSlabBySlabNoList" resultType="com.xisc.pm.api.dto.PmPdSlabSplitDTO">
    
    	select 
				WHOLE_BACKLOG_SEQ,
				WHOLE_BACKLOG_CODE,
				NEXT_WHOLE_BACKLOG_SEQ,
				PONO,
				SLAB_FLAG,
				SG_SIGN,
				PSC,
				APN,
				MSC,
				MSC_LINE_NO,
				REMAIN_CAUSE_CODE,
				SLAB_ACT_WGT,
				SLAB_TYPE,
    			SLAB_ID,
       			SLAB_NO,
				SLAB_ACT_LEN,
				SLAB_ACT_WID,
				SLAB_ACT_THK,
				ST_NO,
				BD_FLAG,
				SLAB_STATUS,
				HOLD_CAUSE_CODE,
				REMAIN_DECIDE_MAKER,
				NEXT_WHOLE_BACKLOG_CODE,
				COMPLEX_DECIDE_CODE,
				PRE_ST_NO
    	from MM_SLAB
    	where SLAB_NO IN
    	<foreach collection="slabNoList" item="slabNo" open="(" close=")" separator=",">
    		#{slabNo}
    	</foreach>
    	and TENANT_ID = #{organizationId}
    	
    </select>
</mapper>

