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

    <resultMap id="BaseResultMap" type="com.zksy.property.domain.ATenantManagement">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="tenantType" column="tenant_type" jdbcType="VARCHAR"/>
            <result property="personalName" column="personal_name" jdbcType="VARCHAR"/>
            <result property="idCard" column="id_card" jdbcType="VARCHAR"/>
            <result property="companyName" column="company_name" jdbcType="VARCHAR"/>
            <result property="creditCode" column="credit_code" jdbcType="VARCHAR"/>
            <result property="legalRep" column="legal_rep" jdbcType="VARCHAR"/>
            <result property="propertyName" column="property_name" jdbcType="VARCHAR"/>
            <result property="propertyAddr" column="property_addr" jdbcType="VARCHAR"/>
            <result property="leaseStart" column="lease_start" jdbcType="TIMESTAMP"/>
            <result property="leaseEnd" column="lease_end" jdbcType="TIMESTAMP"/>
            <result property="rentAmount" column="rent_amount" jdbcType="DECIMAL"/>
            <result property="depositAmount" column="deposit_amount" jdbcType="DECIMAL"/>
            <result property="depositStatus" column="deposit_status" jdbcType="VARCHAR"/>
            <result property="contractNo" column="contract_no" jdbcType="VARCHAR"/>
            <result property="contractPath" column="contract_path" jdbcType="VARCHAR"/>
            <result property="contactPhone" column="contact_phone" jdbcType="VARCHAR"/>
            <result property="emergencyName" column="emergency_name" jdbcType="VARCHAR"/>
            <result property="emergencyPhone" column="emergency_phone" jdbcType="VARCHAR"/>
            <result property="arrearsAmount" column="arrears_amount" jdbcType="DECIMAL"/>
            <result property="lastPaymentDate" column="last_payment_date" jdbcType="TIMESTAMP"/>
            <result property="tenantStatus" column="tenant_status" jdbcType="VARCHAR"/>
            <result property="moveOutDate" column="move_out_date" jdbcType="TIMESTAMP"/>
            <result property="defaultRecord" column="default_record" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="createUser" column="create_user" jdbcType="VARCHAR"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="updateUser" column="update_user" jdbcType="VARCHAR"/>
            <result property="remark" column="remark" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,tenant_type,personal_name,
        id_card,company_name,credit_code,
        legal_rep,property_name,property_addr,
        lease_start,lease_end,rent_amount,
        deposit_amount,deposit_status,contract_no,
        contract_path,contact_phone,emergency_name,
        emergency_phone,arrears_amount,last_payment_date,
        tenant_status,move_out_date,default_record,
        create_time,create_user,update_time,
        update_user,remark
    </sql>
</mapper>
