Administrator 3 年之前
父節點
當前提交
c154b49df3
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mybusiness/src/main/resources/mapper/grid/manager/TResCameraMapper.xml

+ 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"/>
         <include refid="selectTResCameraVo"/>
         <where>
         <where>
             1=1
             1=1
+            <if test="id != null and id != ''">and id = #{id}</if>
             <if test="status != null  and status != ''"> and status = #{status}</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="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
             <if test="longitude != null  and longitude != ''"> and longitude = #{longitude}</if>
             <if test="longitude != null  and longitude != ''"> and longitude = #{longitude}</if>