DevRegionMapper.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.mdd.common.mapper.region.DevRegionMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.mdd.common.entity.region.DevRegion">
  6. <!-- <id column="id" property="id"/>
  7. <result column="create_id" property="createId"/>
  8. <result column="create_time" property="createTime"/>
  9. <result column="update_id" property="updateId"/>
  10. <result column="update_time" property="updateTime"/>
  11. <result column="company_id" property="companyId"/>
  12. <result column="account_id" property="accountId"/>
  13. <result column="account_chart_id" property="accountChartId"/>
  14. <result column="is_add_next_level" property="isAddNextLevel"/>
  15. <result column="is_reallocate" property="isReallocate"/>
  16. <result column="tenant_id" property="tenantId"/>-->
  17. </resultMap>
  18. <select id="list" resultType="com.mdd.common.dto.result.RegionResultDto">
  19. select id,
  20. parent_id as parentId,
  21. level,
  22. name,
  23. short as shortName,
  24. city_code as cityCode,
  25. zip_code as zipCode,
  26. gcj02_lng as gcj02Lng,
  27. gcj02_lat as gcj02Lat,
  28. db09_lng as db09Lng,
  29. db09_lat as db09Lat,
  30. remark1,
  31. remark2
  32. from la_dev_region
  33. <where>
  34. <if test="form.level != null">
  35. and level = #{form.level}
  36. </if>
  37. <if test="form.parentId != null">
  38. and parent_id = #{form.parentId}
  39. </if>
  40. </where>
  41. </select>
  42. </mapper>