BpmExtendClassMapper.xml 1.27 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.hotent.runtime.dao.BpmExtendClassDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.runtime.model.BpmExtendClass">
        <id column="ID_" property="id" />
        <result column="JAR_ID_" property="jarId" />
        <result column="SIMPLE_NAME_" property="simpleName" />
        <result column="PATH_" property="path" />
        <result column="DESC_" property="desc" />
        <result column="MD5_" property="md5" />
        <result column="TYPE_" property="type" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID_,  SIMPLE_NAME_, PATH_, DESC_, MD5_
    </sql>
    
    <select id="customQuery" parameterType="java.util.Map" resultMap="BaseResultMap">
		select bec.ID_ AS "ID_" ,SIMPLE_NAME_,PATH_,MD5_,bec.TYPE_,bej.DESC_ AS "JAR_ID_" from bpm_extend_class bec LEFT JOIN bpm_extend_jar bej on bec.JAR_ID_ = bej.ID_
		${ew.customSqlSegment}
	</select>
	
	<select id="getBySimpleName" parameterType="java.lang.String" resultMap="BaseResultMap">
		select * from bpm_extend_class where SIMPLE_NAME_ = #{simpleName}
	</select>

</mapper>