新增案件
This commit is contained in:
@@ -17,6 +17,10 @@ public enum AnnexTypeEnum implements EnumsInterface {
|
||||
MEETING_VIDEO(5, "会议视频"),
|
||||
MEDIATE(6, "庭审笔录"),
|
||||
MEDIATE_BOOK(7, "调解书"),
|
||||
MEDIATION_FILES(8, "调解资料"),
|
||||
|
||||
SEAL_PICTURE(10, "印章图片"),
|
||||
|
||||
|
||||
;
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.ruoyi.common.enums;
|
||||
|
||||
import com.ruoyi.common.interfaces.EnumsInterface;
|
||||
|
||||
/**
|
||||
* @Classname AnnexTypeEnum
|
||||
* @Description 调解方式枚举
|
||||
* @Version 1.0.0
|
||||
* @Date 2024/1/12 17:50
|
||||
* @Created wangqiong
|
||||
*/
|
||||
public enum MediationMethodEnum implements EnumsInterface {
|
||||
ON_LINE("1", "线上调解"),
|
||||
OFF_LINE("2", "线下调解"),
|
||||
|
||||
;
|
||||
|
||||
private final String code;
|
||||
private final String text;
|
||||
|
||||
MediationMethodEnum(String code, String text)
|
||||
{
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getText()
|
||||
{
|
||||
return text;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据code获取text
|
||||
* @param codeNo
|
||||
* @return
|
||||
*/
|
||||
public static String getTextByCode(String codeNo){
|
||||
for (MediationMethodEnum value : MediationMethodEnum.values()) {
|
||||
if (value.getCode().equals(codeNo)){
|
||||
return value.getText();
|
||||
}
|
||||
}
|
||||
return codeNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据text获取code
|
||||
* @param textStr
|
||||
* @return
|
||||
*/
|
||||
public static String getCodeByText(String textStr){
|
||||
for (MediationMethodEnum value : MediationMethodEnum.values()) {
|
||||
if (value.getText().equals(textStr)){
|
||||
return value.getText();
|
||||
}
|
||||
}
|
||||
return textStr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user