Commit 8dc769153ebbb1aa88ebac31cd0727e2c787a969
1 parent
b9c4450acb
Exists in
master
and in
6 other branches
孕妇学校
Showing 2 changed files with 37 additions and 0 deletions
platform-msg-generate/src/main/java/com/lyms/platform/msg/worker/TempleteMsgGenerateWorker.java
View file @
8dc7691
| ... | ... | @@ -219,6 +219,8 @@ |
| 219 | 219 | Integer sendTimeType = template.getSendTimeType(); |
| 220 | 220 | |
| 221 | 221 | |
| 222 | + logger.info("generateChildTempMsg info : serviceType = "+serviceType +";templateId="+template.getId()+";smsType="+smsType); | |
| 223 | + | |
| 222 | 224 | BabyModelQuery babyModelQuery = new BabyModelQuery(); |
| 223 | 225 | babyModelQuery.setYn(YnEnums.YES.getId()); |
| 224 | 226 | babyModelQuery.setHospitalId(template.getHospitalId()); |
| ... | ... | @@ -829,6 +831,7 @@ |
| 829 | 831 | //发送时间 SendTimeEnums DT(0,"当天"),QYT(1,"前一天"),QLT(2,"前两天"),QST(3,"前三天"); |
| 830 | 832 | Integer sendTimeType = template.getSendTimeType(); |
| 831 | 833 | |
| 834 | + logger.info("generateYunTempMsg info : serviceType = "+serviceType +";templateId="+template.getId()+";smsType="+smsType); | |
| 832 | 835 | |
| 833 | 836 | PatientsQuery patientsQuery = new PatientsQuery(); |
| 834 | 837 | patientsQuery.setYn(YnEnums.YES.getId()); |
| ... | ... | @@ -983,6 +986,7 @@ |
| 983 | 986 | //发送时间 SendTimeEnums DT(0,"当天"),QYT(1,"前一天"),QLT(2,"前两天"),QST(3,"前三天"); |
| 984 | 987 | Integer sendTimeType = template.getSendTimeType(); |
| 985 | 988 | |
| 989 | + logger.info("generateYunTempMsg info : serviceType = "+serviceType +";templateId="+template.getId()+";smsType="+smsType); | |
| 986 | 990 | |
| 987 | 991 | PatientsQuery patientsQuery = new PatientsQuery(); |
| 988 | 992 | patientsQuery.setYn(YnEnums.YES.getId()); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CourseFacade.java
View file @
8dc7691
| ... | ... | @@ -12,6 +12,9 @@ |
| 12 | 12 | import com.lyms.platform.common.result.BaseObjectResponse; |
| 13 | 13 | import com.lyms.platform.common.result.BaseResponse; |
| 14 | 14 | import com.lyms.platform.common.utils.DateUtil; |
| 15 | +import com.lyms.platform.common.utils.HttpClientUtil; | |
| 16 | +import com.lyms.platform.common.utils.JsonUtil; | |
| 17 | +import com.lyms.platform.common.utils.PropertiesUtils; | |
| 15 | 18 | import com.lyms.platform.operate.web.request.CourseRequest; |
| 16 | 19 | import com.lyms.platform.operate.web.result.CourseResult; |
| 17 | 20 | import com.lyms.platform.operate.web.result.CourseTypeResult; |
| ... | ... | @@ -37,6 +40,8 @@ |
| 37 | 40 | @Component |
| 38 | 41 | public class CourseFacade { |
| 39 | 42 | |
| 43 | + public static final String CENTER_BASE_URL= PropertiesUtils.getPropertyValue("center_base_url"); | |
| 44 | + | |
| 40 | 45 | @Autowired |
| 41 | 46 | private CourseService courseService; |
| 42 | 47 | |
| ... | ... | @@ -470,5 +475,33 @@ |
| 470 | 475 | objectResponse.setErrormsg("成功"); |
| 471 | 476 | return objectResponse; |
| 472 | 477 | } |
| 478 | + | |
| 479 | + | |
| 480 | + private int getCourseCountData(String hospitalId, | |
| 481 | + String subTypeId, | |
| 482 | + Integer smsStatus, | |
| 483 | + Integer sendType, | |
| 484 | + String createTimeStart, | |
| 485 | + String createTimeEnd) | |
| 486 | + { | |
| 487 | + Map<String,String> param = new HashMap<>(); | |
| 488 | + | |
| 489 | + param.put("hospitalId",hospitalId); | |
| 490 | + param.put("subTypeId",subTypeId); | |
| 491 | + param.put("status",smsStatus == null ? null : String.valueOf(smsStatus)); | |
| 492 | + param.put("sendType",sendType == null ? null : String.valueOf(sendType)); | |
| 493 | + param.put("createTimeStart",createTimeStart); | |
| 494 | + param.put("createTimeEnd",createTimeEnd); | |
| 495 | + | |
| 496 | + String result = HttpClientUtil.doGet(CENTER_BASE_URL + "/biz-push-web/push", param, "utf-8", null); | |
| 497 | + | |
| 498 | + Map<String,String> map = JsonUtil.str2Obj(result, Map.class); | |
| 499 | + if ("0".equals(map.get("errorcode"))) | |
| 500 | + { | |
| 501 | + return Integer.parseInt(map.get("object")); | |
| 502 | + } | |
| 503 | + return 0; | |
| 504 | + } | |
| 505 | + | |
| 473 | 506 | } |