Commit 91e9d1a667bcfa2118fb3c389752470e7650ac9a
1 parent
933cda0467
Exists in
master
and in
8 other branches
update code
Showing 2 changed files with 29 additions and 9 deletions
platform-data-api/src/main/java/com/lyms/platform/data/util/SaveMessageService.java
View file @
91e9d1a
| ... | ... | @@ -13,12 +13,13 @@ |
| 13 | 13 | */ |
| 14 | 14 | public class SaveMessageService { |
| 15 | 15 | |
| 16 | - public static final String URL = "http://localhost:8090/v1/saveCreatedSMS"; | |
| 16 | + public static final String URL = "http://192.168.5.3:8080/v1/saveCreatedSMS"; | |
| 17 | 17 | |
| 18 | 18 | public static boolean saveSmsCenter(MessageListRequest list) |
| 19 | 19 | { |
| 20 | 20 | String json = JsonUtil.obj2JsonString(list); |
| 21 | 21 | String result = HttpRequest.sendPost(URL,json,"YMer2016"); |
| 22 | + System.out.print(result); | |
| 22 | 23 | return false; |
| 23 | 24 | } |
| 24 | 25 | |
| 25 | 26 | |
| 26 | 27 | |
| 27 | 28 | |
| ... | ... | @@ -28,12 +29,25 @@ |
| 28 | 29 | List<MessageRequest> messages = new ArrayList<>(); |
| 29 | 30 | MessageRequest request = new MessageRequest(); |
| 30 | 31 | request.setTypeId(1); |
| 31 | - request.setContent("aaaa"); | |
| 32 | + request.setContent("222222222222222"); | |
| 32 | 33 | request.setObjType(1); |
| 33 | - request.setPhone("123333"); | |
| 34 | + request.setPhone("18382670032"); | |
| 34 | 35 | request.setPlanTime("2015-01-06 15:22:12"); |
| 35 | 36 | request.setServiceType(1); |
| 37 | + request.setStatus(1); | |
| 36 | 38 | messages.add(request); |
| 39 | + | |
| 40 | + | |
| 41 | + MessageRequest request1 = new MessageRequest(); | |
| 42 | + request1.setTypeId(1); | |
| 43 | + request1.setContent("1111111111111111"); | |
| 44 | + request1.setObjType(1); | |
| 45 | + request1.setPhone("18382670031"); | |
| 46 | + request1.setPlanTime("2015-01-06 15:22:12"); | |
| 47 | + request1.setServiceType(1); | |
| 48 | + request1.setStatus(1); | |
| 49 | + messages.add(request1); | |
| 50 | + | |
| 37 | 51 | list.setTypeId(1); |
| 38 | 52 | list.setMessages(messages); |
| 39 | 53 | saveSmsCenter(list); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
91e9d1a
| ... | ... | @@ -63,15 +63,21 @@ |
| 63 | 63 | patientsQuery.setYn(YnEnums.YES.getId()); |
| 64 | 64 | patientsQuery.setType(1); |
| 65 | 65 | patientsQuery.setHospitalId(yunRequest.getHospitalId()); |
| 66 | + patientsQuery.setCardNo(yunRequest.getPregnantCertificateNum()); | |
| 66 | 67 | |
| 67 | - //判断该身份证号码是否有孕妇建档 在该医院 | |
| 68 | - List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery); | |
| 69 | - if (CollectionUtils.isNotEmpty(patients)) | |
| 68 | + if (yunRequest.getPregnantCertificateNum() != null) | |
| 70 | 69 | { |
| 71 | - br.setErrorcode(ErrorCodeConstants.DATA_EXIST); | |
| 72 | - br.setErrormsg("孕妇在该医院已建档"); | |
| 73 | - return br; | |
| 70 | + //判断该身份证号码是否有孕妇建档 在该医院 | |
| 71 | + List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery); | |
| 72 | + if (CollectionUtils.isNotEmpty(patients)) | |
| 73 | + { | |
| 74 | + br.setErrorcode(ErrorCodeConstants.DATA_EXIST); | |
| 75 | + br.setErrormsg("孕妇在该医院已建档"); | |
| 76 | + return br; | |
| 77 | + } | |
| 74 | 78 | } |
| 79 | + | |
| 80 | + | |
| 75 | 81 | |
| 76 | 82 | PersonModel pmodel = new PersonModel(); |
| 77 | 83 | pmodel.setName(yunRequest.getPregnantName()); |