<?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.aiotagro.cattletrade.business.mapper.WarehouseMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.aiotagro.cattletrade.business.entity.Warehouse">
        <id column="id" property="id" />
        <result column="warehouse_name" property="warehouseName" />
        <result column="warehouse_code" property="warehouseCode" />
        <result column="address" property="address" />
        <result column="longitude" property="longitude" />
        <result column="latitude" property="latitude" />
        <result column="capacity" property="capacity" />
        <result column="manager_name" property="managerName" />
        <result column="manager_mobile" property="managerMobile" />
        <result column="status" property="status" />
        <result column="remark" property="remark" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
        <result column="created_by" property="createdBy" />
        <result column="updated_by" property="updatedBy" />
        <result column="is_delete" property="isDelete" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, warehouse_name, warehouse_code, address, longitude, latitude, capacity, manager_name, manager_mobile, status, remark, create_time, update_time, created_by, updated_by, is_delete
    </sql>

</mapper>

