增加EXCELVO
This commit is contained in:
parent
514923cf74
commit
ad02b97f66
@ -1629,8 +1629,8 @@ public class InspectPatientController {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<InspectPatientDO> list = patientService.getPatientPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "患者信息.xls", "数据", InspectPatientRespVO.class,
|
||||
BeanUtils.toBean(list, InspectPatientRespVO.class));
|
||||
ExcelUtils.write(response, "患者信息.xls", "数据", InspectPatientExcelVO.class,
|
||||
BeanUtils.toBean(list, InspectPatientExcelVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/createPatientInspectDataReport")
|
||||
|
||||
@ -0,0 +1,45 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectpatient.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Schema(description = "患者信息 Excel 导出 VO")
|
||||
public class InspectPatientExcelVO {
|
||||
|
||||
@Schema(description = "体检编号")
|
||||
@ExcelProperty("体检编号")
|
||||
private String medicalSn;
|
||||
|
||||
@Schema(description = "患者姓名", example = "王五")
|
||||
@ExcelProperty("姓名")
|
||||
private String pName;
|
||||
|
||||
@Schema(description = "性别")
|
||||
@ExcelProperty("性别")
|
||||
private String gender;
|
||||
|
||||
@Schema(description = "证件ID", example = "32335")
|
||||
@ExcelProperty("身份证号")
|
||||
private String cardId;
|
||||
|
||||
@Schema(description = "电话")
|
||||
@ExcelProperty("联系电话")
|
||||
private String phoneNum;
|
||||
|
||||
@Schema(description = "住址")
|
||||
@ExcelProperty("住址")
|
||||
private String domicileaddress;
|
||||
|
||||
@Schema(description = "是否打印")
|
||||
@ExcelProperty("是否打印")
|
||||
private String isprint;
|
||||
|
||||
public String getIsprint() {
|
||||
if (isprint == null) {
|
||||
return "未打印";
|
||||
}
|
||||
return isprint.equals("1") ? "已打印" : "未打印";
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user