<?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.dsk.cscec.mapper.CbSummaryActualLockMapper">

    <resultMap type="com.dsk.cscec.domain.CbSummaryActualLock" id="CbSummaryActualLockMap">
        <result property="id" column="id" jdbcType="INTEGER"/>
        <result property="projectId" column="project_id" jdbcType="INTEGER"/>
        <result property="expenseDate" column="expense_date" jdbcType="VARCHAR"/>
        <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
        <result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
    </resultMap>

    <sql id="baseColumn">
        id, project_id, expense_date, create_time, del_flag
    </sql>

    <select id="getLockedList" resultType="java.lang.String">
        select csal.expense_date
        from cb_summary_actual_lock csal
        where
            csal.project_id = #{bo.projectId}
            and csal.cb_type = #{bo.cbType}
            and csal.del_flag = 0
        order by csal.expense_date desc
    </select>
</mapper>

