<?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.ankaibei.workFlow.common.flow.dao.ProjectInfoFlowMapper">
    <resultMap id="BaseResultMap" type="com.ankaibei.workFlow.common.flow.model.ProjectInfoEntityOfFlow">
        <id column="project_id" jdbcType="BIGINT" property="projectId"/>
        <result column="project_name" jdbcType="VARCHAR" property="projectName"/>
        <result column="project_stage" jdbcType="VARCHAR" property="projectStage"/>
        <result column="project_status" jdbcType="VARCHAR" property="projectStatus"/>
        <result column="project_type" jdbcType="VARCHAR" property="projectType"/>
        <result column="relevance_client" jdbcType="VARCHAR" property="relevanceClient"/>
        <result column="peoject_money" jdbcType="VARCHAR" property="peojectMoney"/>
        <result column="staff_cost" jdbcType="DECIMAL" property="staffCost"/>
        <result column="project_cost" jdbcType="DECIMAL" property="projectCost"/>
        <result column="total_cost" jdbcType="DECIMAL" property="totalCost"/>
        <result column="linkman_phone" jdbcType="VARCHAR" property="linkmanPhone"/>
        <result column="project_principal" jdbcType="VARCHAR" property="projectPrincipal"/>
        <result column="project_node" jdbcType="VARCHAR" property="projectNode"/>
        <result column="project_describe" jdbcType="VARCHAR" property="projectDescribe"/>
        <result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
    </resultMap>


    <select id="getById" resultMap="BaseResultMap" parameterType="java.lang.Integer">
        SELECT *
        FROM project_info
        where project_id = #{projectId}
    </select>
</mapper>
