Commit 729d4ba44abeaa1e89dd43e9492ba829db449665
1 parent
94288086f9
Exists in
master
and in
1 other branch
调整患者登录日志
Showing 1 changed file with 12 additions and 5 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
729d4ba
| ... | ... | @@ -288,11 +288,6 @@ |
| 288 | 288 | map.put("token", jwt); |
| 289 | 289 | baseResponse.setErrorcode(0); |
| 290 | 290 | baseResponse.setObject(map); |
| 291 | - LymsLogs logEntity = new LymsLogs(); | |
| 292 | - logEntity.setFunc("loginPatient"); | |
| 293 | - logEntity.setLogDate(new Date()); | |
| 294 | - logEntity.setMessage(String.format("login:%s name:%s", patient.getIdno(), patient.getPname())); | |
| 295 | - lymsLogsService.save(logEntity); | |
| 296 | 291 | } |
| 297 | 292 | return baseResponse; |
| 298 | 293 | } |
| ... | ... | @@ -700,6 +695,18 @@ |
| 700 | 695 | e.printStackTrace(); |
| 701 | 696 | } |
| 702 | 697 | return baseResponse; |
| 698 | + } | |
| 699 | + | |
| 700 | + /** | |
| 701 | + * 记录患者登录日志,包括切换医院 | |
| 702 | + * @param logEntity | |
| 703 | + */ | |
| 704 | + @GetMapping("saveLoginLog") | |
| 705 | + public void saveLoginLog(LymsLogs logEntity ){ | |
| 706 | + | |
| 707 | + log.debug(">>>>>>>>>"+logEntity); | |
| 708 | + logEntity.setLogDate(new Date()); | |
| 709 | + lymsLogsService.save(logEntity); | |
| 703 | 710 | } |
| 704 | 711 | } |