| | |
| | | @Log(title = "体检单位信息维护", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DictComp dictComp) { |
| | | String firstLetter = PinyinUtil.getFirstLetter(dictComp.getCnName(), ""); |
| | | dictComp.setWbm(MatchUtils.toWubi(dictComp.getCnName())); |
| | | dictComp.setEnName(firstLetter); |
| | | if(null !=dictComp.getCnName()){ |
| | | String firstLetter = PinyinUtil.getFirstLetter(dictComp.getCnName(), ""); |
| | | dictComp.setWbm(MatchUtils.toWubi(dictComp.getCnName())); |
| | | dictComp.setEnName(firstLetter); |
| | | } |
| | | return toAjax(dictCompService.save(dictComp)); |
| | | } |
| | | |