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

    <resultMap id="BaseResultMap" type="com.zksy.property.domain.ARentalProperty">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="buildingNumber" column="building_number" jdbcType="VARCHAR"/>
            <result property="roomNumber" column="room_number" jdbcType="VARCHAR"/>
            <result property="electricMeterNumber" column="electric_meter_number" jdbcType="VARCHAR"/>
            <result property="roomItems" column="room_items" jdbcType="VARCHAR"/>
            <result property="tenantCompany" column="tenant_company" jdbcType="VARCHAR"/>
            <result property="tenantName" column="tenant_name" jdbcType="VARCHAR"/>
            <result property="contactPhone" column="contact_phone" jdbcType="VARCHAR"/>
            <result property="rentPaymentDate" column="rent_payment_date" jdbcType="VARCHAR"/>
            <result property="depositAmount" column="deposit_amount" jdbcType="DECIMAL"/>
            <result property="propertyManagementFee" column="property_management_fee" jdbcType="DECIMAL"/>
            <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,building_number,room_number,
        electric_meter_number,room_items,tenant_company,
        tenant_name,contact_phone,rent_payment_date,
        deposit_amount,property_management_fee,remarks,
        create_time,create_by,update_time,
        update_by
    </sql>
</mapper>
