Browse Source

fix:[试验管理][预填表单]复制

master
15881625488@163.com 3 months ago
parent
commit
47f0b403f3
2 changed files with 36 additions and 10 deletions
  1. +0
    -10
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java
  2. +36
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java

+ 0
- 10
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java View File

@ -151,16 +151,6 @@ public class PublicController extends BaseController {
} }
/**
* 查询试验预填表单列表
*/
@GetMapping("/studyFormPreList")
public AjaxResult studyFormPreList(StudyFormPreSearchForm form) {
if (form.getStudyId() == null || form.getStudyId().longValue() < 0) {
throw new ServiceException("试验id不能为空");
}
return AjaxResult.success(studyFormPreService.queryList(form));
}
/** /**
* 查询暂存柜列表 * 查询暂存柜列表

+ 36
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPreController.java View File

@ -3,14 +3,20 @@ package com.hxhq.business.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hxhq.business.domain.*; import com.hxhq.business.domain.*;
import com.hxhq.business.dto.study.StudyFormPreListDto; import com.hxhq.business.dto.study.StudyFormPreListDto;
import com.hxhq.business.enums.study.StudyStatusEnum;
import com.hxhq.business.form.study.StudyFormPreAuditForm; import com.hxhq.business.form.study.StudyFormPreAuditForm;
import com.hxhq.business.form.study.StudyFormPreSearchForm; import com.hxhq.business.form.study.StudyFormPreSearchForm;
import com.hxhq.business.form.study.StudyFormUpdateForm; import com.hxhq.business.form.study.StudyFormUpdateForm;
import com.hxhq.business.service.IStudyFormPreJcgjService; import com.hxhq.business.service.IStudyFormPreJcgjService;
import com.hxhq.business.service.IStudyFormPreQmxxService; import com.hxhq.business.service.IStudyFormPreQmxxService;
import com.hxhq.business.service.IStudyService;
import com.hxhq.common.core.exception.ServiceException;
import com.hxhq.common.security.annotation.RequiresPermissions; import com.hxhq.common.security.annotation.RequiresPermissions;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -36,6 +42,36 @@ public class StudyFormPreController extends BaseController
private IStudyFormPreJcgjService studyFormPreJcgjService; private IStudyFormPreJcgjService studyFormPreJcgjService;
@Autowired @Autowired
private IStudyFormPreQmxxService studyFormPreQmxxService; private IStudyFormPreQmxxService studyFormPreQmxxService;
@Autowired
private IStudyService studyService;
/**
* 查询试验列表
*/
@GetMapping("/studyList")
@RequiresPermissions({"business:studyFormPre:bj","business:studyFormPre:xz",
"business:nonTrialFormPre:bj","business:nonTrialFormPre:xz",
"business:drugFormPre:bj","business:drugFormPre:xz"})
public AjaxResult studyList(Study study) {
QueryWrapper<Study> queryWrapper = Wrappers.query();
queryWrapper.ne("status", StudyStatusEnum.dgd.getValue());
return AjaxResult.success(studyService.list(queryWrapper));
}
/**
* 查询试验预填表单列表
*/
@GetMapping("/studyFormPreList")
@RequiresPermissions({"business:studyFormPre:bj","business:studyFormPre:xz",
"business:nonTrialFormPre:bj","business:nonTrialFormPre:xz",
"business:drugFormPre:bj","business:drugFormPre:xz"})
public AjaxResult studyFormPreList(StudyFormPreSearchForm form) {
if (form.getStudyId() == null || form.getStudyId().longValue() < 0) {
throw new ServiceException("试验id不能为空");
}
return AjaxResult.success(studyFormPreService.queryList(form));
}
/** /**
* 列表 * 列表

Loading…
Cancel
Save