Commit 3d940026 authored by suhuiguang's avatar suhuiguang

feat(综合搜索):数据质量描述修改

1.3级-》一类 2级-》二类 1级-》三类
parent 7f2f8ec0
......@@ -3190,7 +3190,7 @@ public class CommonServiceImpl implements ICommonService {
*/
public String castDataQualityScore2Name(String dataQualityScore, Boolean isIntoManagement){
String name = dataDictTypeHandler.handle(DATA_QUALITY_SCORE, dataQualityScore);
return name == null ? (isIntoManagement == null || !isIntoManagement) ? "二级" : "三级" : name;
return name == null ? (isIntoManagement == null || !isIntoManagement) ? "二类" : "一类" : name;
}
public void setDataQualityScore2Json(Map<String, Object> result, String bizId, BusinessTypeEnum businessTypeEnum) {
......
......@@ -268,6 +268,6 @@ public class CommonServiceImpl {
public String castDataQualityScore2Name(String dataQualityScore, Boolean isIntoManagement) {
DataDictionary dataDictionary = dictionaryService.getByCode("DATA_QUALITY_SCORE", dataQualityScore);
String name = Optional.ofNullable(dataDictionary).map(DataDictionary::getName).orElse(null);
return name == null ? (isIntoManagement == null || !isIntoManagement) ? "二级" : "三级" : name;
return name == null ? (isIntoManagement == null || !isIntoManagement) ? "二类" : "一类" : name;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment