Bläddra i källkod

添加工单查询

lyhzzz 2 år sedan
förälder
incheckning
cce8d93a48

+ 1 - 0
src/main/java/com/fdkankan/sale/vo/request/RepairInfoListParam.java

@@ -21,4 +21,5 @@ public class RepairInfoListParam extends RequestBase {
     private Integer payStatus;
     private Integer commentStatus;
     private Set<String> repairIds;
+    private String repairId;
 }

+ 12 - 0
src/main/resources/mapper/sale/RepairMapper.xml

@@ -47,6 +47,9 @@
         <foreach item="status" collection="param.statusList" open="(" separator="," close=")">
             #{status}
         </foreach>
+        <if test="param.repairId != null and param.repairId != ''">
+            and r.repair_id like  concat ('%',#{param.repairId},'%')
+        </if>
         <if test="param.cameraType != null">
             and r.camera_type = #{param.cameraType}
         </if>
@@ -71,6 +74,9 @@
         <foreach item="status" collection="param.statusList" open="(" separator="," close=")">
             #{status}
         </foreach>
+        <if test="param.repairId != null and param.repairId != ''">
+            and r.repair_id like  concat ('%',#{param.repairId},'%')
+        </if>
         <if test="param.cameraType != null">
             and r.camera_type = #{param.cameraType}
         </if>
@@ -91,6 +97,9 @@
         <foreach item="status" collection="param.statusList" open="(" separator="," close=")">
             #{status}
         </foreach>
+        <if test="param.repairId != null and param.repairId != ''">
+            and r.repair_id like  concat ('%',#{param.repairId},'%')
+        </if>
         <if test="param.cameraType != null">
             and r.camera_type = #{param.cameraType}
         </if>
@@ -113,6 +122,9 @@
         left join  t_customer c on r.repair_id = c.repair_id
         left join t_repair_pay rp on r.repair_id = rp.repair_id
         where r.rec_status = 'A'
+        <if test="param.repairId != null and param.repairId != ''">
+            and r.repair_id like  concat ('%',#{param.repairId},'%')
+        </if>
         <if test="param.status != null">
             and r.status = #{param.status}
         </if>