<?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.iailab.module.model.mcs.pre.dao.MmPredictModelDao">

    <select id="getActiveModelByItemId" resultType="com.iailab.module.model.mcs.pre.entity.MmPredictModelEntity">
        SELECT
            t.*
        FROM
          t_mm_predict_model t
        WHERE status=1
          AND itemid=#{value}
    </select>


    <select id="getSampleLength" resultType="com.iailab.module.model.mcs.pre.entity.MmPredictModelEntity">
        SELECT
            t.predictsamplength
        FROM
            t_mm_predict_model t
        WHERE status=1
          AND id=#{value}
    </select>



</mapper>