Commit 39211198ca97a56d373eb1f3b309ebbf6a6ea944
1 parent
f91578b00b
Exists in
master
and in
1 other branch
字典维护
Showing 2 changed files with 12 additions and 3 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
3921119
| ... | ... | @@ -44,7 +44,13 @@ |
| 44 | 44 | @Autowired |
| 45 | 45 | private LymsTcardService lymsTcardService;//问诊卡信息 |
| 46 | 46 | |
| 47 | + @Autowired | |
| 48 | + private LymsChatroomService lymsChatroomService;//聊天室 | |
| 47 | 49 | |
| 50 | + @Autowired | |
| 51 | + private LymsLogsService lymsLogsService;//日志记录 | |
| 52 | + | |
| 53 | + | |
| 48 | 54 | /** |
| 49 | 55 | * 获取患者列表 |
| 50 | 56 | * @param patientInfo |
| 51 | 57 | |
| ... | ... | @@ -161,11 +167,14 @@ |
| 161 | 167 | lymsPatientService.update().update(patient); |
| 162 | 168 | baseResponse.setErrorcode(0); |
| 163 | 169 | baseResponse.setObject(map); |
| 170 | + LymsLogs logEntity=new LymsLogs(); | |
| 171 | + logEntity.setFunc("loginPatient"); | |
| 172 | + logEntity.setLogDate(new Date()); | |
| 173 | + logEntity.setMessage(String.format("login:%s name:%s",patient.getIdno(),patient.getPname())); | |
| 174 | + lymsLogsService.save(logEntity); | |
| 164 | 175 | } |
| 165 | 176 | return baseResponse; |
| 166 | 177 | } |
| 167 | - | |
| 168 | - | |
| 169 | 178 | |
| 170 | 179 | } |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/RegionsController.java
View file @
3921119
| ... | ... | @@ -57,7 +57,7 @@ |
| 57 | 57 | @PostMapping("saveDict") |
| 58 | 58 | public BaseResponse saveDict(@RequestBody LymsDict dict){ |
| 59 | 59 | BaseResponse baseResponse=new BaseResponse(); |
| 60 | - boolean f=lymsDictService.save(dict); | |
| 60 | + boolean f=lymsDictService.saveOrUpdate(dict); | |
| 61 | 61 | baseResponse.setErrorcode(f==true?0:1); |
| 62 | 62 | return baseResponse; |
| 63 | 63 | } |