tangzy
2022-02-22 59a2b8cdc7e6b74ff3a82f4c0b416868a3a71579
src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml
@@ -88,19 +88,19 @@
        WHERE loutype = #{id} and is_deleted = 0
    </select>
    <select id="selectLook" resultType="java.util.HashMap">
        SELECT GROUP_CONCAT(mechanismName) AS mechanismname
        FROM sys_architecture
        WHERE mechanismName LIKE '%${mechanismName}%'
        UNION
        SELECT GROUP_CONCAT(mechanismName) AS mechanismname
        FROM sys_mechanism
        WHERE mechanismName LIKE '%${mechanismName}%'
        UNION
        SELECT GROUP_CONCAT(mechanismName) AS mechanismname
        FROM sys_life
        WHERE mechanismName LIKE '%${mechanismName}%' and is_deleted = 0
    </select>
<!--    <select id="selectLook" resultType="java.util.HashMap">-->
<!--        SELECT GROUP_CONCAT(mechanismName) AS mechanismname-->
<!--        FROM sys_architecture-->
<!--        WHERE mechanismName LIKE '%${mechanismName}%' and is_deleted = 0-->
<!--        UNION-->
<!--        SELECT GROUP_CONCAT(mechanismName) AS mechanismname-->
<!--        FROM sys_mechanism-->
<!--        WHERE mechanismName LIKE '%${mechanismName}%' and is_deleted = 0-->
<!--        UNION-->
<!--        SELECT GROUP_CONCAT(mechanismName) AS mechanismname-->
<!--        FROM sys_life-->
<!--        WHERE mechanismName LIKE '%${mechanismName}%' and is_deleted = 0-->
<!--    </select>-->
    <!--视频监控-->
    <select id="selectVideo" resultType="java.util.HashMap">
@@ -125,4 +125,28 @@
        WHERE videourl IS NOT NULL
          AND videourl != '' and is_deleted = 0
    </select>
    <select id="selectLook" resultType="java.util.HashMap">
        SELECT
            mechanismName  AS mechanismname,address,telePhone AS telephone,introduce,jd,wd,gd,tpUrl as tpurl,codeUrl as codeurl,heading,pitch,roll,videourl,panoramaurl
        FROM
            sys_architecture
        WHERE
            mechanismName LIKE '%${mechanismName}%'
          AND is_deleted = 0 UNION
        SELECT
            mechanismName  AS mechanismname,address,telePhone AS telephone,introduce,jd,wd,gd,tpUrl as tpurl,codeUrl as codeurl,heading,pitch,roll,videourl,panoramaurl
        FROM
            sys_mechanism
        WHERE
            mechanismName LIKE '%${mechanismName}%'
          AND is_deleted = 0 UNION
        SELECT
            mechanismName  AS mechanismname,address,telePhone AS telephone,introduce,jd,wd,gd,tpUrl as tpurl,codeUrl as codeurl,heading,pitch,roll,videourl,panoramaurl
        FROM
            sys_life
        WHERE
            mechanismName LIKE '%${mechanismName}%'
          AND is_deleted = 0
    </select>
</mapper>