Browse Source

维修方案

guarantee-lsq 2 years ago
parent
commit
329cd3b187

+ 6 - 0
platform-dao/src/main/java/com/platform/dao/dto/repair/RepairSchemeDTO.java

@@ -94,4 +94,10 @@ public class RepairSchemeDTO extends BaseDTO implements Serializable {
      */
     private String keyword;
 
+    private String sbId; // 维修设备ID
+
+    private String sbPartId; // 维修设备部位ID
+
+    private String errorTypeId; // 异常类别
+
 }

+ 7 - 1
platform-dao/src/main/resources/mapper/repair/RepairSchemeMapper.xml

@@ -66,8 +66,14 @@
         <if test="deleteFlag != null">
             and repair.delete_flag = #{deleteFlag}
         </if>
+        <if test="sbId != null and sbId != ''">
+            and repair.sb_id = #{sbId}
+        </if>
+        <if test="errorTypeId != null and errorTypeId != ''">
+            and repair.error_type_id  = #{errorTypeId}
+        </if>
         <if test="keyword != null and keyword != ''">
-            and repair.id like concat(concat('%',#{keyword}),'%')
+            and repair.error_content like concat(concat('%',#{keyword}),'%')
         </if>
     </sql>
     <select id="selectList" parameterType="com.platform.dao.dto.repair.RepairSchemeDTO"