| | |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @GetMapping("/getZybCompList") |
| | | @ApiOperation(value = "获取职业病单位信息集合接口") |
| | | public AjaxResult getZybCompList() { |
| | | LambdaQueryWrapper<DictComp> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(DictComp::getDwlx,"1"); |
| | | return AjaxResult.success(dictCompService.list(wq)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出体检单位信息维护列表 |
| | | */ |
| | |
| | | @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)); |
| | | } |
| | | |