zhongrj
2024-12-26 a1272d78844574b86645149a0d8ca257c2b8fe91
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
37
38
39
40
<?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.IndParkInfoMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="indParkInfoResultMap" type="org.springblade.modules.yw.entity.IndParkInfoEntity">
        <result column="id" property="id"/>
        <result column="name" property="name"/>
        <result column="level" property="level"/>
        <result column="lng" property="lng"/>
        <result column="lat" property="lat"/>
        <result column="area_code" property="areaCode"/>
        <result column="address" property="address"/>
        <result column="remark" property="remark"/>
        <result column="lea_ind" property="leaInd"/>
        <result column="acc_sure_year" property="accSureYear"/>
        <result column="pla_area" property="plaArea"/>
        <result column="fil_time" property="filTime"/>
        <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="selectIndParkInfoPage" resultMap="indParkInfoResultMap">
        select * from yw_ind_park_info where is_deleted = 0
    </select>
 
    <!--详情查询-->
    <select id="getDetail" resultType="org.springblade.modules.yw.vo.IndParkInfoVO">
        select
            yipi.*,bdb.dict_value as parkLevel
        from yw_ind_park_info yipi
                 left join blade_dict_biz bdb on bdb.dict_key = yipi.level and bdb.code = 'ind_park_level'
        where yipi.is_deleted = 0
    </select>
 
</mapper>