| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.springblade.modules.place.mapper.PlaceExtMapper"> |
| | | |
| | | <resultMap id="detailMap" type="org.springblade.modules.place.vo.PlaceExtVO" autoMapping="true"> |
| | | <id property="id" column="id"/> |
| | | <collection property="placePractitioner" javaType="java.util.List" |
| | | ofType="org.springblade.modules.place.vo.PlacePractitionerVO" autoMapping="true"> |
| | | <id property="id" column="cid"/> |
| | | </collection> |
| | | </resultMap> |
| | | |
| | | <!--自定义分页查询--> |
| | | <select id="selectPlaceExtPage" resultType="org.springblade.modules.place.vo.PlaceExtVO"> |
| | | select jpe.*,jp.place_name as placeName from jczz_place_ext jpe |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义详情查询--> |
| | | <select id="getDetail" resultType="org.springblade.modules.place.vo.PlaceExtVO"> |
| | | select jpe.*,jp.place_name as placeName from jczz_place_ext jpe |
| | | left join jczz_place jp on jpe.place_id = jp.id and jp.is_deleted = 0 |
| | | where jpe.is_deleted = 0 |
| | | and jpe.place_id = #{placeExt.placeId} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |