我叫圣文

This commit is contained in:
2026-05-15 16:37:22 +08:00
parent 41c915d1df
commit 90219a3daf
52 changed files with 3315 additions and 5 deletions

View File

@@ -3,6 +3,10 @@ package com.njcn.gather.system.dictionary.pojo.enums;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;
import static com.njcn.gather.system.pojo.constant.DictConst.REG_RES_CONTRAST_CODE;
import static com.njcn.gather.system.pojo.constant.DictConst.REG_RES_DIGITAL_CODE;
import static com.njcn.gather.system.pojo.constant.DictConst.REG_RES_SIMULATE_CODE;
/**
* @author caozehui
* @data 2024-12-12
@@ -14,9 +18,9 @@ public enum DictDataEnum {
* Key cleanup point: only keep registration-related platform capability
* types that are still referenced by the retained activation flow.
*/
DIGITAL("数字式", "Digital"),
SIMULATE("模拟式", "Simulate"),
CONTRAST("比对式", "Contrast");
DIGITAL("数字式", REG_RES_DIGITAL_CODE),
SIMULATE("模拟式", REG_RES_SIMULATE_CODE),
CONTRAST("比对式", REG_RES_CONTRAST_CODE);
private final String name;
private final String code;

View File

@@ -18,4 +18,24 @@ public interface DictConst {
* 顶层父类的pid
*/
String FATHER_ID = "0";
/**
* 注册资源字典数据编码:数字式
*/
String REG_RES_DIGITAL_CODE = "Digital";
/**
* 注册资源字典数据编码:模拟式
*/
String REG_RES_SIMULATE_CODE = "Simulate";
/**
* 注册资源字典数据编码:比对式
*/
String REG_RES_CONTRAST_CODE = "Contrast";
/**
* 注册资源字典数据 ID比对式
*/
String REG_RES_CONTRAST_ID = "7cd65363a6bf675ae408f28a281b77d4";
}

View File

@@ -12,6 +12,7 @@ import com.njcn.gather.system.cfg.service.ISysTestConfigService;
import com.njcn.gather.system.dictionary.pojo.enums.DictDataEnum;
import com.njcn.gather.system.dictionary.pojo.po.DictData;
import com.njcn.gather.system.dictionary.service.IDictDataService;
import com.njcn.gather.system.pojo.constant.DictConst;
import com.njcn.gather.system.pojo.enums.SystemResponseEnum;
import com.njcn.gather.system.reg.mapper.SysRegResMapper;
import com.njcn.gather.system.reg.pojo.dto.RegInfoData;
@@ -214,7 +215,7 @@ public class SysRegResServiceImpl extends ServiceImpl<SysRegResMapper, SysRegRes
@Override
public SysRegRes getContrastRegRes() {
return this.getRegResByType("7cd65363a6bf675ae408f28a281b77d4");
return this.getRegResByType(DictConst.REG_RES_CONTRAST_ID);
}
/**