Selaa lähdekoodia

疫情上报 信息

jz.kai 5 vuotta sitten
vanhempi
commit
93987567dc

+ 2 - 2
common/src/main/resources/mapper/base/MessageNotice.xml

@@ -96,8 +96,8 @@ id_,title_,content_,sender_id,recipient_id,status_,del_flag,create_by,create_tim
 		]]>
 		<where>
 			and del_flag = false
-			<if test="searchParams.id != null">
-				and ID_ like #{searchParams.id}
+			<if test="searchParams.title != null">
+				and title_ like #{searchParams.title}
 			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">

+ 2 - 2
common/src/main/resources/mapper/base/MessageReport.xml

@@ -96,8 +96,8 @@ id_,title_,content_,sender_id,recipient_id,status_,del_flag,create_by,create_tim
 		]]>
 		<where>
 			and del_flag = false
-			<if test="searchParams.id != null">
-				and ID_ like #{searchParams.id}
+			<if test="searchParams.title != null">
+				and title_ like #{searchParams.title}
 			</if>
 		</where>
 		<foreach item="sort" collection="sortList"  open="order by" separator=",">

+ 3 - 3
web/src/main/java/com/jpsoft/smart/modules/base/controller/MessageNoticeController.java

@@ -196,7 +196,7 @@ public class MessageNoticeController {
     @ApiOperation(value="列表")
     @RequestMapping(value = "pageList",method = RequestMethod.POST)
     public MessageResult<Map> pageList(
-            String id,
+            String title,
             @RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
             @RequestParam(value="pageSize",defaultValue="20") int pageSize,
             @RequestAttribute String subject){
@@ -211,8 +211,8 @@ public class MessageNoticeController {
         List<Sort> sortList = new ArrayList<>();
         sortList.add(new Sort("create_time","desc"));
 
-        if (StringUtils.isNotEmpty(id)) {
-            searchParams.put("id","%" + id + "%");
+        if (StringUtils.isNotEmpty(title)) {
+            searchParams.put("title","%" + title + "%");
         }
 
         Page<MessageNotice> page = messageNoticeService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);

+ 3 - 3
web/src/main/java/com/jpsoft/smart/modules/base/controller/MessageReportController.java

@@ -196,7 +196,7 @@ public class MessageReportController {
     @ApiOperation(value="列表")
     @RequestMapping(value = "pageList",method = RequestMethod.POST)
     public MessageResult<Map> pageList(
-            String id,
+            String title,
             @RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
             @RequestParam(value="pageSize",defaultValue="20") int pageSize,
             @RequestAttribute String subject){
@@ -211,8 +211,8 @@ public class MessageReportController {
         List<Sort> sortList = new ArrayList<>();
         sortList.add(new Sort("create_time","desc"));
 
-        if (StringUtils.isNotEmpty(id)) {
-            searchParams.put("id","%" + id + "%");
+        if (StringUtils.isNotEmpty(title)) {
+            searchParams.put("title","%" + title + "%");
         }
 
         Page<MessageReport> page = messageReportService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);