parent
6f65476ebc
commit
0a4ca04505
9 changed files with 301 additions and 44 deletions
@ -0,0 +1,41 @@ |
|||||||
|
package org.springblade.common.enums; |
||||||
|
|
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import lombok.Getter; |
||||||
|
|
||||||
|
/** |
||||||
|
* 错误信息枚举类 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@Getter |
||||||
|
@AllArgsConstructor |
||||||
|
public enum ApmRecordStatusEnum { |
||||||
|
|
||||||
|
CANCEL(1, "已取消"), |
||||||
|
UNREGISTER(2, "未报到"), |
||||||
|
REGISTER(3, "已报到"), |
||||||
|
; |
||||||
|
|
||||||
|
final Integer name; |
||||||
|
|
||||||
|
final String value; |
||||||
|
|
||||||
|
public static Integer getName(String val) { |
||||||
|
for (ApmRecordStatusEnum value : ApmRecordStatusEnum.values()) { |
||||||
|
if (value.getValue().equals(val)) { |
||||||
|
return value.getName(); |
||||||
|
} |
||||||
|
} |
||||||
|
return -1; |
||||||
|
} |
||||||
|
|
||||||
|
public static String getValue(Integer name) { |
||||||
|
for (ApmRecordStatusEnum value : ApmRecordStatusEnum.values()) { |
||||||
|
if (value.getName().equals(name)) { |
||||||
|
return value.getValue(); |
||||||
|
} |
||||||
|
} |
||||||
|
return ""; |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,73 @@ |
|||||||
|
package org.springblade.modules.business.vo; |
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||||
|
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||||
|
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||||
|
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 预约记录导出视图类 |
||||||
|
* |
||||||
|
* @author Chill |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ColumnWidth(30) |
||||||
|
@HeadRowHeight(25) |
||||||
|
@ContentRowHeight(25) |
||||||
|
public class ApmRecordExcelVO implements Serializable { |
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 创建部门名称 |
||||||
|
*/ |
||||||
|
@ColumnWidth(25) |
||||||
|
@ExcelProperty(value = "医院名称") |
||||||
|
private String createDeptName; |
||||||
|
|
||||||
|
/** |
||||||
|
* 体检人用户名 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty(value = "体检人姓名") |
||||||
|
private String cupName; |
||||||
|
|
||||||
|
/** |
||||||
|
* 体检人证件号 |
||||||
|
*/ |
||||||
|
@ColumnWidth(25) |
||||||
|
@ExcelProperty(value = "身份证号码") |
||||||
|
private String cupCardNo; |
||||||
|
|
||||||
|
/** |
||||||
|
* 体检人联系方式 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty(value = "联系方式") |
||||||
|
private String cupPhone; |
||||||
|
|
||||||
|
/** |
||||||
|
* 体检项目 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty(value = "检测项目") |
||||||
|
private String project; |
||||||
|
|
||||||
|
/** |
||||||
|
* 预约时间 放号天 + 时段(上午,下午) + 时段范围 |
||||||
|
*/ |
||||||
|
@ColumnWidth(30) |
||||||
|
@ExcelProperty(value = "预约时间") |
||||||
|
private String apmTimeStr; |
||||||
|
|
||||||
|
/** |
||||||
|
* 预约状态名称, 0:已保存,1已取消,2:未报到, 3:已报到 |
||||||
|
*/ |
||||||
|
@ColumnWidth(20) |
||||||
|
@ExcelProperty(value = "预约状态") |
||||||
|
private String apmStatusName; |
||||||
|
|
||||||
|
} |
||||||
Loading…
Reference in new issue