|
@@ -14,6 +14,9 @@
|
|
OR lower(q.contract_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
OR lower(q.contract_no) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
OR lower(q.car_number) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
OR lower(q.car_number) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="managementType != null and managementType != ''">
|
|
|
|
+ AND q.management_type = #{managementType}
|
|
|
|
+ </if>
|
|
<if test="warehouseName != null and warehouseName != ''">
|
|
<if test="warehouseName != null and warehouseName != ''">
|
|
AND q.warehouse_name= #{warehouseName}
|
|
AND q.warehouse_name= #{warehouseName}
|
|
</if>
|
|
</if>
|
|
@@ -50,6 +53,9 @@
|
|
<if test="warehouseName != null and warehouseName != ''">
|
|
<if test="warehouseName != null and warehouseName != ''">
|
|
AND q.warehouse_name= #{warehouseName}
|
|
AND q.warehouse_name= #{warehouseName}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="managementType != null and managementType != ''">
|
|
|
|
+ AND q.management_type = #{managementType}
|
|
|
|
+ </if>
|
|
ORDER BY q.update_date DESC
|
|
ORDER BY q.update_date DESC
|
|
<if test="currentPage != null and currentPage != ''">
|
|
<if test="currentPage != null and currentPage != ''">
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
LIMIT ${startRecord}, ${pageSize}
|