소스 검색

相机台账 导出

sunhh 1 년 전
부모
커밋
27f91087b2

+ 3 - 0
business-service/src/main/java/com/ozs/entity/vo/BaseCameraManagementVo.java

@@ -4,6 +4,7 @@ import com.ozs.common.vo.PageVo;
 import lombok.Data;
 
 import java.io.Serializable;
+import java.util.List;
 
 /**
  * <p>
@@ -52,4 +53,6 @@ public class BaseCameraManagementVo extends PageVo implements Serializable {
      * 监控范围结束里程位置字符串形式
      */
     private String endMiles;
+
+    private List<Long> ids;
 }

+ 6 - 0
business-service/src/main/resources/mapper/BaseCameraManagementMapper.xml

@@ -21,6 +21,12 @@
             <if test="endMile != null and endMile != 0">
                 and end_mile &lt;= #{endMile}
             </if>
+            <if test="ids != null and ids.size>0">
+                and a.id in
+                <foreach item="items" collection="ids" separator="," open="(" close=")" index="">
+                    #{items}
+                </foreach>
+            </if>
         </where>
     </select>