|
@@ -257,7 +257,7 @@ public class NetworkNoticeController {
|
|
|
@ApiOperation(value="列表")
|
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
|
public MessageResult<Map> pageList(
|
|
|
- String id,
|
|
|
+ String name,
|
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
|
HttpServletRequest request){
|
|
@@ -273,8 +273,8 @@ public class NetworkNoticeController {
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
|
sortList.add(new Sort("create_time","desc"));
|
|
|
|
|
|
- if (StringUtils.isNotEmpty(id)) {
|
|
|
- searchParams.put("id","%" + id + "%");
|
|
|
+ if (StringUtils.isNotEmpty(name)) {
|
|
|
+ searchParams.put("name","%" + name + "%");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -296,7 +296,9 @@ public class NetworkNoticeController {
|
|
|
if (jsonArray.size() > 0) {
|
|
|
JSONObject jsonObject = JSONObject.fromObject(jsonArray.get(0));
|
|
|
String tempAddress = jsonObject.getString("url");
|
|
|
+ String urlName = jsonObject.getString("name");
|
|
|
networkNotice.setUrl(tempAddress);
|
|
|
+ networkNotice.setUrlName(urlName);
|
|
|
}
|
|
|
|
|
|
}
|