|
|
|
@ -1,16 +1,17 @@ |
|
|
|
package com.hxhq.business.controller; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import com.hxhq.business.domain.StudyFormPlan; |
|
|
|
import com.hxhq.business.domain.StudyFormPlanJcgj; |
|
|
|
import com.hxhq.business.domain.StudyFormPlanQmxx; |
|
|
|
|
|
|
|
import com.hxhq.business.domain.*; |
|
|
|
import com.hxhq.business.dto.study.StudyFormPlanListDto; |
|
|
|
import com.hxhq.business.form.study.StudyFormPlanSearchForm; |
|
|
|
import com.hxhq.business.form.study.StudyFormUpdateForm; |
|
|
|
import com.hxhq.business.service.IStudyFormPlanJcgjService; |
|
|
|
import com.hxhq.business.service.IStudyFormPlanQmxxService; |
|
|
|
import com.hxhq.business.utils.pdf.PdfExportUtil; |
|
|
|
import com.hxhq.common.security.annotation.RequiresPermissions; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import com.hxhq.business.service.IStudyFormPlanService; |
|
|
|
import com.hxhq.common.core.web.controller.BaseController; |
|
|
|
@ -34,6 +35,16 @@ public class StudyFormPlanController extends BaseController |
|
|
|
private IStudyFormPlanJcgjService studyFormPlanJcgjService; |
|
|
|
@Autowired |
|
|
|
private IStudyFormPlanQmxxService studyFormPlanQmxxService; |
|
|
|
/** |
|
|
|
* 上传文件存储在本地的根路径 |
|
|
|
*/ |
|
|
|
@Value("${file.path}") |
|
|
|
private String localFilePath; |
|
|
|
/** |
|
|
|
* 资源映射路径 前缀 |
|
|
|
*/ |
|
|
|
@Value("${file.prefix}") |
|
|
|
public String localFilePrefix; |
|
|
|
|
|
|
|
/** |
|
|
|
* 列表 |
|
|
|
@ -77,6 +88,19 @@ public class StudyFormPlanController extends BaseController |
|
|
|
return AjaxResult.success(studyFormPlanService.queryInfo(id)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 导出 |
|
|
|
*/ |
|
|
|
@RequiresPermissions({"business:studyFormPlan:xq"}) |
|
|
|
@GetMapping(value = "/exportDetail") |
|
|
|
public AjaxResult exportDetail(StudyFormPlanJcgj form) { |
|
|
|
List<StudyFormPlanJcgj> studyFormPlanJcgjList = studyFormPlanJcgjService.queryList(form); |
|
|
|
StudyFormPlanQmxx studyFormPlanQmxx = new StudyFormPlanQmxx(); |
|
|
|
studyFormPlanQmxx.setFormId(form.getFormId()); |
|
|
|
List<StudyFormPlanQmxx> studyFormPlanQmxxList = studyFormPlanQmxxService.queryList(studyFormPlanQmxx); |
|
|
|
StudyFormPlan studyFormPlan=studyFormPlanService.queryInfo(form.getFormId()); |
|
|
|
return AjaxResult.success(localFilePrefix + PdfExportUtil.export(studyFormPlan.getTemplateExportClass(), studyFormPlan.getTemplateExportMethod(),studyFormPlan,studyFormPlanQmxxList,studyFormPlanJcgjList,form.getLang(),form.getJcgjlx(),localFilePath)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 更换归属人 |
|
|
|
|