linwe
2024-11-23 db321b2c533fef1d5ddba16b3908693cd984cfb9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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="org.springblade.modules.yw.mapper.PanoramicMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="panoramicResultMap" type="org.springblade.modules.yw.entity.PanoramicEntity">
        <result column="id" property="id"/>
        <result column="firm_id" property="firmId"/>
        <result column="name" property="name"/>
        <result column="lng" property="lng"/>
        <result column="lat" property="lat"/>
        <result column="url" property="url"/>
        <result column="remark" property="remark"/>
        <result column="create_user" property="createUser"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>
 
 
    <!--自定义分页查询-->
    <select id="selectPanoramicPage" resultType="org.springblade.modules.yw.vo.PanoramicVO">
        select * from yw_panoramic
        <where>
            is_deleted = 0
            <if test="panoramic.firmId!=null">
                and firm_id = #{panoramic.firmId}
            </if>
            <if test="panoramic.remark!=null and panoramic.remark!=''">
                and remark = #{panoramic.remark}
            </if>
        </where>
    </select>
 
</mapper>