| | |
| | | @Log(title = "会诊申请记录 ", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjHzLog tjHzLog) { |
| | | if (tjHzLog.getHzDeptIdList() != null) { |
| | | StringBuilder str = new StringBuilder(); |
| | | for (int i = 0; i < tjHzLog.getHzDeptIdList().size(); i++) { |
| | | |
| | | str = str.append(tjHzLog.getHzDeptIdList().get(i)); |
| | | if (i != tjHzLog.getHzDeptIdList().size() - 1) { |
| | | str = str.append(","); |
| | | } |
| | | } |
| | | tjHzLog.setHzDeptId(String.valueOf(str)); |
| | | } |
| | | return toAjax(tjHzLogService.saveOrUpdate(tjHzLog)); |
| | | } |
| | | |
| | |
| | | * 删除会诊申请记录 |
| | | */ |
| | | @Log(title = "会诊申请记录 ", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | @DeleteMapping("/remove") |
| | | public AjaxResult remove(@RequestBody Long[] ids) { |
| | | return toAjax(tjHzLogService.removeByIds(Arrays.asList(ids))); |
| | | } |
| | | |
| | |
| | | for (TjHzLog re : res) { |
| | | List<String> a = new ArrayList<>(); |
| | | List<String> b = new ArrayList<>(); |
| | | // if ("0".equals(re.getHzType())) { |
| | | // continue; |
| | | // } |
| | | if (re.getHzDeptId() != null) { |
| | | final String[] split = re.getHzDeptId().split(","); |
| | | for (String s : split) { |