采购入库代码补全

This commit is contained in:
Zhang.WH
2025-03-10 17:54:12 +08:00
parent b82d50c081
commit c114e27223
18 changed files with 347 additions and 52 deletions

View File

@@ -66,6 +66,11 @@ public class CommonConstants {
* 活动定义
*/
String WOR_ACTIVITY_DEFINITION = "wor_activity_definition";
/**
* 发放请求
*/
String WOR_SUPPLY_REQUEST = "wor_supply_request";
}
/**

View File

@@ -0,0 +1,43 @@
/*
* Copyright ©2023 CJB-CNIT Team. All rights reserved
*/
package com.openhis.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 收费项目类型
*
* @author zwh
* @date 2025-03-10
*/
@Getter
@AllArgsConstructor
public enum ChargeItemContext {
/**
* 采购
*/
PURCHASE(1, "采购"),
/**
* 处方
*/
PRESCRIPTION(2, "处方");
private Integer value;
private String info;
public static ChargeItemContext getByValue(Integer value) {
if (value == null) {
return null;
}
for (ChargeItemContext val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}

View File

@@ -1,28 +1,60 @@
package com.openhis.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum ChargeItemStatus implements HisEnumInterface {
PLANNED (1, "planned", "待收费"),
/**
* 待收费
*/
PLANNED(1, "planned", "待收费"),
/**
* 待结算
*/
BILLABLE(2, "billable", "待结算"),
/**
* 不可收费
*/
NOT_BILLABLE(3, "not-billable", "不可收费"),
/**
* 终止
*/
ABORTED(4, "aborted", "终止"),
BILLED (5, "billed ", "已结算"),
/**
* 已结算
*/
BILLED(5, "billed ", "已结算"),
/**
* 错误
*/
ERROR(6, "entered-in-error", "错误"),
/**
* 未知
*/
UNKNOWN(7, "unknown", "未知");
@EnumValue
private final Integer value;
private final String code;
private final String info;
public static ChargeItemStatus getByValue(Integer value) {
if (value == null) {
return null;
}
for (ChargeItemStatus val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}

View File

@@ -0,0 +1,53 @@
/*
* Copyright ©2023 CJB-CNIT Team. All rights reserved
*/
package com.openhis.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 项目类型
*
* @author zwh
* @date 2025-03-10
*/
@Getter
@AllArgsConstructor
public enum ItemCategory {
/**
* 中药
*/
CHINESE_MEDICINE(1, "中药"),
/**
* 西药
*/
WESTERN_MEDICINE(2, "西药"),
/**
* 中成药
*/
CHINESE_PATENT_MEDICINE(3, "中成药"),
/**
* 医疗耗材
*/
MEDICAL_CONSUMABLES(4, "医疗耗材");
private Integer value;
private String info;
public static ItemCategory getByValue(Integer value) {
if (value == null) {
return null;
}
for (ItemCategory val : values()) {
if (val.getValue().equals(value)) {
return val;
}
}
return null;
}
}