feat(传染病报卡): 新增传染病报卡管理功能模块

实现传染病报卡的基础功能,包括:
1. 新增报卡查询参数DTO、报卡详情DTO和状态枚举
2. 添加报卡Mapper接口及XML实现分页查询和详情查询
3. 实现报卡AppService接口及Controller提供REST API
4. 新增前端API接口定义
5. 添加审核记录实体类
This commit is contained in:
wangjian963
2026-03-18 17:24:30 +08:00
parent 40c5d26dfd
commit 5795d9eb74
13 changed files with 2528 additions and 36 deletions

View File

@@ -0,0 +1,68 @@
package com.openhis.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 传染病报告卡状态枚举
* 0 暂存/1 已提交=待审核/2 已审核=审核通过/3 已上报/4 失败/5 退回=审核失败
*
* @author system
* @date 2026-03-18
*/
@Getter
@AllArgsConstructor
public enum ReportCardStatus implements HisEnumInterface {
DRAFT(0, "draft", "暂存"),
SUBMITTED(1, "submitted", "已提交"),
AUDITED(2, "audited", "已审核"),
REPORTED(3, "reported", "已上报"),
FAILED(4, "failed", "失败"),
RETURNED(5, "returned", "退回");
@EnumValue
private final Integer value;
private final String code;
private final String info;
/**
* 根据值获取枚举
* @param value 状态值
* @return 枚举对象
*/
public static ReportCardStatus getByValue(Integer value) {
if (value == null) {
return null;
}
for (ReportCardStatus val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
/**
* 根据编码获取枚举
* @param code 状态编码
* @return 枚举对象
*/
public static ReportCardStatus getByCode(String code) {
if (code == null) {
return null;
}
for (ReportCardStatus val : values()) {
if (val.getCode().equals(code)) {
return val;
}
}
return null;
}
}