|
|
@ -18,6 +18,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
@ -60,8 +61,9 @@ public class TRecordController extends BaseController
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Log(title = "诊断记录信息导出", businessType = BusinessType.EXPORT)
|
|
|
|
@Log(title = "诊断记录信息导出", businessType = BusinessType.EXPORT)
|
|
|
|
@PostMapping("/export")
|
|
|
|
@PostMapping("/export")
|
|
|
|
public void export(HttpServletResponse response, TRecordResultReq tRecord)
|
|
|
|
public void export(HttpServletResponse response, @RequestBody @Validated TRecordResultReq tRecord)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
startPage();
|
|
|
|
List<TRecordResp> list = tRecordService.selectTRecordListWithoutResult(tRecord);
|
|
|
|
List<TRecordResp> list = tRecordService.selectTRecordListWithoutResult(tRecord);
|
|
|
|
ExcelUtil<TRecordResp> util = new ExcelUtil<>(TRecordResp.class);
|
|
|
|
ExcelUtil<TRecordResp> util = new ExcelUtil<>(TRecordResp.class);
|
|
|
|
util.exportExcel(response, list, "诊断记录信息数据");
|
|
|
|
util.exportExcel(response, list, "诊断记录信息数据");
|
|
|
|