mappers.GenGenerateInfoMapper.xml Maven / Gradle / Ivy
<?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.lframework.gen.mappers.GenGenerateInfoMapper"> <resultMap id="GenGenerateInfoDto" type="com.lframework.gen.dto.dataobj.GenGenerateInfoDto"> <id column="id" property="id"/> <result column="template_type" property="templateType"/> <result column="package_name" property="packageName"/> <result column="module_name" property="moduleName"/> <result column="biz_name" property="bizName"/> <result column="class_name" property="className"/> <result column="class_description" property="classDescription"/> <result column="parent_menu_id" property="parentMenuId"/> <result column="key_type" property="keyType"/> <result column="author" property="author"/> <result column="menu_code" property="menuCode"/> <result column="menu_name" property="menuName"/> <result column="detail_span" property="detailSpan"/> <result column="is_cache" property="isCache"/> <result column="has_delete" property="hasDelete"/> </resultMap> <sql id="GenGenerateInfoDto_sql"> SELECT i.id, i.template_type, i.package_name, i.module_name, i.biz_name, i.class_name, i.class_description, i.parent_menu_id, i.key_type, i.author, i.menu_code, i.menu_name, i.detail_span, i.is_cache, i.has_delete FROM gen_generate_info AS i </sql> <select id="getByDataObjId" resultMap="GenGenerateInfoDto"> <include refid="GenGenerateInfoDto_sql"/> WHERE i.id = #{dataObjId} </select> </mapper>