devhuozheluoji
周文涛 2 years ago
parent 7bc5d74200
commit 343321d815

@ -516,13 +516,14 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
/**
* checkSemanticModelMap
*
* @param configRuleMap 1/0 map
* @param oldConfigRuleMap 1/0 map
* @param fieldMap map
*/
public Map<String, CheckSemanticModel> getCheckSemanticModelMap(Map<String, String> configRuleMap, Map<String, String> fieldMap, List<JSONObject> sourceJsonObjects) {
if (configRuleMap!=null && CollectionUtils.isNotEmpty(configRuleMap.keySet())) {
for (String s : configRuleMap.keySet()) {
String value = configRuleMap.get(s);
public Map<String, CheckSemanticModel> getCheckSemanticModelMap(Map<String, String> oldConfigRuleMap, Map<String, String> fieldMap, List<JSONObject> sourceJsonObjects) {
Map<String, String> configRuleMap=new LinkedHashMap<>();
if (oldConfigRuleMap!=null && CollectionUtils.isNotEmpty(oldConfigRuleMap.keySet())) {
for (String s : oldConfigRuleMap.keySet()) {
String value = oldConfigRuleMap.get(s);
if ("hn".equals(s)) {
configRuleMap.put("hospitalName",value);
}else if("dn".equals(s)) {
@ -531,6 +532,8 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
configRuleMap.put("departmentName", value);
}else if("tm".equals(s) || ("time".equals(s))) {
configRuleMap.put("time", value);
}else{
configRuleMap.put(s,value);
}
}
}

Loading…
Cancel
Save