From 55eb68a64a8ece9b1beaf63d477bf1a976d9ce5c Mon Sep 17 00:00:00 2001
From: fengjin <1435304038@qq.com>
Date: 星期五, 21 十月 2022 17:53:09 +0800
Subject: [PATCH] 修改bug

---
 flower_city/src/main/java/com/dg/core/api/TransactionEventAppletsController.java    |    4 ++--
 flower_city/src/main/java/com/dg/core/service/ITransactionEventService.java         |    2 +-
 flower_city/src/main/java/com/dg/core/service/impl/TransactionEventImpl.java        |    7 ++++++-
 flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java    |    4 ++--
 flower_city/src/main/java/com/dg/core/service/impl/GuideRepairOrderServiceImpl.java |    4 ++--
 5 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/flower_city/src/main/java/com/dg/core/api/TransactionEventAppletsController.java b/flower_city/src/main/java/com/dg/core/api/TransactionEventAppletsController.java
index 35912db..c480df8 100644
--- a/flower_city/src/main/java/com/dg/core/api/TransactionEventAppletsController.java
+++ b/flower_city/src/main/java/com/dg/core/api/TransactionEventAppletsController.java
@@ -50,9 +50,9 @@
      */
     @ApiOperation(value = "导办事物列表(不分页)",response = TransactionEvent.class)
     @GetMapping("/selectList")
-    public TableDataInfo selectList()
+    public TableDataInfo selectList(@RequestParam(value = "keyWord",required = false) String keyWord)
     {
-        return getDataTable(iTransactionEventService.selectList());
+        return getDataTable(iTransactionEventService.selectList(keyWord));
     }
 
 
diff --git a/flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java b/flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java
index 4ae077e..f44ee1d 100644
--- a/flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java
+++ b/flower_city/src/main/java/com/dg/core/controller/TransactionEventController.java
@@ -80,9 +80,9 @@
      */
     @ApiOperation(value = "导办事物列表(不分页)",response = TransactionEvent.class)
     @GetMapping("/selectList")
-    public TableDataInfo selectList()
+    public TableDataInfo selectList(@RequestParam(value = "keyWord",required = false) String keyWord)
     {
-        return getDataTable(iTransactionEventService.selectList());
+        return getDataTable(iTransactionEventService.selectList(keyWord));
     }
 
     /**
diff --git a/flower_city/src/main/java/com/dg/core/service/ITransactionEventService.java b/flower_city/src/main/java/com/dg/core/service/ITransactionEventService.java
index f12a26e..c91a585 100644
--- a/flower_city/src/main/java/com/dg/core/service/ITransactionEventService.java
+++ b/flower_city/src/main/java/com/dg/core/service/ITransactionEventService.java
@@ -122,7 +122,7 @@
      * 导办事物列表(不分页)
      * @return
      */
-    List<TransactionEvent> selectList();
+    List<TransactionEvent> selectList(String keyWord);
 
     /**
      * 智能咨询
diff --git a/flower_city/src/main/java/com/dg/core/service/impl/GuideRepairOrderServiceImpl.java b/flower_city/src/main/java/com/dg/core/service/impl/GuideRepairOrderServiceImpl.java
index 402927e..7c68f6d 100644
--- a/flower_city/src/main/java/com/dg/core/service/impl/GuideRepairOrderServiceImpl.java
+++ b/flower_city/src/main/java/com/dg/core/service/impl/GuideRepairOrderServiceImpl.java
@@ -315,7 +315,7 @@
                 DateTime dateTime = td.nextWeekDay(dateTimeUser);
                 Calendar calendar = dateTime.toCalendar();
                 LocalDateTime localDateTime = LocalDateTime.of(calendar.get(Calendar.YEAR),
-                        calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE),
+                        calendar.get(Calendar.MONTH)+1, calendar.get(Calendar.DATE),
                         9 + automessageSysSettings.getTimeoutNotificationNum(), 0);//设置时间为下一个工作日时间的9点+设置超时时间
                 guideRepairOrder.setTimeoutTime(localDateTime);
             }
@@ -324,7 +324,7 @@
             DateTime dateTime = td.nextWeekDay(dateTimeUser);
             Calendar calendar = dateTime.toCalendar();
             LocalDateTime localDateTime = LocalDateTime.of(calendar.get(Calendar.YEAR),
-                    calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE),
+                    calendar.get(Calendar.MONTH)+1, calendar.get(Calendar.DATE),
                     9 + automessageSysSettings.getTimeoutNotificationNum(), 0);//设置时间为下一个工作日时间的9点+设置超时时间
             guideRepairOrder.setTimeoutTime(localDateTime);
         }
diff --git a/flower_city/src/main/java/com/dg/core/service/impl/TransactionEventImpl.java b/flower_city/src/main/java/com/dg/core/service/impl/TransactionEventImpl.java
index ef4f73f..031bf93 100644
--- a/flower_city/src/main/java/com/dg/core/service/impl/TransactionEventImpl.java
+++ b/flower_city/src/main/java/com/dg/core/service/impl/TransactionEventImpl.java
@@ -229,7 +229,12 @@
     }
 
     @Override
-    public List<TransactionEvent> selectList() {
+    public List<TransactionEvent> selectList(String keyWord) {
+        if (keyWord!=null&&keyWord!=""){
+            return baseMapper.selectList(new QueryWrapper<TransactionEvent>().lambda().like(TransactionEvent::getMatterName,keyWord));
+        }
+        else {
         return baseMapper.selectList(new QueryWrapper<TransactionEvent>().lambda());
+        }
     }
 }

--
Gitblit v1.7.1