Commit 59b0df13e121339f1d31ebea8beaf92b8952c37b
1 parent
af7941314e
Exists in
master
and in
6 other branches
操作日志
Showing 4 changed files with 35 additions and 2 deletions
- platform-operate-api/src/main/java/com/lyms/hospitalapi/dzfy/DzfyFmService.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponPrintController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SieveRecordFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
platform-operate-api/src/main/java/com/lyms/hospitalapi/dzfy/DzfyFmService.java
View file @
59b0df1
... | ... | @@ -65,7 +65,7 @@ |
65 | 65 | |
66 | 66 | private static Map<String, List> babyMap = new HashMap<>(); |
67 | 67 | |
68 | - private static final String HOSPITALID = PropertiesUtils.getPropertyValue("hospitalId"); | |
68 | + private static final String HOSPITALID = "1000000114"; | |
69 | 69 | static { |
70 | 70 | ONE_ENUMS.put(0, "长"); |
71 | 71 | ONE_ENUMS.put(1, "次"); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponPrintController.java
View file @
59b0df1
... | ... | @@ -13,10 +13,12 @@ |
13 | 13 | import com.lyms.platform.biz.service.BasicConfigService; |
14 | 14 | import com.lyms.platform.common.base.BaseController; |
15 | 15 | import com.lyms.platform.common.base.LoginContext; |
16 | +import com.lyms.platform.common.enums.OptActionEnums; | |
16 | 17 | import com.lyms.platform.common.enums.YnEnums; |
17 | 18 | import com.lyms.platform.common.utils.DateUtil; |
18 | 19 | import com.lyms.platform.common.utils.StringUtils; |
19 | 20 | import com.lyms.platform.operate.web.facade.AutoMatchFacade; |
21 | +import com.lyms.platform.operate.web.facade.OperateLogFacade; | |
20 | 22 | import com.lyms.platform.operate.web.utils.CommonsHelper; |
21 | 23 | import com.lyms.platform.permission.model.CouponInfo; |
22 | 24 | import com.lyms.platform.permission.model.Organization; |
23 | 25 | |
... | ... | @@ -79,8 +81,11 @@ |
79 | 81 | @Autowired |
80 | 82 | private AntenatalExaminationService antenatalExaminationService; |
81 | 83 | |
84 | + @Autowired | |
85 | + private OperateLogFacade operateLogFacade; | |
82 | 86 | |
83 | 87 | |
88 | + | |
84 | 89 | /** |
85 | 90 | * 产检券打印触发后台操作 |
86 | 91 | * @return |
... | ... | @@ -291,6 +296,9 @@ |
291 | 296 | } |
292 | 297 | } |
293 | 298 | String result = HospitalCouponPrintUtils.qhdCouponUse(model); |
299 | + | |
300 | + operateLogFacade.addAddOptLog(getUserId(request), Integer.valueOf(hospitalId), model, OptActionEnums.ADD.getId(), "秦皇岛消费优惠劵"); | |
301 | + | |
294 | 302 | if("0".equals(result)){ |
295 | 303 | int count = couponService.updateCouponStatus(param); |
296 | 304 | System.out.println("update coupon count " + count); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SieveRecordFacade.java
View file @
59b0df1
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | import com.lyms.platform.biz.service.*; |
4 | 4 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
5 | 5 | import com.lyms.platform.common.enums.ExpYunEnums; |
6 | +import com.lyms.platform.common.enums.OptActionEnums; | |
6 | 7 | import com.lyms.platform.common.enums.YnEnums; |
7 | 8 | import com.lyms.platform.common.result.BaseListResponse; |
8 | 9 | import com.lyms.platform.common.result.BaseObjectResponse; |
9 | 10 | |
... | ... | @@ -62,7 +63,10 @@ |
62 | 63 | @Autowired |
63 | 64 | private BookbuildingFacade bookbuildingFacade; |
64 | 65 | |
66 | + @Autowired | |
67 | + private OperateLogFacade operateLogFacade; | |
65 | 68 | |
69 | + | |
66 | 70 | public BaseResponse isSaveSieveRecord(String patientId, Integer userId) { |
67 | 71 | |
68 | 72 | SieveRecordQuery query = new SieveRecordQuery(); |
69 | 73 | |
... | ... | @@ -85,8 +89,19 @@ |
85 | 89 | //id不为空就修改记录 |
86 | 90 | if (StringUtils.isNotEmpty(requestModel.getId())) |
87 | 91 | { |
92 | + | |
93 | + SieveRecordQuery query = new SieveRecordQuery(); | |
94 | + query.setId(requestModel.getId()); | |
95 | + List<SieveRecordModel> list = sieveRecordService.query(query); | |
96 | + | |
88 | 97 | model.setModified(new Date()); |
89 | - sieveRecordService.update(model,requestModel.getId()); | |
98 | + sieveRecordService.update(model, requestModel.getId()); | |
99 | + | |
100 | + if (CollectionUtils.isNotEmpty(list)) | |
101 | + { | |
102 | + operateLogFacade.addModifyOptLog(userId, Integer.valueOf(model.getHospitalId()),list.get(0),model, OptActionEnums.UPDATE.getId(), "修改产筛查询"); | |
103 | + } | |
104 | + | |
90 | 105 | } |
91 | 106 | else |
92 | 107 | { |
... | ... | @@ -94,6 +109,8 @@ |
94 | 109 | model.setCreated(new Date()); |
95 | 110 | model.setOperUserId(userId); |
96 | 111 | sieveRecordService.save(model); |
112 | + | |
113 | + operateLogFacade.addAddOptLog(userId, Integer.valueOf(model.getHospitalId()), model, OptActionEnums.ADD.getId(), "添加产筛查询"); | |
97 | 114 | } |
98 | 115 | |
99 | 116 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/PatientWeightServiceImpl.java
View file @
59b0df1
... | ... | @@ -9,6 +9,7 @@ |
9 | 9 | import com.lyms.platform.common.result.ResponseCode; |
10 | 10 | import com.lyms.platform.common.utils.*; |
11 | 11 | import com.lyms.platform.operate.web.facade.AutoMatchFacade; |
12 | +import com.lyms.platform.operate.web.facade.OperateLogFacade; | |
12 | 13 | import com.lyms.platform.operate.web.service.PatientWeightService; |
13 | 14 | import com.lyms.platform.operate.web.utils.CollectionUtils; |
14 | 15 | import com.lyms.platform.operate.web.utils.MathUtil; |
... | ... | @@ -52,6 +53,9 @@ |
52 | 53 | @Autowired |
53 | 54 | private CouponMapper couponMapper; |
54 | 55 | |
56 | + @Autowired | |
57 | + private OperateLogFacade operateLogFacade; | |
58 | + | |
55 | 59 | /** |
56 | 60 | * 最低:0~13 : 0~1.9 13~40 1.9~11.9 |
57 | 61 | * 最高: 0~2.2 2.2~15.9 |
... | ... | @@ -167,6 +171,8 @@ |
167 | 171 | |
168 | 172 | patientWeightService2.add(patientWeight); |
169 | 173 | |
174 | + operateLogFacade.addAddOptLog(userId, Integer.valueOf(hospitalId), patientWeight, OptActionEnums.ADD.getId(), "添加孕体重"); | |
175 | + | |
170 | 176 | /* // 绑定医生和患者的关系 |
171 | 177 | String patSerSyncUrl = Config.getItem("patSer_sync_url", "0"); |
172 | 178 | Map<String, String> param = new HashMap<>(); |
173 | 179 | |
... | ... | @@ -507,10 +513,12 @@ |
507 | 513 | @Override |
508 | 514 | public BaseResponse update(final Integer userId, final String id, final String beforeWeight, final String beforeHeight, final String date, final String nowWeight, final String bregmatic, final String bregmaticOther, boolean sync) { |
509 | 515 | PatientWeight patientWeight = mongoTemplate.findById(id, PatientWeight.class); |
516 | + | |
510 | 517 | if(patientWeight == null) { |
511 | 518 | return RespBuilder.buildSuccess("该体重未找到"); |
512 | 519 | } |
513 | 520 | String hospitalId = autoMatchFacade.getHospitalId(userId); |
521 | + operateLogFacade.addModifyOptLog(userId, Integer.valueOf(hospitalId), patientWeight, patientWeight,OptActionEnums.UPDATE.getId(), "修改孕体重"); | |
514 | 522 | |
515 | 523 | // 绑定医生和患者的关系 |
516 | 524 | String patSerSyncUrl = Config.getItem("patSer_sync_url", "0"); |