diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighUserController.java b/hai-bweb/src/main/java/com/bweb/controller/HighUserController.java index d78c5791..4f1f8d7c 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/HighUserController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/HighUserController.java @@ -5,6 +5,7 @@ import com.github.pagehelper.PageInfo; import com.hai.common.exception.ErrorCode; import com.hai.common.exception.ErrorHelp; import com.hai.common.exception.SysCode; +import com.hai.common.utils.DateUtil; import com.hai.common.utils.ResponseMsgUtil; import com.hai.entity.HighUser; import com.hai.model.ResponseData; @@ -43,9 +44,9 @@ public class HighUserController { public ResponseData getPagePosition( @RequestParam(value = "name", required = false) String name, @RequestParam(value = "phone", required = false) String phone, - @RequestParam(value = "status", required = false) String status, - @RequestParam(value = "regTimeStart", required = false) String regTimeStart, - @RequestParam(value = "regTimeEnd", required = false) String regTimeEnd, + @RequestParam(value = "status", required = false) Integer status, + @RequestParam(value = "regTimeStart", required = false) Date regTimeStart, + @RequestParam(value = "regTimeEnd", required = false) Date regTimeEnd, @RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageSize", required = true) Integer pageSize ) { @@ -59,14 +60,14 @@ public class HighUserController { if (StringUtils.isNotBlank(phone)) { map.put("phone", phone); } - if (StringUtils.isNotBlank(status)) { - map.put("status", status); + if (status != null) { + map.put("status", Integer.toString(status)); } - if (StringUtils.isNotBlank(regTimeStart)) { - map.put("regTimeStart", regTimeStart); + if (regTimeStart != null) { + map.put("regTimeStart", DateUtil.date2String(regTimeStart,DateUtil.ymd_HM)); } - if (StringUtils.isNotBlank(regTimeEnd)) { - map.put("regTimeEnd", regTimeEnd); + if (regTimeEnd != null) { + map.put("regTimeEnd", DateUtil.date2String(regTimeEnd,DateUtil.ymd_HM)); } PageHelper.startPage(pageNum, pageSize);