WorkFlowNodeInstanceMapper.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.dayou.mapper.WorkFlowNodeInstanceMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.dayou.entity.WorkFlowNodeInstance">
  6. <result column="id" property="id" />
  7. <result column="deleted" property="deleted" />
  8. <result column="created" property="created" />
  9. <result column="modified" property="modified" />
  10. <result column="flow_id" property="flowId" />
  11. <result column="node_id" property="nodeId" />
  12. <result column="business_id" property="businessId" />
  13. <result column="business_type" property="businessType" />
  14. <result column="sequence" property="sequence" />
  15. <result column="state" property="state" />
  16. <result column="comment" property="comment" />
  17. </resultMap>
  18. <!-- 通用查询结果列 -->
  19. <sql id="Base_Column_List">
  20. id,
  21. deleted,
  22. created,
  23. modified,
  24. flow_id, node_id, business_id, business_type, sequence, state, comment
  25. </sql>
  26. <select id="getById" parameterType="java.lang.Long" resultType="com.dayou.entity.WorkFlowNodeInstance">
  27. SELECT
  28. wfni.id,
  29. wfni.flow_id,
  30. wfni.node_id,
  31. wfni.business_id,
  32. wfni.business_type,
  33. wfni.sequence,
  34. wfni.state,
  35. wn.verify,
  36. wfni.created
  37. FROM
  38. work_flow_node_instance wfni
  39. LEFT JOIN work_node wn ON wn.id = wfni.node_id
  40. WHERE
  41. wfni.deleted = 0
  42. AND wn.deleted = 0
  43. AND wfni.id = #{instanceNodeId}
  44. </select>
  45. </mapper>