From 63a0bef604478be1ac3ad7b20efe9cecb7350fe5 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Sun, 4 Jan 2026 17:18:13 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A[=E8=AF=95=E9=AA=8C=E7=AE=A1?= =?UTF-8?q?=E7=90=86][=E9=A2=84=E5=A1=AB=E8=A1=A8=E5=8D=95]=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hxhq/business/controller/PublicController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java index 433d998..b81650e 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java @@ -11,6 +11,7 @@ import com.hxhq.business.form.study.StudySearchForm; import com.hxhq.business.service.IStudyFormPreService; import com.hxhq.business.service.IStudyService; import com.hxhq.business.service.ITemplateService; +import com.hxhq.common.core.exception.ServiceException; import com.hxhq.common.core.web.controller.BaseController; import com.hxhq.common.core.web.domain.AjaxResult; import com.hxhq.common.core.web.page.TableDataInfo; @@ -57,7 +58,7 @@ public class PublicController extends BaseController public AjaxResult studyList() { QueryWrapper queryWrapper = Wrappers.query(); - queryWrapper.eq("status", StudyStatusEnum.dgd.getValue()); +// queryWrapper.eq("status", StudyStatusEnum.dgd.getValue()); todo return AjaxResult.success(studyService.list(queryWrapper)); } @@ -67,6 +68,9 @@ public class PublicController extends BaseController @GetMapping("/studyFormPreList") public AjaxResult studyFormPreList(StudyFormPre studyFormPre) { + if(studyFormPre.getStudyId()==null||studyFormPre.getStudyId().longValue()<0){ + throw new ServiceException("试验id不能为空"); + } QueryWrapper queryWrapper = Wrappers.query(); queryWrapper.eq("study_id", studyFormPre.getStudyId()); return AjaxResult.success(studyFormPreService.list(queryWrapper));