<?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.project.dao.CostProjectTaskNodeDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.project.model.CostProjectTaskNode">
    <result column="id" property="id" />
    <result column="process_id" property="processId" />
    <result column="process_node_value" property="processNodeValue" />
    <result column="process_node_key" property="processNodeKey" />
    <result column="user_id" property="userId" />
		<result column="main_user_id" property="mainUserId" />
		<result column="node_type" property="nodeType" />
    <result column="order_num" property="orderNum" />
    <result column="start_time" property="startTime" />
    <result column="end_time" property="endTime" />
    <result column="status" property="status" />
    <result column="create_time" property="createTime" />
    <result column="create_by" property="createBy" />
    <result column="update_time" property="updateTime" />
    <result column="update_by" property="updateBy" />
    <result column="task_id" property="taskId" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, process_id, process_node_value, process_node_key, user_id,main_user_id,node_type, order_num, start_time, end_time, status, create_time, create_by, update_time, update_by, task_id
    </sql>

	<select id="selectPage" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			cost_project_task_node
		${ew.customSqlSegment}
	</select>
	
	<select id="selectList" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			cost_project_task_node
		${ew.customSqlSegment}
	</select>
	
	<select id="selectById" resultMap="BaseResultMap">
		select 
			<include refid="Base_Column_List"/> 
		from
			cost_project_task_node
		where 
	</select>
</mapper>
