|
@@ -25,7 +25,7 @@ public class PromptLetterService {
|
|
|
public PageDTO selectPromptLetter(Map<String, Object> map){//查询风险提示函
|
|
|
int page = 1; // 默认页是第一页
|
|
|
|
|
|
- long startTime = 0; // 开始时间默认0
|
|
|
+ long startTime = 0L; // 开始时间默认0
|
|
|
long endTime = Long.MAX_VALUE; // 结束时间默认Long最大值
|
|
|
|
|
|
if (!"".equals(map.get("page")) && map.get("page") != null) { // 等于空就直接取第一页
|
|
@@ -42,7 +42,7 @@ public class PromptLetterService {
|
|
|
try {
|
|
|
startTime = Long.parseLong((String) map.get("startTime"));
|
|
|
} catch (NumberFormatException e) {
|
|
|
- startTime = 0; // 数据解析异常startTime还是0
|
|
|
+ startTime = 0L; // 数据解析异常startTime还是0
|
|
|
}
|
|
|
}
|
|
|
if (!"".equals(map.get("endTime")) && map.get("endTime") != null) { // 等于空就直接取空值
|
|
@@ -63,7 +63,7 @@ public class PromptLetterService {
|
|
|
mapToDao.put("endTime", Long.MAX_VALUE);
|
|
|
}
|
|
|
mapToDao.put("rowNum", ROW_NUM); // 默认每页显示数据是10条,可根据需求修改分页数量
|
|
|
- int count = promptLetterDao.serchCountPage2();
|
|
|
+ int count = promptLetterDao.serchCountPage3(mapToDao);
|
|
|
List<PromptLetter> list=promptLetterDao.selectPromptLetter(mapToDao);
|
|
|
pageDto.setTotal(count);
|
|
|
pageDto.setRows(list);
|
|
@@ -114,7 +114,7 @@ public class PromptLetterService {
|
|
|
mapToDao.put("endTime", Long.MAX_VALUE);
|
|
|
}
|
|
|
mapToDao.put("rowNum", ROW_NUM); // 默认每页显示数据是10条,可根据需求修改分页数量
|
|
|
- int count = promptLetterDao.serchCountPage2();
|
|
|
+ int count = promptLetterDao.serchCountPage2(mapToDao);
|
|
|
List<PromptLetter> list=promptLetterDao.selectTishihan(mapToDao);
|
|
|
pageDto.setTotal(count);
|
|
|
pageDto.setRows(list);
|