Administrator 3 years ago
parent
commit
c154b49df3

+ 1 - 0
mybusiness/src/main/resources/mapper/grid/manager/TResCameraMapper.xml

@@ -48,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectTResCameraVo"/>
         <where>
             1=1
+            <if test="id != null and id != ''">and id = #{id}</if>
             <if test="status != null  and status != ''"> and status = #{status}</if>
             <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
             <if test="longitude != null  and longitude != ''"> and longitude = #{longitude}</if>