<?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.zksy.property.mapper.ARentalContractMapper">

    <resultMap id="BaseResultMap" type="com.zksy.property.domain.ARentalContract">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="tenantName" column="tenant_name" jdbcType="VARCHAR"/>
            <result property="tenantCode" column="tenant_code" jdbcType="VARCHAR"/>
            <result property="contractNumber" column="contract_number" jdbcType="VARCHAR"/>
            <result property="contractName" column="contract_name" jdbcType="VARCHAR"/>
            <result property="leaseStartDate" column="lease_start_date" jdbcType="DATE"/>
            <result property="leaseEndDate" column="lease_end_date" jdbcType="DATE"/>
            <result property="rentAmount" column="rent_amount" jdbcType="DECIMAL"/>
            <result property="paymentCycle" column="payment_cycle" jdbcType="VARCHAR"/>
            <result property="depositAmount" column="deposit_amount" jdbcType="DECIMAL"/>
            <result property="contractStatus" column="contract_status" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
            <result property="remark" column="remark" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,tenant_name,tenant_code,
        contract_number,contract_name,lease_start_date,
        lease_end_date,rent_amount,payment_cycle,
        deposit_amount,contract_status,create_time,
        update_time,create_by,update_by,
        remark
    </sql>
</mapper>
