|
@@ -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
|