|
@@ -0,0 +1,20 @@
|
|
|
+<?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.siwei.apply.mapper.WorkflowMapper">
|
|
|
+ <resultMap id="WorkflowResultMap" type="com.siwei.apply.domain.Workflow">
|
|
|
+ <id property="id" column="id"/>
|
|
|
+ <result property="projectType" column="project_type"/>
|
|
|
+ <result property="name" column="name"/>
|
|
|
+ <result property="index" column="index"/>
|
|
|
+ <result property="tableName" column="table_name"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="selectByProjectTypeAndTableName" resultMap="WorkflowResultMap">
|
|
|
+ SELECT id, project_type, name, "index" AS index, table_name
|
|
|
+ FROM t_workflow
|
|
|
+ WHERE project_type = #{projectType}
|
|
|
+ AND table_name = #{tableName}
|
|
|
+ LIMIT 1
|
|
|
+ </select>
|
|
|
+</mapper>
|
|
|
+
|