|
|
|
@ -1,7 +1,10 @@
|
|
|
|
|
package com.docus.server.collection.controller;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.excel.EasyExcel;
|
|
|
|
|
import com.alibaba.excel.write.builder.ExcelWriterBuilder;
|
|
|
|
|
import com.docus.core.util.Func;
|
|
|
|
|
import com.docus.infrastructure.core.exception.BaseException;
|
|
|
|
|
import com.docus.infrastructure.util.easyexcel.ExcelUtil;
|
|
|
|
|
import com.docus.infrastructure.web.api.CommonResult;
|
|
|
|
|
import com.docus.infrastructure.web.api.ResultCode;
|
|
|
|
|
import com.docus.server.collection.converter.FirstPageCheckoutConverter;
|
|
|
|
@ -23,6 +26,8 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.io.OutputStream;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Api("梅州中西HIS相关接口")
|
|
|
|
@ -73,7 +78,22 @@ public class MzZyHisController {
|
|
|
|
|
List<VJsjWzh7addnjreport> reports = vmp.getReport(dto);
|
|
|
|
|
return CommonResult.success(reports);
|
|
|
|
|
}
|
|
|
|
|
@ApiOperation("修改记录导出excel---按勾选")
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse resp, @RequestBody List<VJsjWzh7addnjreport> vos) {
|
|
|
|
|
|
|
|
|
|
OutputStream outputStream = ExcelUtil.getOutputStream("档案修改记录.xls", resp);
|
|
|
|
|
ExcelWriterBuilder write = EasyExcel.write(outputStream, VJsjWzh7addnjreport.class);
|
|
|
|
|
write.sheet("sheet1").doWrite(vos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("修改导出excel---按条件")
|
|
|
|
|
@PostMapping("/exportAll")
|
|
|
|
|
public void exportAll(HttpServletResponse resp,
|
|
|
|
|
@RequestBody VJsjWzh7addnjreportDto dto) {
|
|
|
|
|
List<VJsjWzh7addnjreport> reports = vmp.getReport(dto);
|
|
|
|
|
export(resp, reports);
|
|
|
|
|
}
|
|
|
|
|
@ApiOperation("测试")
|
|
|
|
|
@GetMapping("/test")
|
|
|
|
|
public CommonResult<List> test() {
|
|
|
|
|