| | |
| | | //处理插入业务 |
| | | OrganizationDTO dto = organizationService.insertOrganization(form); |
| | | |
| | | //转换前端需要的参数 |
| | | OrganizationInsertVO vo = OrganizationInsertVO.convert(dto); |
| | | |
| | | return new ResultMessage(dto.getCode(), dto.getMsg(), vo); |
| | | return new ResultMessage(dto.getCode(), dto.getMsg(), null); |
| | | } |
| | | |
| | | @PostMapping("update") |
| | |
| | | //处理更新业务 |
| | | OrganizationDTO dto = organizationService.updateOrganization(form); |
| | | |
| | | //转换前端需要的参数 |
| | | OrganizationUpdateVO vo = OrganizationUpdateVO.convert(dto); |
| | | |
| | | return new ResultMessage(dto.getCode(), dto.getMsg(), vo); |
| | | return new ResultMessage(dto.getCode(), dto.getMsg(), null); |
| | | } |
| | | |
| | | @PostMapping("delete") |
| | |
| | | //处理删除业务 |
| | | OrganizationDTO dto = organizationService.deleteOrganization(form); |
| | | |
| | | //转换前端需要的参数 |
| | | OrganizationDeleteVO vo = OrganizationDeleteVO.convert(dto); |
| | | |
| | | return new ResultMessage(dto.getCode(), dto.getMsg(), vo); |
| | | return new ResultMessage(dto.getCode(), dto.getMsg(), null); |
| | | } |
| | | |
| | | @GetMapping("query") |