参与者重写 - 部分

This commit is contained in:
Wang.Huan
2025-03-25 20:08:44 +08:00
parent 83f53e3619
commit f666458f68
5 changed files with 174 additions and 4 deletions

View File

@@ -1,16 +1,23 @@
package com.openhis.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 性别 0=男,1=女,2=未知(和若依框架保持一致)
*/
@Getter
@AllArgsConstructor
public enum AdministrativeGender implements HisEnumInterface {
MALE(1, "male", "男性"),
FEMALE(2, "female", ""),
OTHER(3, "other", "其他"),
UNKNOWN(9, "unknown", "未知");
MALE(0, "male", ""),
FEMALE(1, "female", "女性"),
UNKNOWN(2, "unknown", "未知");
@EnumValue
private final Integer value;
private final String code;