zxz %!s(int64=4) %!d(string=hai) anos
pai
achega
21c1c3de84

+ 1 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/InOutWarehouseTaskServiceImpl.java

@@ -274,6 +274,7 @@ public class InOutWarehouseTaskServiceImpl extends ServiceImpl<InOutWarehouseTas
         //公司id
         pageView.put("compId", inOutWarehouseTask.getCompId());
         pageView.put("searchKeyWord", inOutWarehouseTask.getSearchKeyWord());
+        pageView.put("searchType",inOutWarehouseTask.getSearchType());
         pageView.put("pageSize", inOutWarehouseTask.getPageSize());
         pageView.put("currentPage", inOutWarehouseTask.getCurrentPage());
 

+ 28 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/InOutWarehouseTaskMapper.xml

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