RecordingModelTemConfigMapper.xml
1.18 KB
<?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.bs.reception.mapper.RecordingModelTemConfigMapper">
<resultMap id="BaseResultMap" type="com.bs.reception.entity.RecordingModelTemConfig">
<id column="id" property="id"/>
<result column="model_type" property="modelType"/>
<result column="label_template_id" property="labelTemplateId"/>
<result column="match_conditions" property="matchConditions"/>
<result column="enabled" property="enabled"/>
<result column="priority" property="priority"/>
<result column="description" property="description"/>
<!-- 显式指定时间类型处理器(可选但推荐) -->
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
</resultMap>
<select id="selectAllEnabled"
resultMap="BaseResultMap">
select id, model_type, label_template_id, match_conditions,
enabled, priority, description, create_time, update_time from recording_model_tem_config where enabled = 1
</select>
</mapper>