|
@@ -197,8 +197,16 @@ public class WarningPusherController {
|
|
|
|
|
|
@ApiOperation(value="列表")
|
|
@ApiOperation(value="列表")
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
@RequestMapping(value = "pageList",method = RequestMethod.POST)
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "name",value = "姓名", required = false, paramType = "form",dataType = "String"),
|
|
|
|
+ @ApiImplicitParam(name = "phone",value = "手机号", required = false, paramType = "form",dataType = "String"),
|
|
|
|
+ @ApiImplicitParam(name = "companyId",value = "企业id", required = false, paramType = "form",dataType = "String")
|
|
|
|
+ })
|
|
public MessageResult<Map> pageList(
|
|
public MessageResult<Map> pageList(
|
|
String id,
|
|
String id,
|
|
|
|
+ @RequestParam(value="name",defaultValue="") String name,
|
|
|
|
+ @RequestParam(value="companyId",defaultValue="") String companyId,
|
|
|
|
+ @RequestParam(value="phone",defaultValue="") String phone,
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
@RequestParam(value="pageIndex",defaultValue="1") int pageIndex,
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
@RequestParam(value="pageSize",defaultValue="20") int pageSize,
|
|
@RequestAttribute String subject){
|
|
@RequestAttribute String subject){
|
|
@@ -211,11 +219,20 @@ public class WarningPusherController {
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
|
|
|
|
List<Sort> sortList = new ArrayList<>();
|
|
List<Sort> sortList = new ArrayList<>();
|
|
- sortList.add(new Sort("id_","asc"));
|
|
|
|
|
|
+ sortList.add(new Sort("b.sort_no","asc"));
|
|
|
|
|
|
if (StringUtils.isNotEmpty(id)) {
|
|
if (StringUtils.isNotEmpty(id)) {
|
|
searchParams.put("id","%" + id + "%");
|
|
searchParams.put("id","%" + id + "%");
|
|
}
|
|
}
|
|
|
|
+ if (StringUtils.isNotEmpty(name)) {
|
|
|
|
+ searchParams.put("name","%" + name + "%");
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isNotEmpty(phone)) {
|
|
|
|
+ searchParams.put("phone","%" + phone + "%");
|
|
|
|
+ }
|
|
|
|
+ if (StringUtils.isNotEmpty(companyId)) {
|
|
|
|
+ searchParams.put("companyId",companyId);
|
|
|
|
+ }
|
|
|
|
|
|
Page<WarningPusher> page = warningPusherService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);
|
|
Page<WarningPusher> page = warningPusherService.pageSearch(searchParams,pageIndex,pageSize,true,sortList);
|
|
|
|
|