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


    <sql id = "BaseSql">
    PSCLI.ITF_ID,
    PSCLI.MAIN_BACKLOG_CODE,
    PSCLI.CAST_LOT_NO,
    PSCLI.ST_NO,
    PSCLI.SG_SIGN,
    PSCLI.LOT_STATUS,
    PSCLI.CC_TYPE,
    PSCLI.ORDER_TYPE_CODE,
    PSCLI.CC_PLAN_MODE,
    PSCLI.URGENCY_ORDER_MARK,
    PSCLI.APP_TYPE,
    PSCLI.BILLET_TYPE,
    PSCLI.SLAB_GROUP_SUM,
    PSCLI.SLAB_THICK,
    PSCLI.SLAB_NUM,
    PSCLI.ITF_BATCH_ID,
    PSCLI.ITF_STATUS,
    PSCLI.ITF_MESSAGE,
    PSCLI.ITF_RETRY_TIMES,
    PSCLI.TENANT_ID,
    PSCLI.ATTRIBUTE1,
    PSCLI.ATTRIBUTE2,
    PSCLI.ATTRIBUTE3,
    PSCLI.ATTRIBUTE4,
    PSCLI.ATTRIBUTE5,
    PSCLI.creation_date,    PSCLI.created_by,    PSCLI.last_updated_by,    PSCLI.last_update_date,    PSCLI.object_version_number
    </sql>

    <select id = "selectList" resultType = "com.xisc.pm.domain.entity.PmSteelCastLotItf">
        select
        <include refid = "BaseSql"/>
        from PM_STEEL_CAST_LOT_ITF PSCLI
        <where>
            <if test="itfId !=null">
                and PSCLI.ITF_ID = #{itfId,jdbcType = INTEGER}
            </if>
        </where>
    </select>
</mapper>

