From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能

---
 service-store/src/main/java/com/java110/store/api/StoreMsgApi.java |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/service-store/src/main/java/com/java110/store/api/StoreMsgApi.java b/service-store/src/main/java/com/java110/store/api/StoreMsgApi.java
index 2b6a9ed..245bb7b 100644
--- a/service-store/src/main/java/com/java110/store/api/StoreMsgApi.java
+++ b/service-store/src/main/java/com/java110/store/api/StoreMsgApi.java
@@ -79,10 +79,9 @@
      */
     @RequestMapping(value = "/deleteStoreMsg", method = RequestMethod.POST)
     public ResponseEntity<String> deleteStoreMsg(@RequestBody JSONObject reqJson) {
-        Assert.hasKeyAndValue(reqJson, "communityId", "灏忓尯ID涓嶈兘涓虹┖");
+//        Assert.hasKeyAndValue(reqJson, "communityId", "灏忓尯ID涓嶈兘涓虹┖");
 
         Assert.hasKeyAndValue(reqJson, "msgId", "msgId涓嶈兘涓虹┖");
-
 
         StoreMsgPo storeMsgPo = BeanConvertUtil.covertBean(reqJson, StoreMsgPo.class);
         return deleteStoreMsgBMOImpl.delete(storeMsgPo);
@@ -91,19 +90,25 @@
     /**
      * 寰俊鍒犻櫎娑堟伅妯℃澘
      *
-     * @param shareId  鍒嗙墖ID
+     * @param shareId 鍒嗙墖ID
      * @return
      * @serviceCode /storeMsg/queryStoreMsg
      * @path /app/storeMsg/queryStoreMsg
      */
     @RequestMapping(value = "/queryStoreMsg", method = RequestMethod.GET)
-    public ResponseEntity<String> queryStoreMsg(@RequestParam(value = "shareId") String shareId,
+    public ResponseEntity<String> queryStoreMsg(@RequestParam(value = "shareId", required = false) String shareId,
+                                                @RequestParam(value = "title", required = false) String title,
+                                                @RequestParam(value = "msgFlag", required = false) String msgFlag,
+                                                @RequestParam(value = "msgId", required = false) String msgId,
                                                 @RequestParam(value = "page") int page,
                                                 @RequestParam(value = "row") int row) {
         StoreMsgDto storeMsgDto = new StoreMsgDto();
         storeMsgDto.setPage(page);
         storeMsgDto.setRow(row);
         storeMsgDto.setShareId(shareId);
+        storeMsgDto.setTitle(title);
+        storeMsgDto.setMsgFlag(msgFlag);
+        storeMsgDto.setMsgId(msgId);
         return getStoreMsgBMOImpl.get(storeMsgDto);
     }
 }

--
Gitblit v1.8.0