From b7eec5ee6770cc531dd57a4eca940f6886224aff Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期五, 29 八月 2025 16:39:01 +0800 Subject: [PATCH] 页面条件查询 --- src/main/java/com/fzzy/api/view/pr/Api1208PR.java | 4 ++-- src/main/java/com/fzzy/api/view/pr/Api1109PR.java | 4 ++-- src/main/java/com/fzzy/api/view/pr/Api1204PR.java | 4 ++-- src/main/java/com/fzzy/api/view/pr/Api1203PR.java | 4 ++-- src/main/java/com/fzzy/api/view/pr/Api1207PR.java | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/fzzy/api/view/pr/Api1109PR.java b/src/main/java/com/fzzy/api/view/pr/Api1109PR.java index 252b6d0..f4d2885 100644 --- a/src/main/java/com/fzzy/api/view/pr/Api1109PR.java +++ b/src/main/java/com/fzzy/api/view/pr/Api1109PR.java @@ -87,12 +87,12 @@ predicates.add(predicate2); } if (null != param.getStart()) { - Predicate predicate3 = cb.greaterThan(root.<Date>get("qdrq"), ContextUtil.getCurZero(param.getStart())); + Predicate predicate3 = cb.greaterThan(root.<Date>get("zhgxsj"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { - Predicate predicate4 = cb.lessThan(root.<Date>get("qdrq"), ContextUtil.getNextZero(param.getEnd())); + Predicate predicate4 = cb.lessThan(root.<Date>get("zhgxsj"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } return cb.and(predicates.toArray(new Predicate[0])); diff --git a/src/main/java/com/fzzy/api/view/pr/Api1203PR.java b/src/main/java/com/fzzy/api/view/pr/Api1203PR.java index 367508d..0807b88 100644 --- a/src/main/java/com/fzzy/api/view/pr/Api1203PR.java +++ b/src/main/java/com/fzzy/api/view/pr/Api1203PR.java @@ -85,12 +85,12 @@ predicates.add(predicate2); } if (null != param.getStart()) { - Predicate predicate3 = cb.greaterThan(root.get("ywrq"), ContextUtil.getCurZero(param.getStart())); + Predicate predicate3 = cb.greaterThan(root.get("jysj"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { - Predicate predicate4 = cb.lessThan(root.get("ywrq"), ContextUtil.getNextZero(param.getEnd())); + Predicate predicate4 = cb.lessThan(root.get("jysj"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } return cb.and(predicates.toArray(new Predicate[0])); diff --git a/src/main/java/com/fzzy/api/view/pr/Api1204PR.java b/src/main/java/com/fzzy/api/view/pr/Api1204PR.java index 3f61b3a..6f8bc99 100644 --- a/src/main/java/com/fzzy/api/view/pr/Api1204PR.java +++ b/src/main/java/com/fzzy/api/view/pr/Api1204PR.java @@ -86,12 +86,12 @@ predicates.add(predicate2); } if (null != param.getStart()) { - Predicate predicate3 = cb.greaterThan(root.get("ywrq"), ContextUtil.getCurZero(param.getStart())); + Predicate predicate3 = cb.greaterThan(root.get("jssj"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { - Predicate predicate4 = cb.lessThan(root.get("ywrq"), ContextUtil.getNextZero(param.getEnd())); + Predicate predicate4 = cb.lessThan(root.get("jssj"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } return cb.and(predicates.toArray(new Predicate[0])); diff --git a/src/main/java/com/fzzy/api/view/pr/Api1207PR.java b/src/main/java/com/fzzy/api/view/pr/Api1207PR.java index 4d6f01e..c3e31a0 100644 --- a/src/main/java/com/fzzy/api/view/pr/Api1207PR.java +++ b/src/main/java/com/fzzy/api/view/pr/Api1207PR.java @@ -86,12 +86,12 @@ predicates.add(predicate2); } if (null != param.getStart()) { - Predicate predicate3 = cb.greaterThan(root.get("jssj"), ContextUtil.getCurZero(param.getStart())); + Predicate predicate3 = cb.greaterThan(root.get("dcrq"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { - Predicate predicate4 = cb.lessThan(root.get("jssj"), ContextUtil.getNextZero(param.getEnd())); + Predicate predicate4 = cb.lessThan(root.get("dcrq"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } return cb.and(predicates.toArray(new Predicate[0])); diff --git a/src/main/java/com/fzzy/api/view/pr/Api1208PR.java b/src/main/java/com/fzzy/api/view/pr/Api1208PR.java index 60cb487..a27e2d1 100644 --- a/src/main/java/com/fzzy/api/view/pr/Api1208PR.java +++ b/src/main/java/com/fzzy/api/view/pr/Api1208PR.java @@ -84,12 +84,12 @@ predicates.add(predicate2); } if (null != param.getStart()) { - Predicate predicate3 = cb.greaterThan(root.get("rcsj"), ContextUtil.getCurZero(param.getStart())); + Predicate predicate3 = cb.greaterThan(root.get("zhgxsj"), ContextUtil.getCurZero(param.getStart())); predicates.add(predicate3); } if (null != param.getEnd()) { - Predicate predicate4 = cb.lessThan(root.get("rcsj"), ContextUtil.getNextZero(param.getEnd())); + Predicate predicate4 = cb.lessThan(root.get("zhgxsj"), ContextUtil.getNextZero(param.getEnd())); predicates.add(predicate4); } return cb.and(predicates.toArray(new Predicate[0])); -- Gitblit v1.9.3