<?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.CostProjectProccessNodeDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.project.model.CostProjectProccessNode">
        <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="node_type" property="nodeType"/>
        <result column="order_num" property="orderNum"/>
        <result column="start_time" property="startTime"/>
        <result column="end_time" property="endTime"/>
        <result column="user_id" property="userId"/>
        <result column="main_user_id" property="mainUserId"/>
        <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"/>
    </resultMap>

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

    <select id="selectPage" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from
        cost_project_proccess_node
        ${ew.customSqlSegment}
    </select>

    <select id="selectList" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from
        cost_project_proccess_node
        ${ew.customSqlSegment}
    </select>

    <select id="selectById" resultMap="BaseResultMap">
        select
        <include refid="Base_Column_List"/>
        from
        cost_project_proccess_node
        where
    </select>
</mapper>
