| | |
| | | /** |
| | | * 导出体检单位分组列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:grouping:export')") |
| | | // @PreAuthorize("@ss.hasPermi('hosp:grouping:export')") |
| | | @Log(title = "体检单位分组", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjDwGrouping tjDwGrouping) { |
| | |
| | | @PostMapping |
| | | @ApiOperation(value = "新增单位分组信息") |
| | | public AjaxResult add(@RequestBody TjDwGrouping tjDwGrouping) { |
| | | if((null==tjDwGrouping.getGroupingName() || "".equals(tjDwGrouping.getGroupingName())) |
| | | || (null==tjDwGrouping.getSex() || "".equals(tjDwGrouping.getSex())) |
| | | || (null==tjDwGrouping.getPacName()||"".equals(tjDwGrouping.getPacName()))){ |
| | | return AjaxResult.error("必填项不能为空!"); |
| | | } |
| | | tjDwGrouping.setDwDeptName(compService.getById(tjDwGrouping.getDwId()).getCnName()); |
| | | if (tjDwGroupingService.saveOrUpdate(tjDwGrouping)) { |
| | | if(null !=tjDwGrouping.getMapList() && tjDwGrouping.getMapList().size()>0){ |