| 12345678910111213141516171819202122232425262728293031323334 |
- <?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.idea.buildManage.mapper.ParkFloorDiscExtendMapper">
- <select id="listByModel" resultType="com.idea.buildManage.response.ParkFloorDiscRespson">
- SELECT
- i.group_name,
- i.nature,
- i.pre_sales_license_number,
- d.*
- FROM
- park_floor_disc d
- LEFT JOIN park_info i ON d.group_id = i.id
- <where>
- <if test="name != null and name != ''">
- and d.name = #{name}
- </if>
- <if test="level == 1">
- and i.id = #{nodeId}
- </if>
- <if test="level == 2">
- and d.id = #{nodeId}
- </if>
- </where>
- </select>
- <select id="selectByGroupId" resultType="com.idea.buildManage.model.ParkFloorDisc">
- select
- *
- from park_floor_disc
- where group_id = #{id,jdbcType=VARCHAR}
- </select>
- </mapper>
|