Browse Source

feat:[试验管理][预填表单]新增复制

master
15881625488@163.com 1 week ago
parent
commit
63a0bef604
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java

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

@ -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<Study> 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<StudyFormPre> queryWrapper = Wrappers.query();
queryWrapper.eq("study_id", studyFormPre.getStudyId());
return AjaxResult.success(studyFormPreService.list(queryWrapper));

Loading…
Cancel
Save