Browse Source

feat:[计划表单,申请表单]导出

master
15881625488@163.com 2 months ago
parent
commit
79e3339bbe
2 changed files with 65 additions and 0 deletions
  1. +33
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormApplyController.java
  2. +32
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyFormPlanController.java

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

@ -1,9 +1,13 @@
package com.hxhq.business.controller; package com.hxhq.business.controller;
import java.util.HashMap;
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.StudyFormApplyListDto; import com.hxhq.business.dto.study.StudyFormApplyListDto;
import com.hxhq.business.enums.zykgl.JcgjlxEnum;
import com.hxhq.business.form.study.StudyFormApplyGcForm; import com.hxhq.business.form.study.StudyFormApplyGcForm;
import com.hxhq.business.form.study.StudyFormApplyShfzForm; import com.hxhq.business.form.study.StudyFormApplyShfzForm;
import com.hxhq.business.form.study.StudyFormApplySearchForm; import com.hxhq.business.form.study.StudyFormApplySearchForm;
@ -94,6 +98,35 @@ public class StudyFormApplyController extends BaseController {
} }
/** /**
* 稽查轨迹签名信息导出列表
*/
@GetMapping("/jcgjqmxxList")
@RequiresPermissions(value = {"business:studyFormApply:xq", "business:nonTrialFormApply:xq", "business:drugFormApply:xq"}, logical = Logical.OR)
public AjaxResult jcgjqmxxList(Integer jcgjlx,Long id) {
HashMap<String,Object> map=new HashMap<String,Object>();
//稽查轨迹
QueryWrapper<StudyFormApplyJcgj> studyFormApplyJcgjQueryWrapper = Wrappers.query();
studyFormApplyJcgjQueryWrapper.eq("form_id",id);
if(jcgjlx!=null&&jcgjlx.intValue()>0){
Integer jcgjlxExport=999;
if(jcgjlx.intValue()==jcgjlxExport){
studyFormApplyJcgjQueryWrapper.notIn("jcgjlx", JcgjlxEnum.xg.getValue());
}else{
studyFormApplyJcgjQueryWrapper.eq("jcgjlx",jcgjlx);
}
}
studyFormApplyJcgjQueryWrapper.orderByDesc("create_time");
map.put("jcgj",studyFormApplyJcgjService.list(studyFormApplyJcgjQueryWrapper));
//签名信息
QueryWrapper<StudyFormApplyQmxx> studyFormApplyQmxxQueryWrapper = Wrappers.query();
studyFormApplyQmxxQueryWrapper.eq("form_id",id);
studyFormApplyQmxxQueryWrapper.orderByDesc("create_time");
map.put("qmxx",studyFormApplyQmxxService.list(studyFormApplyQmxxQueryWrapper));
return AjaxResult.success(map);
}
/**
* 详细 * 详细
*/ */
@GetMapping(value = "/info") @GetMapping(value = "/info")

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

@ -1,9 +1,13 @@
package com.hxhq.business.controller; package com.hxhq.business.controller;
import java.util.HashMap;
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.StudyFormPlanListDto; import com.hxhq.business.dto.study.StudyFormPlanListDto;
import com.hxhq.business.enums.zykgl.JcgjlxEnum;
import com.hxhq.business.form.study.StudyFormPlanSearchForm; import com.hxhq.business.form.study.StudyFormPlanSearchForm;
import com.hxhq.business.form.study.StudyFormUpdateForm; import com.hxhq.business.form.study.StudyFormUpdateForm;
import com.hxhq.business.service.IStudyFormPlanJcgjService; import com.hxhq.business.service.IStudyFormPlanJcgjService;
@ -81,6 +85,34 @@ public class StudyFormPlanController extends BaseController
} }
/** /**
* 稽查轨迹签名信息导出列表
*/
@GetMapping("/jcgjqmxxList")
@RequiresPermissions(value = {"business:studyFormPlan:xq", "business:nonTrialFormPlan:xq", "business:drugFormPlan:xq"}, logical = Logical.OR)
public AjaxResult jcgjqmxxList(Integer jcgjlx,Long id) {
HashMap<String,Object> map=new HashMap<String,Object>();
//稽查轨迹
QueryWrapper<StudyFormPlanJcgj> studyFormPlanJcgjQueryWrapper = Wrappers.query();
studyFormPlanJcgjQueryWrapper.eq("form_id",id);
if(jcgjlx!=null&&jcgjlx.intValue()>0){
Integer jcgjlxExport=999;
if(jcgjlx.intValue()==jcgjlxExport){
studyFormPlanJcgjQueryWrapper.notIn("jcgjlx", JcgjlxEnum.xg.getValue());
}else{
studyFormPlanJcgjQueryWrapper.eq("jcgjlx",jcgjlx);
}
}
studyFormPlanJcgjQueryWrapper.orderByDesc("create_time");
map.put("jcgj",studyFormPlanJcgjService.list(studyFormPlanJcgjQueryWrapper));
//签名信息
QueryWrapper<StudyFormPlanQmxx> studyFormPlanQmxxQueryWrapper = Wrappers.query();
studyFormPlanQmxxQueryWrapper.eq("form_id",id);
studyFormPlanQmxxQueryWrapper.orderByDesc("create_time");
map.put("qmxx",studyFormPlanQmxxService.list(studyFormPlanQmxxQueryWrapper));
return AjaxResult.success(map);
}
/**
* 详细 * 详细
*/ */
@GetMapping(value = "/info") @GetMapping(value = "/info")

Loading…
Cancel
Save