tangzy
2022-03-07 6be139d9a70902a7e4f16df0301378e3084420d5
src/main/java/org/springblade/modules/architecture/mapper/ArchitectureMapper.xml
@@ -66,8 +66,8 @@
               pitch,
               roll,
               panoramaurl
        FROM `sys_architecture` and is_deleted = 0
        WHERE id = #{id}
        FROM `sys_architecture`
        WHERE id = #{id} and is_deleted = 0
    </select>
@@ -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>