Jelajahi Sumber

设备类型查询

guarantee-lsq 2 tahun lalu
induk
melakukan
31e4c498d8

+ 5 - 0
platform-dao/src/main/java/com/platform/dao/dto/sb/SbInfoDTO.java

@@ -615,4 +615,9 @@ public class SbInfoDTO extends BaseDTO implements Serializable {
      * 完善标识 1 位号 2 设备型号  3 资产编码 4 设备类型
      */
     private Integer replenishFlag;
+
+    /**
+     * 设备类型
+     */
+    private List<String> typeList;
 }

+ 6 - 0
platform-dao/src/main/resources/mapper/sb/SbInfoMapper.xml

@@ -238,6 +238,12 @@ sb.scrap_user_name,sb.repair_dept_id,sb.sort_num
                 #{item}
             </foreach>
         </if>
+        <if test="typeList != null">
+            AND sb.type_id in
+            <foreach item="item" index="index" collection="typeList" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
         <if test="useType != null">
             and sb.use_type = #{useType}
         </if>