Bläddra i källkod

获取最新的字典项

chenyongxing 6 år sedan
förälder
incheckning
f2a4b37808

+ 1 - 1
src/main/java/com/yihu/hos/standard/controller/StdCenterEndPoint.java

@ -148,7 +148,7 @@ public class StdCenterEndPoint extends BaseController {
        List result = new ArrayList();
        String ver = standardService.getLastStandByOrgCode(defaultOrgCode);
        if(StringUtils.isNotBlank(ver)){
            List<StdDictionaryEntryModel> list = stdDictEntryService.searchPage(StdDictionaryEntryModel.class, StandardVersion.DictEntryTable,ver, "code="+code, null, null, null,true);
            List<StdDictionaryModel> list = stdDictService.searchPage(StdDictionaryModel.class, StandardVersion.DictTable,ver, "code="+code, null, null, null,true);
            if(CollectionUtils.isNotEmpty(list)){
                Long id = list.get(0).getId();
                result = stdDictEntryService.searchPage(StdDictionaryEntryModel.class, StandardVersion.DictEntryTable,ver, "dict_id="+id, null, null, null,true);