| | |
| | | List<DictBiz> list = DictBizCache.getList(dictType); |
| | | //解析返回 |
| | | String key = ""; |
| | | for (DictBiz dictBiz : list) { |
| | | if (dictBiz.getDictValue().equals(dictLabel)){ |
| | | key = dictBiz.getDictKey(); |
| | | break; |
| | | //对学历进行单独处理 |
| | | if (dictType.equals("educationType")){ |
| | | for (DictBiz dictBiz : list) { |
| | | if (dictBiz.getDictValue().indexOf(dictLabel)>-1){ |
| | | key = dictBiz.getDictKey(); |
| | | break; |
| | | } |
| | | } |
| | | }else{ |
| | | for (DictBiz dictBiz : list) { |
| | | if (dictBiz.getDictValue().equals(dictLabel)){ |
| | | key = dictBiz.getDictKey(); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | |
| | | // 返回key |
| | | return key; |
| | | } |