项目库相关人员-导入校验
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
package com.jero.modules.enums;
|
||||
|
||||
public enum DictCodeEnum {
|
||||
|
||||
DUTY_TERRITORY("责任领域","duty_territory"),
|
||||
;
|
||||
String name;
|
||||
String value;
|
||||
|
||||
DictCodeEnum(String name, String value) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
+3
@@ -164,4 +164,7 @@ public interface ISysDictService extends IService<SysDict> {
|
||||
Integer queryExitDictName(SysDict sysDict);
|
||||
|
||||
IPage<SysDict> queryPageList(Map<String, Object> params);
|
||||
|
||||
/**根据字典code查询中英文名*/
|
||||
String queryDictItemByName(String code, String itemName, String cut);
|
||||
}
|
||||
|
||||
+16
@@ -422,4 +422,20 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据字典code查询中英文名
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String queryDictItemByName(String code,String itemName,String cut) {
|
||||
|
||||
if (CutEnum.CN.getValue().equals(cut)) {
|
||||
String dictItemsCnName = sysDictMapper.queryDictTextByKey(code,itemName);
|
||||
return dictItemsCnName;
|
||||
}else {
|
||||
String dictItemsEnName = sysDictMapper.queryDictTextByKeyEn(code,itemName);
|
||||
return dictItemsEnName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user