123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?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.dayou.mapper.WorkFlowNodeInstanceMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.dayou.entity.WorkFlowNodeInstance">
- <result column="id" property="id" />
- <result column="deleted" property="deleted" />
- <result column="created" property="created" />
- <result column="modified" property="modified" />
- <result column="flow_id" property="flowId" />
- <result column="node_id" property="nodeId" />
- <result column="business_id" property="businessId" />
- <result column="business_type" property="businessType" />
- <result column="sequence" property="sequence" />
- <result column="state" property="state" />
- <result column="comment" property="comment" />
- </resultMap>
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- id,
- deleted,
- created,
- modified,
- flow_id, node_id, business_id, business_type, sequence, state, comment
- </sql>
- <select id="getById" parameterType="java.lang.Long" resultType="com.dayou.entity.WorkFlowNodeInstance">
- SELECT
- wfni.id,
- wfni.flow_id,
- wfni.node_id,
- wfni.business_id,
- wfni.business_type,
- wfni.sequence,
- wfni.state,
- wn.verify,
- wfni.created
- FROM
- work_flow_node_instance wfni
- LEFT JOIN work_node wn ON wn.id = wfni.node_id
- WHERE
- wfni.deleted = 0
- AND wn.deleted = 0
- AND wfni.id = #{instanceNodeId}
- </select>
- </mapper>
|