| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?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.yt.zhylplat.moduleMap.mapper.TMapAttractionsFlowersPropertiesMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.yt.zhylplat.moduleMap.entity.TMapAttractionsFlowersProperties">
- <id column="id" property="id" />
- <result column="maintenance_company_id" property="maintenanceCompanyId" />
- <result column="maintenance_company_name" property="maintenanceCompanyName" />
- <result column="section_id" property="sectionId" />
- <result column="section_name" property="sectionName" />
- <result column="road_id" property="roadId" />
- <result column="attractions_name" property="attractionsName" />
- <result column="attractions_place" property="attractionsPlace" />
- <result column="flower_bed" property="flowerBed" />
- <result column="flower_box" property="flowerBox" />
- <result column="flower_mirror" property="flowerMirror" />
- <result column="cross_road_type" property="crossRoadType" />
- <result column="cross_road_area" property="crossRoadArea" />
- <result column="grass_flower_amount" property="grassFlowerAmount" />
- <result column="green_stone_amount" property="greenStoneAmount" />
- <result column="money_case_sta" property="moneyCaseSta" />
- <result column="remark" property="remark" />
- <result column="create_user_id" property="createUserId" />
- <result column="create_date" property="createDate" />
- <result column="update_user_id" property="updateUserId" />
- <result column="update_date" property="updateDate" />
- <result column="del_flg" property="delFlg" />
- </resultMap>
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- id, maintenance_company_id, maintenance_company_name, section_id, section_name, road_id, attractions_name, attractions_place, flower_bed, flower_box, flower_mirror, cross_road_type, cross_road_area, grass_flower_amount, green_stone_amount, money_case_sta, remark, create_user_id, create_date, update_user_id, update_date, del_flg
- </sql>
- <select id="selectTMapAttractionsFlowersProperties"
- resultType="com.yt.zhylplat.moduleMap.entity.TMapAttractionsFlowersProperties">
- select
- afp.id,
- afg.coordinates as coordinates,
- afg.type as geometryType,
- 'Feature' as type
- from
- T_Map_Attractions_Flowers_Properties afp
- left join
- T_Map_Attractions_Flowers_Geometry afg on afp.id = afg.attractions_flowers_id
- <where>
- and afp.del_flg = 0
- <if test="id != null">
- and afp.id = #{id}
- </if>
- <if test="sectionId != null">
- and afp .section_id = #{sectionId}
- </if>
- <if test="maintenanceCompanyId != null">
- and afp.maintenance_company_id = #{maintenanceCompanyId}
- </if>
- <if test="roadId != null">
- and afp.road_id = #{roadId}
- </if>
- </where>
- </select>
- </mapper>
|