Commit f13ec263d6ffc64163cfb245e794799d522037cf
1 parent
575cb3febb
Exists in
master
and in
6 other branches
自动分娩 日志打印
Showing 2 changed files with 7 additions and 1 deletions
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/RemoteService.java
View file @
f13ec26
... | ... | @@ -38,7 +38,8 @@ |
38 | 38 | Map<String, String> params = new HashMap<>(); |
39 | 39 | params.put("personId", personId); |
40 | 40 | params.put("couponTypes", couponTypes); |
41 | - HttpClientUtil.doPost(BASE_URL + urlEnum.getUrl(), params, "utf-8"); | |
41 | + String rest = HttpClientUtil.doPost(BASE_URL + urlEnum.getUrl(), params, "utf-8"); | |
42 | + System.out.println("远程调用作废优惠券: personId: " + personId + ", couponTypes: " + couponTypes + ", 返回值: " + rest); | |
42 | 43 | } |
43 | 44 | |
44 | 45 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CouponController.java
View file @
f13ec26
... | ... | @@ -8,6 +8,8 @@ |
8 | 8 | import com.lyms.platform.common.result.RespBuilder; |
9 | 9 | import com.lyms.platform.operate.web.facade.AutoMatchFacade; |
10 | 10 | import com.lyms.platform.permission.service.CouponService; |
11 | +import org.slf4j.Logger; | |
12 | +import org.slf4j.LoggerFactory; | |
11 | 13 | import org.springframework.beans.factory.annotation.Autowired; |
12 | 14 | import org.springframework.beans.factory.annotation.Value; |
13 | 15 | import org.springframework.data.mongodb.core.MongoTemplate; |
14 | 16 | |
... | ... | @@ -43,7 +45,9 @@ |
43 | 45 | @Autowired |
44 | 46 | private PatientsService patientsService; |
45 | 47 | |
48 | + private static final Logger LOG = LoggerFactory.getLogger(CouponController.class); | |
46 | 49 | |
50 | + | |
47 | 51 | /** |
48 | 52 | * 创建用户产检券 |
49 | 53 | * @param userId |
... | ... | @@ -112,6 +116,7 @@ |
112 | 116 | */ |
113 | 117 | @RequestMapping(method = RequestMethod.POST, value = "/invalid") |
114 | 118 | public void invalid(String personId, String couponTypes){ |
119 | + LOG.info("invalid>>> personId: {}, couponTypes: {} ", personId, couponTypes); | |
115 | 120 | couponService.invalid(personId, couponTypes); |
116 | 121 | } |
117 | 122 |