|
@@ -6,8 +6,8 @@
|
|
SELECT
|
|
SELECT
|
|
COUNT(q.id)
|
|
COUNT(q.id)
|
|
FROM quality_inspection_management q
|
|
FROM quality_inspection_management q
|
|
- WHERE
|
|
|
|
- q.delete_flag = '0'
|
|
|
|
|
|
+ WHERE q.comp_id = #{compId}
|
|
|
|
+ and q.delete_flag = '0'
|
|
<if test="searchKeyWord != null and searchKeyWord != ''">
|
|
<if test="searchKeyWord != null and searchKeyWord != ''">
|
|
AND (lower(q.quality_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
AND (lower(q.quality_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
OR lower(q.customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
OR lower(q.customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
@@ -42,8 +42,8 @@
|
|
q.update_date as updateDate,
|
|
q.update_date as updateDate,
|
|
q.quality_date as qualityDate
|
|
q.quality_date as qualityDate
|
|
FROM quality_inspection_management q
|
|
FROM quality_inspection_management q
|
|
- WHERE
|
|
|
|
- q.delete_flag = '0'
|
|
|
|
|
|
+ WHERE q.comp_id = #{compId}
|
|
|
|
+ and q.delete_flag = '0'
|
|
<if test="searchKeyWord != null and searchKeyWord != ''">
|
|
<if test="searchKeyWord != null and searchKeyWord != ''">
|
|
AND (lower(q.quality_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
AND (lower(q.quality_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
OR lower(q.customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
OR lower(q.customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
|