|
@@ -116,6 +116,20 @@
|
|
|
OR lower(a.warehouse_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
|
OR lower(b.warehouse_name) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
|
</if>
|
|
|
+ <if test="searchType != null and searchType != ''">
|
|
|
+ <if test="searchType == 1">
|
|
|
+ AND a.task_status_key = '1'
|
|
|
+ </if>
|
|
|
+ <if test="searchType == 2">
|
|
|
+ AND a.task_status_key = '3'
|
|
|
+ </if>
|
|
|
+ <if test="searchType == 3">
|
|
|
+ AND a.task_status_key = '5'
|
|
|
+ </if>
|
|
|
+ <if test="searchType == 4">
|
|
|
+ AND a.task_status_key = '7'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
ORDER BY a.task_status DESC , a.establish_date DESC
|
|
|
<if test="currentPage != null and currentPage != ''">
|
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
@@ -144,5 +158,19 @@
|
|
|
OR lower(a.warehouse_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
|
|
|
OR lower(b.warehouse_name) like lower(CONCAT('%',#{searchKeyWord},'%')))
|
|
|
</if>
|
|
|
+ <if test="searchType != null and searchType != ''">
|
|
|
+ <if test="searchType == 1">
|
|
|
+ AND a.task_status_key = '1'
|
|
|
+ </if>
|
|
|
+ <if test="searchType == 2">
|
|
|
+ AND a.task_status_key = '3'
|
|
|
+ </if>
|
|
|
+ <if test="searchType == 3">
|
|
|
+ AND a.task_status_key = '5'
|
|
|
+ </if>
|
|
|
+ <if test="searchType == 4">
|
|
|
+ AND a.task_status_key = '7'
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|