zxz 3 éve
szülő
commit
d35d8c0e89

+ 4 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/entity/QualityInspectionManagement.java

@@ -48,6 +48,10 @@ public class QualityInspectionManagement extends BaseModel<QualityInspectionMana
      * 质检编号
      */
     private String qualityNo;
+    /**
+     * 合同编号
+     */
+    private String contractNo;
     /**
      * 客户
      */

+ 3 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/QualityInspectionManagementMapper.xml

@@ -11,6 +11,7 @@
         <if test="searchKeyWord != null and searchKeyWord != ''">
             AND (lower(q.quality_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(q.customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
+            OR lower(q.contract_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(q.car_number) like lower(CONCAT('%',#{searchKeyWord},'%')))
         </if>
     </select>
@@ -20,6 +21,7 @@
         SELECT
         q.id,
         q.quality_no as qualityNo,
+        q.contract_no as contractNo,
         q.customer_name as customerName,
         q.quality_inspector as qualityInspector,
         q.car_number as carNumber,
@@ -36,6 +38,7 @@
         <if test="searchKeyWord != null and searchKeyWord != ''">
             AND (lower(q.quality_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(q.customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
+            OR lower(q.contract_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(q.car_number) like lower(CONCAT('%',#{searchKeyWord},'%')))
         </if>
         ORDER BY q.quality_date DESC