zrj
2024-10-24 1a4792fdff667d3b9590c6ab4c085a08cdca1399
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
<?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.mechanism.mapper.MechanismMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="mechanismResultMap" type="org.springblade.modules.mechanism.entity.Mechanism">
        <id column="id" property="id"/>
        <result column="mechanismName" property="mechanismname"/>
        <result column="address" property="address"/>
        <result column="telePhone" property="telephone"/>
        <result column="introduce" property="introduce"/>
        <result column="jd" property="jd"/>
        <result column="wd" property="wd"/>
        <result column="gd" property="gd"/>
        <result column="tpUrl" property="tpurl"/>
        <result column="codeUrl" property="codeurl"/>
        <result column="websiteUrl" property="websiteurl"/>
        <result column="type" property="type"/>
        <result column="addressName" property="addressName"/>
    </resultMap>
 
 
    <select id="selectMechanismPage" resultMap="mechanismResultMap">
        select * from sys_mechanism where is_deleted = 0
    </select>
 
 
    <!--建筑所属楼信息-->
    <select id="selectIn" resultType="java.lang.String">
        SELECT GROUP_CONCAT(mechanismName) as mechanismname  FROM `sys_mechanism` WHERE loutype=#{id} and is_deleted = 0
    </select>
 
 
    <select id="selectAllList" resultType="org.springblade.modules.mechanism.entity.Mechanism">
        select id,codeUrl AS codeurl
         from sys_mechanism where is_deleted = 0
    </select>
 
</mapper>