Commit c4bb380ba7c7cbad84417a1b3d4ab3e55fd1c62a
1 parent
e6619440bf
Exists in
master
and in
8 other branches
修改转诊
Showing 2 changed files with 16 additions and 14 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/UsersServiceImpl.java
View file @
c4bb380
... | ... | @@ -28,16 +28,16 @@ |
28 | 28 | @Autowired |
29 | 29 | private ISyncDataDao iSyncDataDao; |
30 | 30 | |
31 | - private LoadingCache<Integer, Users> cached = null; | |
31 | +// private LoadingCache<Integer, Users> cached = null; | |
32 | 32 | |
33 | 33 | public UsersServiceImpl() { |
34 | 34 | //cache size 为400 缓存3分钟 |
35 | - cached = CacheHelper.cached(new CacheLoader<Integer, Users>() { | |
36 | - @Override | |
37 | - public Users load(Integer key) throws Exception { | |
38 | - return usersMapper.getUsers(key); | |
39 | - } | |
40 | - }, 400, 3); | |
35 | +// cached = CacheHelper.cached(new CacheLoader<Integer, Users>() { | |
36 | +// @Override | |
37 | +// public Users load(Integer key) throws Exception { | |
38 | +// return usersMapper.getUsers(key); | |
39 | +// } | |
40 | +// }, 400, 3); | |
41 | 41 | } |
42 | 42 | |
43 | 43 | |
... | ... | @@ -50,6 +50,9 @@ |
50 | 50 | @Override |
51 | 51 | public void updateUsers(Users obj) { |
52 | 52 | usersMapper.updateUsers(obj); |
53 | +// if(null!=obj.getId()){ | |
54 | +// cached.invalidate(obj.getId()); | |
55 | +// } | |
53 | 56 | iSyncDataDao.addSyncData("MysqlUpdate", obj, obj.getId().toString()); |
54 | 57 | } |
55 | 58 | |
... | ... | @@ -61,10 +64,10 @@ |
61 | 64 | |
62 | 65 | @Override |
63 | 66 | public Users getUsers(final Integer id) { |
64 | - try { | |
65 | - return cached.get(id); | |
66 | - }catch (Exception e){ | |
67 | - } | |
67 | +// try { | |
68 | +// return cached.get(id); | |
69 | +// }catch (Exception e){ | |
70 | +// } | |
68 | 71 | return usersMapper.getUsers(id); |
69 | 72 | } |
70 | 73 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
c4bb380
... | ... | @@ -131,9 +131,6 @@ |
131 | 131 | |
132 | 132 | Patients patients = patientsService.findOnePatientById(antExAddRequest.getParentId()); |
133 | 133 | |
134 | - //修改最后一次检查时间 | |
135 | - setLashCTimes(hospitalId, antExAddRequest.getParentId(), 2); | |
136 | - | |
137 | 134 | patients.setLastCheckEmployeeId(antExAddRequest.getCheckDoctor()); |
138 | 135 | |
139 | 136 | patientsService.updatePatient(patients); |
... | ... | @@ -142,6 +139,8 @@ |
142 | 139 | |
143 | 140 | //修改本院最后一次定义高危 |
144 | 141 | updateLastRhTime(patients.getId(), hospitalId); |
142 | + //修改最后一次检查时间 | |
143 | + setLashCTimes(hospitalId, antExAddRequest.getParentId(), 2); | |
145 | 144 | } else { |
146 | 145 | AntenatalExaminationModel model = antExAddRequest.convertToDataModel(); |
147 | 146 | model.setOperator(userId); |