<select >
        SELECT id as id,
        model_id AS modelId,
        model_type AS modelType,
        created_by AS createdBy,
        model_name AS modelName,
        model_def AS modelDef,
        start_date AS startDate,
        end_date AS endDate,
        FROM
        <include ref/>
        WHERE model_id=#{modelId}
    </select>

    <resultMap >
        <discriminator javaType="java.lang.Integer" column="modelType">
            <case value="1" resultType="com.javartisan.Model1"/>
            <case value="2" resultType="com.javartisan.Model2"/>
        </discriminator>
    </resultMap>

  

相关文章:

  • 2022-02-03
  • 2021-10-22
  • 2021-08-08
  • 2021-11-30
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-05
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
相关资源
相似解决方案