<?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.nantian.cloud.jljc.mapper.TProjectEnergySavingAuditMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.nantian.cloud.jljc.entity.TProjectEnergySavingAudit">
        <id column="id" property="id" />
        <result column="project_id" property="projectId" />
        <result column="check_result" property="checkResult" />
        <result column="do_person" property="doPerson" />
        <result column="check_unit" property="checkUnit" />
        <result column="check_person" property="checkPerson" />
        <result column="check_time" property="checkTime" />
        <result column="userid" property="userid" />
        <result column="update_time" property="updateTime" />
        <result column="del_flag" property="delFlag" />
        <result column="dept_id" property="deptId" />
        <result column="type" property="type" />
        <result column="state" property="state" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, project_id, check_result, do_person, check_unit, check_person, check_time, userid, update_time,
        del_flag, dept_id, type, state
    </sql>

    <select id="getList" resultType="com.nantian.cloud.jljc.entity.TProjectEnergySavingAudit">
        select <include refid="Base_Column_List"></include>
        from t_project_energy_saving_audit
        where project_id = #{id} and type = #{type} and del_flag = "1"
    </select>

</mapper>
