diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/study/StudyFormPreSearchForm.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/study/StudyFormPreSearchForm.java index eb85597..315e954 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/study/StudyFormPreSearchForm.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/study/StudyFormPreSearchForm.java @@ -30,6 +30,17 @@ public class StudyFormPreSearchForm { /** 创建时间开始 */ private String endDate; + /** 表单状态:1:填报中;3:已提交;5:已通过;7:未通过 ;9:待关闭;11:已关闭*/ + private Integer bdzt; + + public Integer getBdzt() { + return bdzt; + } + + public void setBdzt(Integer bdzt) { + this.bdzt = bdzt; + } + public Long getStudySubjectId() { return studySubjectId; } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java index 2976710..2da9376 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java @@ -71,9 +71,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl 0) { queryWrapper.eq("t.user_id", form.getUserId()); } - if (form.getStudyId() != null && form.getStudyId().longValue() > 0) { - queryWrapper.eq("t.study_id", form.getStudyId()); - } + queryWrapper.eq("t.study_id", form.getStudyId()); if (form.getStudySubjectId() != null && form.getStudySubjectId().longValue() > 0) { queryWrapper.eq("t.study_subject_id", form.getStudySubjectId()); } @@ -602,7 +600,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl 0) { queryWrapper.eq("t.user_id", form.getUserId()); } - if (form.getStudyId() != null && form.getStudyId().longValue() > 0) { - queryWrapper.eq("t.study_id", form.getStudyId()); - } + queryWrapper.eq("t.study_id", form.getStudyId()); if (form.getStudySubjectId() != null && form.getStudySubjectId().longValue() > 0) { queryWrapper.eq("t.study_subject_id", form.getStudySubjectId()); } @@ -669,7 +667,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl 0) { queryWrapper.eq("t.user_id", form.getUserId()); } - if (form.getStudyId() != null && form.getStudyId().longValue() > 0) { - queryWrapper.eq("t.study_id", form.getStudyId()); - } - + queryWrapper.eq("t.study_id", form.getStudyId()); if (StringUtils.isNoneBlank(form.getBdbh())) { queryWrapper.and(p -> p.like("t.`bdbh`", form.getBdbh())); } @@ -411,7 +408,7 @@ public class StudyFormPlanServiceImpl extends ServiceImpl 0) { queryWrapper.eq("t.user_id", form.getUserId()); } - if (form.getStudyId() != null && form.getStudyId().longValue() > 0) { - queryWrapper.eq("t.study_id", form.getStudyId()); + queryWrapper.eq("t.study_id", form.getStudyId()); + if (form.getBdzt() != null && form.getBdzt().intValue() > 0) { + queryWrapper.eq("t.bdzt", form.getBdzt()); } if (form.getStudySubjectId() != null && form.getStudySubjectId().longValue() > 0) { queryWrapper.eq("t.study_subject_id", form.getStudySubjectId()); @@ -526,7 +527,7 @@ public class StudyFormPreServiceImpl extends ServiceImpl