diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java index 9890d40..cfd3749 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java @@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.*; import com.hxhq.business.dto.study.StudyFormPreListDto; import com.hxhq.business.enums.study.StudyStatusEnum; +import com.hxhq.business.enums.study.StudyTypeEnum; import com.hxhq.business.form.study.StudyFormPreAuditForm; import com.hxhq.business.form.study.StudyFormPreSearchForm; import com.hxhq.business.form.study.StudyFormUpdateForm; @@ -53,8 +54,13 @@ public class StudyFormPreController extends BaseController @RequiresPermissions(value={"business:studyFormPre:bj","business:studyFormPre:xz", "business:nonTrialFormPre:bj","business:nonTrialFormPre:xz", "business:drugFormPre:bj","business:drugFormPre:xz"}, logical= Logical.OR) - public AjaxResult studyList() { + public AjaxResult studyList(Integer type) { QueryWrapper queryWrapper = Wrappers.query(); + if(type!=null){ + queryWrapper.eq("type",type); + }else{ + queryWrapper.in("type", StudyTypeEnum.fsy.getValue(), StudyTypeEnum.sy.getValue()); + } queryWrapper.in("status", StudyStatusEnum.syz.getValue(),StudyStatusEnum.ysd.getValue()); return AjaxResult.success(studyService.list(queryWrapper)); } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java index c8778cc..85764cd 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java @@ -49,6 +49,9 @@ public class TemplateServiceImpl extends ServiceImpl i if(template.getStatus()!=null && template.getStatus().intValue()>0){ queryWrapper.eq("t.status",template.getStatus()); } + if(template.getStudyType()!=null){ + queryWrapper.eq("t.study_type",template.getStudyType()); + } queryWrapper.orderByAsc("t.sn"); return baseMapper.queryList(queryWrapper); }