| | |
| | | |
| | | return this.examineMngService.queryAll(pageQuery); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | |
| | | @PostMapping(value = "/addOrUpdate") |
| | | public ResultVO update(Authentication authentication, @RequestBody ExamineMng examineMng) { |
| | | // 获取当前用户 |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | /* ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | examineMng.setExamineDepartmentId(currentUser.getDepId()); |
| | | examineMng.setExaminePersonId(currentUser.getUid()); |
| | | examineMng.setExaminePersonId(currentUser.getUid());*/ |
| | | if (examineMng.getId() == null) { |
| | | return new ResultVO<>(ResultCodes.OK,examineMngBaseService.save(examineMng)); |
| | | } else { |
| | |
| | | |
| | | System.out.println(JSONObject.toJSONString(examineTemplateSaveOrUpdate)); |
| | | } |
| | | } |
| | | } |