| | |
| | | @Log(title = "患者满意度", businessType = BusinessType.INSERT) |
| | | @PostMapping("/batchinsert") |
| | | public AjaxResult batchinsert(@RequestBody List<PatSatisfaction> patSatisfaction) { |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | for (PatSatisfaction patSatisfaction1 : patSatisfaction) { |
| | | patSatisfaction1.setCreateBy(user.getNickName()); |
| | | patSatisfaction1.setOrgid(user.getOrgid()); |
| | | patSatisfactionService.insertPatSatisfaction(patSatisfaction1); |
| | | } |
| | | return toAjax(1); |
| | | Integer row = patSatisfactionService.batchInsert(patSatisfaction); |
| | | return toAjax(row); |
| | | } |
| | | |
| | | /** |