12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?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.mdd.common.mapper.region.DevRegionMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.mdd.common.entity.region.DevRegion">
- <!-- <id column="id" property="id"/>
- <result column="create_id" property="createId"/>
- <result column="create_time" property="createTime"/>
- <result column="update_id" property="updateId"/>
- <result column="update_time" property="updateTime"/>
- <result column="company_id" property="companyId"/>
- <result column="account_id" property="accountId"/>
- <result column="account_chart_id" property="accountChartId"/>
- <result column="is_add_next_level" property="isAddNextLevel"/>
- <result column="is_reallocate" property="isReallocate"/>
- <result column="tenant_id" property="tenantId"/>-->
- </resultMap>
- <select id="list" resultType="com.mdd.common.dto.result.RegionResultDto">
- select id,
- parent_id as parentId,
- level,
- name,
- short as shortName,
- city_code as cityCode,
- zip_code as zipCode,
- gcj02_lng as gcj02Lng,
- gcj02_lat as gcj02Lat,
- db09_lng as db09Lng,
- db09_lat as db09Lat,
- remark1,
- remark2
- from la_dev_region
- <where>
- <if test="form.level != null">
- and level = #{form.level}
- </if>
- <if test="form.parentId != null">
- and parent_id = #{form.parentId}
- </if>
- </where>
- </select>
- </mapper>
|